Fetching records from tables

Dear all,

I have a doubt,

How to fetch records from tables, which are not having ID field as its
primary key.
If possible, please tell me to way to extract data from those tables.

“Nahalingam N. Kanakavel”
[email protected] wrote in message
news:[email protected]

Nahalingam N. Kanakavel.

have you tried dynmaic finders? e.g.


you can just append the column name to find_by_


No, I don’t want to do that,
I have tried the things which is given in the following link.


Thats what I have searched for, atlast I got that of my own too.

Thanks a lot for your efforts to resolve my problem.
Anyway your assistance also a new information to me. It will surely help
some time.

Thanks and regards,

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs