Created
March 1, 2009 19:06
-
-
Save dira/72436 to your computer and use it in GitHub Desktop.
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
# change name for generated routes | |
map.resources :posts, :as => 'articles' | |
# manually update any custom routes that use the old name | |
map.post_draft '/article/:id/:token', :controller => 'posts', :action => 'show', :conditions => { :method => :get } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment