Frederick Cheung wrote:
>>
>>
>>  def notifications(sent_at = Time.now)
>>    subject    params[:subject]
> 
> You're not in your controller anymore - you can't access the params
> hash like that. Anything you need in your mailer needs to be passed as
> an argument to it (although you could pass params hash itself if you
> wanted)
> 
> Fred

so I need to do @subject = params[:subject] in the controller and then 
supply @subject in the model?

-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
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