19 May 2011, 16:09
Generic-user-small

patrick lynch (11 posts)

Good morning: I’m in AWDWR, section 14.1 Iteration I1: Adding Users..

I ran the following command that is shown on page 183:
depot> rails generate scaffold user name:string hashed_password:string salt:string

It gives the following error msg:
“Could not find gem ‘will_paginate (>= 3.0.pre)’ in any of the gem sources listed in your Gemfile.”

I’d appreciate any help…

This is what is in my Gemfile:

source ‘http://rubygems.org

gem ‘rails’, ‘3.0.5’

  1. Bundle edge Rails instead:
  2. gem ‘rails’, :git => ‘git://github.com/rails/rails.git’

gem ‘sqlite3’

  1. Use unicorn as the web server
  2. gem ‘unicorn’
  1. Deploy with Capistrano
  2. gem ‘capistrano’
  1. To use debugger (ruby-debug for Ruby 1.8.7+, ruby-debug19 for Ruby 1.9.2+)
  2. gem ‘ruby-debug’
  3. gem ‘ruby-debug19’, :require => ‘ruby-debug’
  1. Bundle the extra gems:
  2. gem ‘bj’
  3. gem ‘nokogiri’
  4. gem ‘sqlite3-ruby’, :require => ‘sqlite3’
  5. gem ‘aws-s3’, :require => ‘aws/s3’ #START_HIGHLIGHT

gem ‘will_paginate’, ‘>= 3.0.pre’ #END_HIGHLIGHT

  1. Bundle gems for the local environment. Make sure to
  2. put test-only gems in this group so their generators
  3. and rake tasks are available in development mode:
  4. group :development, :test do
  5. gem ‘webrat’
  6. end
04 Oct 2012, 20:33
Generic-user-small

Justin Calcagni (6 posts)

try this in the file

gem ‘will_paginate’, ‘~> 3.0’
instead of
gem ‘will_paginate’, ‘>= 3.0.pre’

  You must be logged in to comment