Displaying 1 result from an estimated 1 matches for "actioncode".
Did you mean:
actionco
2006 Apr 14
6
Running through results of find()
...n about the find() method in RoR
This is my code:
actions=Action.find(:all, :conditions => "ActivityID=''actid''")
This should return a list, array, hash, ... ? of Actions.
What type of data does find() return? And how do I run through it?
I would like to show Action.ActionCode for every action in actions.
I tried:
for action in actions
output += action.ActionCode
end
Didn''t work.
Thanks,
Steven.
--
Posted via http://www.ruby-forum.com/.