How can you redirect using a 302 from within the routes.rb file?
You can pass in the status to the redirect in the route statement. For example, to do a 302 redirect:
In the routes.rb
routes.rb
get '/old/path', to: redirect('/new/path', status: 302)
I hope this helps someone else!