Revision: 76491 http://trac.macports.org/changeset/76491 Author: jrozner@macports.org Date: 2011-02-25 11:08:43 -0800 (Fri, 25 Feb 2011) Log Message: ----------- fixed routing issue with pagination Modified Paths: -------------- branches/gsoc10-mpwa/mpwa/config/routes.rb Modified: branches/gsoc10-mpwa/mpwa/config/routes.rb =================================================================== --- branches/gsoc10-mpwa/mpwa/config/routes.rb 2011-02-25 18:31:41 UTC (rev 76490) +++ branches/gsoc10-mpwa/mpwa/config/routes.rb 2011-02-25 19:08:43 UTC (rev 76491) @@ -1,10 +1,9 @@ ActionController::Routing::Routes.draw do |map| resources :categories, :only => [:index] do + match '/ports/page/:page', :to => 'ports#index', :page => :page resources :ports, :only => [:index, :show] do resources :comments, :only => [:create, :destroy] end - - match '/ports/page/:page', :to => 'ports#index', :as => :ports, :page => :page end match '/ports/page/:page', :to => 'ports#index', :page => :page