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


#1

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


#2

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


#3

cool cool thanks…

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

end


#4

On Thu, Mar 19, 2009 at 11:33 AM, Chris G.
removed_email_address@domain.invalid 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. ------------------------ removed_email_address@domain.invalid