rails arguments to after_save observer

Posted by ash34 on Stack Overflow See other posts from Stack Overflow or by ash34
Published on 2010-04-01T17:50:06Z Indexed on 2010/04/01 17:53 UTC
Read the original article Hit count: 365

Hi,

I want users to enter a comma-delimited list of logins on the form, to be notified by email when a new comment/post is created. I don't want to store this list in the database so I would use a form_tag_helper 'text_area_tag' instead of a form helper text_field. I have an 'after_save' observer which should send an email when the comment/post is created. As far as I am aware, the after_save event only takes the model object as the argument, so how do I pass this non model backed list of logins to the observer to be passed on to the Mailer method that uses them in the cc list.

thanks

© Stack Overflow or respective owner

Related posts about ruby-on-rails

Related posts about rails