Request.referer

hello All

I am passing some form value from one page to another and if something
is missing from form value redirecting user back to home page,
following is code to redirect back:

redirect_to request.referer ? :back : “/”

i want to pass those params back. something like;

redirect_to request.referer ? :back + params : “/#{params}”

any advice

Thanks

Ajit

Ajit Singh wrote:

i want to pass those params back. something like;

redirect_to request.referer ? :back + params : “/#{params}”

http://api.rubyonrails.org/classes/ActionController/AbstractRequest.html#M000819