This is in the login action. I'm trying to adapt it to send back a return_url query param, and i'm failing with a simple render.
Prior:
respond_to do |format|
format.html {
flash.now[:error] = error
render
}
Attempt 1:
respond_to do |format|
format.html {
flash.now[:error] = error
render return_url => "blah"
}
Attempt 2:
respond_to do |format|
format.html {
flash.now[:error] = error
render "login", local => {return_url => "blah"}
}
From what I understand. You are trying to pass a return_url to the view. Right? So if you want that you can just create a instance variable that contains the value of the returning url For ex
If it doesn't answer your question. Could you be precise. I am not so sure I do understand your question correctly.