On 3 Apr 2009, at 15:09, Sushrut Sathe wrote:
>
> Hi,
> How to retrive the record without using the id field.
> I have to use the table having singular and in that table there is
> no id
> field then how to fetch that table in my application.
You could use find :first or find :all, just specify whatever
conditions are relevant.
Fred
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---