Permalink
Browse files

Redirect using action hash instead of hardcoding full route

  • Loading branch information...
1 parent f2caf6e commit 82023532d862d773c27cdd7f55b9acacab41dd37 @carlosantoniodasilva carlosantoniodasilva committed Jan 5, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 railties/lib/rails/info_controller.rb
@@ -8,7 +8,7 @@ class Rails::InfoController < ActionController::Base # :nodoc:
before_filter :require_local!
def index
- redirect_to '/rails/info/routes'
+ redirect_to action: :routes
end
def properties

0 comments on commit 8202353

Please sign in to comment.