Hi Ruby Forum,
I have a situation that I have never run into before. I need to pass a
param from one view into a different section of my controller.
I’m having a bit of trouble passing a variable from my view into another
part of my controller in order to control what IP address is used to
have the graph applied.
I want to pass the IP address to the controller from the view as
[:text1] in this example into “one” in my controller.
Normally, when I pass a param, it is used in the same part of the
controller…ie, in this case: “view”…not in this case. I need to pass
the param from the view page into “one” in order to see the graph I’m
input = params[:text1]
@graph = open_flash_chart_object(950,400, ‘/look/one’, false, ‘/’)
@tester = Tester.find(:all, :conditions => "ipadd = ‘10.1.1.2’ and label
‘2008-01-01 00:00:00’", :order => ‘label’)
Is there a way to pass it from view into one?