Commit 8971a80c

mo khan <mo@mokhan.ca>
2014-09-07 15:44:34
add redirect for pagination link.
1 parent 079a9b8
Changed files (1)
config/routes.rb
@@ -21,6 +21,7 @@ Cake::Application.routes.draw do
 
   get '/creations' => redirect('/cakes')
   get 'creations/:id', to: redirect('/cakes/%{id}')
+  get 'creations/page/:page', to: redirect('/cakes/page/%{page}')
 
   resources :profiles, :only => [:index, :show] do
     get 'page/:page', :action => :index, :on => :collection, as: :paginate