I have this controller
def mymethod @theparam => (params[:valueoftheparam]) @theparam => "3" callothermethodthatusetheparam end
So basically, I have a "valuetheparam" which is equal to "2".
I need to change the value of "2" to "3" and give "callothermethodthatusetheparam" a new parameter (which is equal to "3")
however, "callothermethodthatusetheparam" at the end still used the old meaning ("2").
How can I change this value in the controller and allow "callothermethodthatusetheparam" to use the new parameter value?
Thanks!
source share