SpecificModelName.find(10)
that''s it
On Nov 1, 7:34 am, "Ishara Gunathilake"
<jaimgunathil...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> can anyone tell me,how can retrieve data from a specific modelwhen i pass
an
> id.
> as an example there''s table called agent_detail,it includes
> id, name, address
> so i wanna get name and address from that table which will be the of row
> id=10,
> i just only want to pass id number and then i can be get the data
--~--~---------~--~----~------------~-------~--~----~
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@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---