Frederick Cheung wrote:
> On Dec 4, 4:00�am, Dharmdip Rathod <[EMAIL PROTECTED]>
> wrote:
>> > primary key) so what were you expecting?
>>
>> > Fred
>>
>> I want all records base on query which i have written in
>> people=People.find(:all, :conditions=>["id=?",params[:id]])
>> i am getting only one record not all records ...
> 
> There is only ever one such record because the primary key is unique
> (by definition).
> 
> Fred

k
-- 
Posted via http://www.ruby-forum.com/.

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