These are chat archives for edbirmingham/network
filtered_network_actions.page(params[:page]).per(1). I did this to test but don't recommend it for development because it is easy to accidentally commit it and break the page when it is deployed. I recommend creating more than 25 actions in the db/seeds.rb file. An action is created on line 242 of db/seeds.rb as an example of how to do it. I would add an
eachlike the one on line 288 and create about 30 actions, something like this
(1..30).each do |i|. The variable
ican be used in the action description to give each action a unique name like it is used on line 290 to make each member first name different. This seeds file change should be committed too so that other developers in the future will have enough actions in their data to see the pagination. Then
rake db:resetwill need to be ran to create the new seed data. At this point, you should be able to see the pagination links.