Created
March 2, 2010 20:54
-
-
Save rbarazi/319933 to your computer and use it in GitHub Desktop.
[Beginning Rails 3] Listing 2-4. The config/routes.rb file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Hello::Application.routes.draw do |map| | |
match ':controller(/:action(/:id(.:format)))' | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @ansaanch, If you're using Rails 4, you can do the following: