Sent from my iPhone
On 12 Oct 2008, at 13:13, Jay Pangmi <[EMAIL PROTECTED]
s.net> wrote:
>
> Frederick Cheung wrote:
>> Print out the object's errors and you'll see
>>
>> Fred
>
> sorry how do i do that?
Look at foo.errors
Something like
puts foo.errors.inspect should do the trick.
Or stick
debugger
In an appropriate part of your test. When you hit that line you'll
drop into the debugger
>
> --
> Posted via http://www.ruby-forum.com/.
>
> >
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---