[Rails] Re: Will paginate is missing on rake db:migrate
I've had this problem before on Leopard. The only way that I've been
able to get rid of that warning was to remove :version from the
options hash. So this:
config.gem "will_paginate", :version => "~> 2.3.11", :source =>
"http://gemcutter.org"
Becomes this:
config.gem "will_paginate", :source => "http://gemcutter.org"
I realize that this is not a true solution, but the gem version isn't
required unless you think you may be using a different version in your
production environment. But, technically speaking, you should have a
mirrored environment for your development and production machines
anyway.
It is a strange error that I've mentioned on here before. Try the
method above and see if that helps.
On Dec 22, 3:23 am, jeb <jo...@ibiz.se> wrote:
> I have a very annoying problem, when doing rake db:migrate, I get the
> error message:
>
> Missing these required gems:
> will_paginate ~> 2.3.11
>
> But the gem is not missing, It runs very well in my app. To make the
> rake pass I have to comment out the gem in my environment.rb file.
>
> environment.rb:
> config.gem "will_paginate", :version => "~> 2.3.11", :source =>
> "http://gemcutter.org"
>
> I use snow leopard. What have I done wrong?
>
> Jonas-MB:stuteri jeb$ gem list
>
> *** LOCAL GEMS ***
>
> actionmailer (2.3.5)
> actionpack (2.3.5)
> activerecord (2.3.5)
> activeresource (2.3.5)
> activesupport (2.3.5)
> authlogic (2.1.3)
> nifty-generators (0.3.0)
> rack (1.0.1)
> rails (2.3.5)
> rake (0.8.7)
> searchlogic (2.3.9)
> sqlite3-ruby (1.2.5)
> tabs_on_rails (1.0.0)
> will_paginate (2.3.11)
>
> Jonas-MB:stuteri jeb$ gem environment
> RubyGems Environment:
> - RUBYGEMS VERSION: 1.3.5
> - RUBY VERSION: 1.8.7 (2009-06-12 patchlevel 174) [i686-darwin10]
> - INSTALLATION DIRECTORY: /opt/local/lib/ruby/gems/1.8
> - RUBY EXECUTABLE: /opt/local/bin/ruby
> - EXECUTABLE DIRECTORY: /opt/local/bin
> - RUBYGEMS PLATFORMS:
> - ruby
> - x86-darwin-10
> - GEM PATHS:
> - /opt/local/lib/ruby/gems/1.8
> - /Users/jeb/.gem/ruby/1.8
> - GEM CONFIGURATION:
> - :update_sources => true
> - :verbose => true
> - :benchmark => false
> - :backtrace => false
> - :bulk_threshold => 1000
> - REMOTE SOURCES:
> -http://gems.rubyforge.org/
> Jonas-MB:stuteri jeb$
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home