find() expects either numeric ids or :first or :all followed by more
conditions. Please see
http://api.rubyonrails.org/classes/ActiveRecord/Base.html#M000992
for more info.
- Doug Barth
On Mar 6, 10:53 am, "Andrew Madu"
<andrewm...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> Hi,
> I have implemented the following:
>
> @newUser = Usertbl.new
> @newUser.username = ''first''
> @newUser.userpassword = ''last''
> @userDetails = Usertbl.find(@newUser)
>
> and am getting the following error message:
>
> ''Couldn''t find Usertbl with
ID=#<Usertbl:0x4783fa8>''
>
> Why is this not allowed?
>
> --
> Regards
>
> Andrew
--~--~---------~--~----~------------~-------~--~----~
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
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---