Displaying 1 result from an estimated 1 matches for "condiion".
Did you mean:
condition
2006 May 09
1
select specified fields from a record
ok, here is my question, how can i select only one or two, three.. etc
fields from a sentence, for example, i only want to know the id, name
from de User model
User.find(:first, :condiions => ["id = ?", @id])
how can i specify what fields i want??
--
Posted via http://www.ruby-forum.com/.