Author: tchemit Date: 2010-10-08 23:26:56 +0200 (Fri, 08 Oct 2010) New Revision: 158 Url: http://nuiton.org/repositories/revision/jredmine/158 Log: Anomalie #923: Fichier routes.rb manquant et mal document?\195?\169 dans le README.rdoc Added: trunk/jredmine-client/src/main/redmine/jredmine/config/ trunk/jredmine-client/src/main/redmine/jredmine/config/routes.rb Modified: trunk/jredmine-client/src/main/redmine/jredmine/README.rdoc Modified: trunk/jredmine-client/src/main/redmine/jredmine/README.rdoc =================================================================== --- trunk/jredmine-client/src/main/redmine/jredmine/README.rdoc 2010-10-08 10:23:16 UTC (rev 157) +++ trunk/jredmine-client/src/main/redmine/jredmine/README.rdoc 2010-10-08 21:26:56 UTC (rev 158) @@ -28,12 +28,12 @@ You have to add those lines to config/routes.rb # jredmine: ping, login , logout, with no project context... -map.connect 'jredmine/:action', :controller => 'rest' ,:action => ['ping', 'login', 'logout', 'get_projects', 'get_issue_statuses', 'get_issue_priorities'] -map.connect 'jredmine/:action.:format', :controller => 'rest' ,:action => ['get_projects', 'get_issue_statuses', 'get_issue_priorities'], :format => ['xml', 'json'] +map.connect 'jredmine/:action', :controller => 'jredmine' ,:action => ['ping', 'login', 'logout', 'get_projects', 'get_issue_statuses', 'get_issue_priorities'] +map.connect 'jredmine/:action.:format', :controller => 'jredmine' ,:action => ['get_projects', 'get_issue_statuses', 'get_issue_priorities'], :format => ['xml', 'json'] # jredmine/action/?? (:project_id) -map.connect 'jredmine/:action/:project_id', :controller => 'rest' -map.connect 'jredmine/:action.:format/:project_id', :controller => 'rest', :format => ['xml', 'json'] +map.connect 'jredmine/:action/:project_id', :controller => 'jredmine' +map.connect 'jredmine/:action.:format/:project_id', :controller => 'jredmine', :format => ['xml', 'json'] Added: trunk/jredmine-client/src/main/redmine/jredmine/config/routes.rb =================================================================== --- trunk/jredmine-client/src/main/redmine/jredmine/config/routes.rb (rev 0) +++ trunk/jredmine-client/src/main/redmine/jredmine/config/routes.rb 2010-10-08 21:26:56 UTC (rev 158) @@ -0,0 +1,9 @@ +ActionController::Routing::Routes.draw do |map| + # jredmine: ping, login , logout, with no project context... + map.connect 'jredmine/:action', :controller => 'jredmine' ,:action => ['ping', 'login', 'logout', 'get_projects', 'get_issue_statuses', 'get_issue_priorities'] + map.connect 'jredmine/:action.:format', :controller => 'jredmine' ,:action => ['get_projects', 'get_issue_statuses', 'get_issue_priorities'], :format => ['xml', 'json'] + + # jredmine/action/?? (:project_id) + map.connect 'jredmine/:action/:project_id', :controller => 'jredmine' + map.connect 'jredmine/:action.:format/:project_id', :controller => 'jredmine', :format => ['xml', 'json'] +end \ No newline at end of file