xxmithila wrote:
> hi..
> 
>    how can I retrive data from a specific row of table by giving two
> or more properties of that row?
> examlpe I want to get data which   ID = 23  and NAME = "xx" like

As long as your table is made up of Models, you can do something like:

@mydata = ModelName.find('23', :conditions => "NAME = 'xxx'" )

HTH

Matt

--~--~---------~--~----~------------~-------~--~----~
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@googlegroups.com
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