[Rails] Re: Re: to get only the updated fields

2010-03-09 Thread Tom Mac
Hi I solved it as Michael suggested And it was working .But now i notified another issue. That is why reopening the thread. The issue is, even if the validations fail, mail is sent to user (What I need is only if update happens successfully on changed attributes then only mail to be sent)

Re: [Rails] Re: Re: to get only the updated fields

2010-03-09 Thread Michael Pavling
On 9 March 2010 08:31, Tom Mac li...@ruby-forum.com wrote: even if the validations fail, mail is sent to user (What I need is only if update happens successfully on changed attributes then only mail to be sent)    if changed? save      deliver_user_edit_details!    else      return

[Rails] Re: Re: to get only the updated fields

2010-03-03 Thread Tom Mac
Hi Thank you. I have one more thing to clarify . If I write a before_save filter as you suggested, then will mail be sent when ever there is an update or save to this User model ? That is not what I want if it behaves like that.Please excuse if I am wrong Thanks Tom -- Posted via

Re: [Rails] Re: Re: to get only the updated fields

2010-03-03 Thread Michael Pavling
On 3 March 2010 12:47, Tom Mac li...@ruby-forum.com wrote: Hi   Thank you. I have one more  thing to clarify . If I write a before_save filter as you suggested, then will mail be sent when ever there  is an update or save to this User model ? That is not what I want if it behaves like