On Thu, Dec 4, 2008 at 6:00 AM, Dharmdip R. <
given value of the id column (or rather rails assumes that id is your
primary key) so what were you expecting?
I want all records base on query which i have written in
i am getting only one record not all records …
I think this is not the real query you are having. you just chose a
Assuming what u really want is to semulate
where country_id is a foreign key to something else
People.find_by_country_id(params[:country_id]) will retrieve only the
first record matching the condition.
you should use People.find_all_by_country_id(params[:country_id]) to
all matching results.
hope it helps