[76491] branches/gsoc10-mpwa/mpwa/config/routes.rb

jrozner at macports.org jrozner at macports.org
Fri Feb 25 11:08:43 PST 2011


Revision: 76491
          http://trac.macports.org/changeset/76491
Author:   jrozner at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110225/4663bfc9/attachment-0001.html>


More information about the macports-changes mailing list