Class: RedirectsController

Inherits:
ApplicationController
  • Object
show all
Defined in:
app/controllers/redirects_controller.rb

Instance Method Summary collapse

Instance Method Details

#showObject


2
3
4
5
# File 'app/controllers/redirects_controller.rb', line 2

def show
  redirect = Redirect.match(request)
  redirect_to redirect.path_to
end