On Jun 11, 12:07 pm, Max Williams <[email protected]>
wrote:
> I still think it's wrong that this situation can occur:
>
> @user.valid?
> => true
> @user.save
> => false
> @user.errors.full_messages
> => []
>
> Where's the feedback? How am i supposed to know why it didn't save?
> argghh.
>
If you're returning false on purpose, you'll typically add an error to
the current object (errors.add or add_to_base) to explain what
happened. Otherwise, it can be a little mysterious...
--Matt Jones
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---