Displaying 1 result from an estimated 1 matches for "toropaintballs".
2006 Jan 23
1
learning how models, controllers, and views pass data
...essage'' %></p>
<!--[eoform:email]-->
I want to pass from the form a variable @message to email_list in the
controller, which passes to the MailList model:
class MailList < ActionMailer::Base
def send_email(email)
@recipients = email.address
@from = ''info@toropaintballs.com''
@subject = ''Toro Paintball''
@body[''full_name''] = email.fullname
## @message in here someway ##
end
end
which invokes the view send_email.rhtml:
Dear <%= @full_name %>,
<%= @message %>
Hope this isn''t way...