Is there a way to run a obj.each loop in the script/console?

is there a way to run a obj.each loop in the script/console?

Chris G. wrote:

is there a way to run a obj.each loop in the script/console?

Why not. just use it as you do with each loop.

@a=Class.find(:all)
@a.each do
?> yourstuff…

end

cool cool thanks…

@a=Class.find(:all)
@a.each do
?> yourstuff…

end

On Thu, Mar 19, 2009 at 11:33 AM, Chris G.
[email protected] wrote:

is there a way to run a obj.each loop in the script/console?

Yes, just type it in like you would anywhere else – unless I’m totally
missing your actual question :slight_smile:


Hassan S. ------------------------ [email protected]