[Rails] vincent vega

array problem :newbie wizarduo at hotmail.com
Mon Aug 14 02:42:10 GMT 2006


hi!

i have a little problem, i cant take out the values of an array. here is 
my problem


****************
--------------
..controller

def create
 @tray = Tray.new
 @tray.put(params[:ordering])
end

--------------
..model

def put(ordering)
 render_text ordering.pages
end

****************

i become the param[:ordering], and then if i want to send the param to 
another method, i dont know, how can i pick up the values of this array. 
(the render_text is only to test if it works, and it doesnt work :[ ) 
but if i only put ordering, i see, that the values are there.

what can i do??

ty!!

-- 
Posted via http://www.ruby-forum.com/.


More information about the Rails mailing list