I am new to ROR.
I have a controller
class Controllername < application
def method1
@obj = API_CALL
redirect_to redirect_url #calls the API authorization end point
#and redirects to action method2
end
def method2 #redirection to this action
@obj.somemethod #this value is null
end
end
My problem is when I use Instance variable or class varaible @obj or @@obj becomes nil in the action method2. I want this value to be whatever the value in method1.
Note: SESSION note helping as it's giving SSL error.
Any help is kindly appreciated.
Aucun commentaire:
Enregistrer un commentaire