#44 new
dr

ActionMailer template search failing

Reported by dr | April 24th, 2009 @ 05:55 AM

Using Rails 2.2.2 and engines checked out to 2.2.2.

Having template.erb in a plugin works.

Having template.text.plain.erb and template.text.html.erb in the plugin results in "Missing template ... template.erb"

If those templates are copied to the main application's view directory BOTH the templates in the main application and the plugin are rendered.

Comments and changes to this ticket

  • James Adam

    James Adam May 17th, 2009 @ 04:23 AM

    • Tag set to action_mailer

    Could you supply a failing test, or a skeleton app that displays this error?

    Thanks!

  • dr

    dr May 22nd, 2009 @ 01:22 PM

    bash-3.2$ tar xf ticket44.tbz

    bash-3.2$ cd ticket44
    bash-3.2$ git submodule update --init
    ...
    bash-3.2$ ./script/console 
    Loading development environment (Rails 2.2.2)
    >> TestMail.deliver_test1
    => #<TMail::Mail port=#<TMail::StringPort:id=0x105f798> bodyport=#<TMail::StringPort:id=0x105e4d8>>
    >> TestMail.deliver_test2
    ActionView::MissingTemplate: Missing template test_mail/test2.erb in view path
    
  • James Adam

    James Adam June 9th, 2009 @ 05:42 AM

    I've taken a look at this, and can't come up with anything concrete at the moment, I'm afraid. Is upgrading to Rails 2.3 an option?

  • dr

    dr June 9th, 2009 @ 05:48 AM

    I've worked around the problem by moving the templates to the main app, but it's frustrating because rails 2.1 and rails 2.3 work correctly. I have some other issues to fix before I can move the whole application to rails 2.3. I thought this would be something obvious.

  • James Adam

    James Adam June 9th, 2009 @ 05:52 AM

    I wish it were - I've just spent all afternoon trying to trace where
    the problem lies, with no joy. I can't afford to spend any more time
    on it at the moment, but when I get a chance I'll try again.

    Sorry for the delay, I hoped to be able to come back with good news,
    but not in this case :(

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

The rails engines plugin itself

Shared Ticket Bins

People watching this ticket

Attachments

Pages