Commit 56112c30
Changed files (2)
app
views
creations
config
app/views/creations/index.js.erb
@@ -1,3 +1,3 @@
$('#more-button-row').remove()
$('#bakery').append('<%= j render partial: 'index' %>');
-history.pushState({ }, "page <%= params[:page] %>", "<%= creations_path(page: params[:page]) %>");
+history.pushState({ }, "page <%= params[:page] %>", "<%= paginate_creations_path(page: params[:page]) %>");
config/routes.rb
@@ -13,11 +13,10 @@ Cake::Application.routes.draw do
get ':id/page/:page', :action => :show, :on => :collection
end
- get '/creations/new', to: redirect('/login')
resources :creations, only: [:index, :show] do
resources :photos, only: [:index, :show]
resources :favorites, :only => [:index, :create]
- get 'page/:page', :action => :index, :on => :collection
+ get 'page/:page', :action => :index, :on => :collection, as: :paginate
end
resources :profiles, :only => [:index, :show] do