Page redirect

i have a small query for all of you

i have a report problem link in a view and after reporting the problem
sucessfully

the page should redirect to the previous page prior to clicking the
report problem link

Hi John,

john wrote:

the page should redirect to the previous page prior
to clicking the report problem link

redirect_to => :back

hth,
Bill

On Mar 7, 2007, at 10:24, john wrote:

i have a small query for all of you

i have a report problem link in a view and after reporting the problem
sucessfully

the page should redirect to the previous page prior to clicking the
report problem link

Try redirect_to :back or using request.env[“HTTP_REFERER”] as the link
address.