On Mon, Oct 25, 2010 at 11:41 AM, radhames brito <[email protected]> wrote:

> remove the ! from the save , when you add a shebang to a rails method you
> force an exception, so instead of just outputting the age with is flash
> message you are making rails raise  and exception
>
>
>
> change this
>
> @user.save!
>
> to this
>
> @user.save
>


fixed a typo, i meant "force an exception"

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