On Oct 25, 6:30 pm, X <[EMAIL PROTECTED]> wrote:

> In this setup I get an error:  Missing template emailer/
> contact_email.html.erb
>
> When I add an empty template of that name, everything works nicely.
>
> My question is: WHY do I need a template with the same name as a
> method in the model? So far as I understand Ruby, I am expected to
> have a template for the controller method - but why for the model.

Where do you thing the content for the email is coming from? Just as
actions in a controller are backed by template files so are methods in
an ActionMailer object.
>
> And: If I put some content into that file it is not displayed.
>
> So: What happens with the content in emailer/contact_email.html.erb ?
>
It should form the body of the email sent.

Fred
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to