will_paginate NoMethodError

ruby, ruby-on-rails, will-paginate

Solution

Try `gem 'will_paginate', '~> 3.0'` and bundle install again, restart server. Give paginate some extra params just for the hell of it `paginate(page: params[:page], per_page: 15)`

Problem

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?

Original source