How to redirect with a 301 or 302 in the routes.rb
You can pass in the status to the redirect in the route statement. For example, to do a 302 redirect: In the routes.rb get ‘/old/path’, to: redirect(‘/new/path’, status: 302) I hope this helps someone else!