On 25 Oct 2008, at 20:19, X wrote:
> >> Yup you got it. > > Thanx for your quick reply ! Great service :-) > >>> Still I am not sure how to solve this for send_mail.html.erb, but >>> probably a render function is missing here or not correct. >> >> What was the problem here? > > The same problem (but it seems to have a different answer). > > In contact_email.html.erb I did not get access to variable @recipients > but only to variable @email_body, looks like this is rendered off the > hash table @body. But in send_mail.html.erb neither the one nor the > other works. I would, however, want to present the user with a copy of > the mail he sent via the form in the browser, so I need to know how > the send_mail.html.erb template can access the email body. > the send_mail template knows absolutely nothing of what happened in the mailer. By the time send_mail.html.erb is rendered the actionmailer object with those instance variables probably doesn't even exist anymore. Given that those values were just things pulled out of the params hash the send_mail view/its associated controller action can just do the same thing. 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 -~----------~----~----~----~------~----~------~--~---

