I am trying to create a route and a action that redirects the params.
Example when a user visits: www.mywebsite.com/photographer/flv/:ID/:filename
I want the user to be redirected to: www.someotherwebsite.com/photographer/flv/:ID/:filename
I have tried to accomplish with this solution without luck:
My controller URL:
def videore
redirect_to www.whateverwebsite.com + params[:all]
end
And in routes:
match '/photographer/flv/:ID/:filename' => 'URL#videore'
This should do it:
In your controller action:
And in routes:
This assumes, of course, that ‘url’ is the name of your controller