X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/d736a158bee0ff17bdba30496b87e1bfe20e2910..70c005313c698631e870000399204f633ffd9cd0:/config/routes.rb diff --git a/config/routes.rb b/config/routes.rb index dce4042de..92d849b4b 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -97,7 +97,8 @@ ActionController::Routing::Routes.draw do |map| map.connect '/user/:display_name/make_friend', :controller => 'user', :action => 'make_friend' map.connect '/user/:display_name/remove_friend', :controller => 'user', :action => 'remove_friend' map.connect '/user/:display_name/diary', :controller => 'diary_entry', :action => 'list' - map.connect '/user/:display_name/diary/:id', :controller => 'diary_entry', :action => 'list', :id => /\d+/ + map.connect '/user/:display_name/diary/:id', :controller => 'diary_entry', :action => 'view', :id => /\d+/ + map.connect '/user/:display_name/diary/:id/newcomment', :controller => 'diary_entry', :action => 'comment', :id => /\d+/ map.connect '/user/:display_name/diary/rss', :controller => 'diary_entry', :action => 'rss' map.connect '/user/:display_name/diary/newpost', :controller => 'diary_entry', :action => 'new' map.connect '/user/:display_name/account', :controller => 'user', :action => 'account' @@ -122,7 +123,8 @@ ActionController::Routing::Routes.draw do |map| map.connect '/message/new/:user_id', :controller => 'message', :action => 'new' map.connect '/message/read/:message_id', :controller => 'message', :action => 'read' map.connect '/message/mark/:message_id', :controller => 'message', :action => 'mark' - + map.connect '/message/reply/:message_id', :controller => 'message', :action => 'reply' + # fall through map.connect ':controller/:id/:action' map.connect ':controller/:action'