Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Delete insecure and "bad practice" code. #5960

Merged
merged 1 commit into from

3 participants

Egor Homakov José Valim Lee Hambley
José Valim
Owner

Agreed. It is 2012, it is fine to remove that code.

José Valim josevalim merged commit 10540e2 into from
José Valim josevalim closed this
Egor Homakov

:( it was too easy
@josevalim kudos bro

Lee Hambley

:trollface: That's an awesome pull req. about time that went away, great work both of you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
7 railties/lib/rails/generators/rails/app/templates/config/routes.rb
View
@@ -3,11 +3,11 @@
# first created -> highest priority.
# Sample of regular route:
- # match 'products/:id' => 'catalog#view'
+ # get 'products/:id' => 'catalog#view'
# Keep in mind you can assign values other than :controller and :action
# Sample of named route:
- # match 'products/:id/purchase' => 'catalog#purchase', :as => :purchase
+ # get 'products/:id/purchase' => 'catalog#purchase', :as => :purchase
# This route can be invoked with purchase_url(:id => product.id)
# Sample resource route (maps HTTP verbs to controller actions automatically):
@@ -52,7 +52,4 @@
# See how all your routes lay out with "rake routes"
- # This is a legacy wild controller route that's not recommended for RESTful applications.
- # Note: This route will make all actions in every controller accessible via GET requests.
- # match ':controller(/:action(/:id))(.:format)'
end
Something went wrong with that request. Please try again.