Writing sample_app for railstutorial and having next error.
I’ve added <%= will_paginate @microposts %> to the user profile View and @microposts = @user.microposts.paginate(:page => params[:page]) to UsersController
> NoMethodError (protected method `wp_parse_options' called for #<Class:0x007fde66015a80>):
app/controllers/users_controller.rb:17:in `show'
Where is the problem?
Try
gem 'will_paginate', '~> 3.0'and bundle install again, restart server. Give paginate some extra params just for the hell of itpaginate(page: params[:page], per_page: 15)