Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- map.connect ':year/:month/:day/:permalink', :controller => 'posts', :action => 'display_by_date',
- :month => nil, :day => nil, :permalink => nil,
- :requirements => {:year => /\d{4}/, :day => /\d{1,2}/, :month => /\d{1,2}/}
- #chapters_path => /chapters
- #chapter_path(1) => /chapters/1
- #formatted_chapter_path(1) => /chapters/1.xml
- map.resources :posts do |posts|
- #/posts/1/revisions/7
- #revision_path(id_of_chapter, id_of_revision)
- posts.resources :revisions, :comments
- end
Add Comment
Please, Sign In to add comment