This project is archived and is in readonly mode.
undefined method `tap' for #<Rails::Server:0x15d8ea4> (NoMethodError)
Reported by fakingfantastic | May 15th, 2010 @ 05:45 PM
I'm on Mac 10.5
Here are my steps.
rvm install 1.9.2-head
rvm use 1.9.2-head
gem install rails --pre
rails newapp
updated my Gemfile to have:
gem "rails", :git => 'git://github.com/rails/rails.git' # (or)
gem "rails", :path => '/path/to/clone/of/[git://github.com/rails/rails.git]' # (both gave same error)
bundle installrails server
here's the error
/Users/fl/.rvm/gems/ruby-1.9.2-head/gems/rack-1.1.0/lib/rack/server.rb:170: warning: parenthesize argument(s) for future version
/Users/fl/.rvm/gems/ruby-1.9.2-head/bundler/gems/rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/railties/lib/rails/commands.rb:27: undefined method
tap' for #<Rails::Server:0x15d8ea4> (NoMethodError)
from script/rails:9:inrequire'
from script/rails:9
Comments and changes to this ticket
-
Jeff Kreeftmeijer May 15th, 2010 @ 05:51 PM
Wait, are you specifying a path to a clone in your gemfile? like this:
gem 'rails', :git => '~/code/rails'
Bundler's :git option ( http://gembundler.com/git.html ) expects a git repo to clone from. If you want to specify a path, use the :path option, like this:
gem 'rails', :path => '~/code/rails'
Or am I completely missing the point? :)
-
fakingfantastic May 15th, 2010 @ 06:07 PM
My bad, it was an oversight on my part. I updated the code accordingly.
-
Santiago Pastorino May 16th, 2010 @ 12:06 AM
- State changed from new to invalid
-
fakingfantastic May 16th, 2010 @ 01:24 AM
Fixed, if you have this error, do...
rvm use system rvn use 1.9.2-head
switching out of the ruby version, then back into it clears up the issue.
-
Santiago Pastorino May 16th, 2010 @ 01:53 AM
- State changed from new to invalid
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
<h2 style="font-size: 14px">Tickets have moved to Github</h2>
The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>