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

patrick lynch (12 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’

Bundle edge Rails instead:

# gem ‘rails’, :git => ‘git://github.com/rails/rails.git’

gem ‘sqlite3’

Use unicorn as the web server

# gem ‘unicorn’

Deploy with Capistrano

# gem ‘capistrano’

To use debugger (ruby-debug for Ruby 1.8.7+, ruby-debug19 for Ruby 1.9.2+)

# gem ‘ruby-debug’ # gem ‘ruby-debug19’, :require => ‘ruby-debug’

Bundle the extra gems:

# gem ‘bj’ # gem ‘nokogiri’ # gem ‘sqlite3-ruby’, :require => ‘sqlite3’ # gem ‘aws-s3’, :require => ‘aws/s3’ #START_HIGHLIGHT

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

Bundle gems for the local environment. Make sure to

# put test-only gems in this group so their generators # and rake tasks are available in development mode: # group :development, :test do # gem ‘webrat’ # 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