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