[Rails] Re: problem with mailer in rails 3
Annapoorna
here are the steps I follow for Notification stuff
1. have a user controller and model
2. create rails mailer: rails g mailer user_mailer
3. open app/mailers/user_mailer.rb and added following method
def signup_nofitication(user)
@user = user
end
it should work now.
goto console, and run
user = User.last
UserMailer.signup_nofitication(user).deliver
let me know if it works for you or not.. if not then post error
message as well.
Ajit
--
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home