Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

undefined method `tap' for #<Rails::Server:0x15d8ea4> (NoMethodError)

#4606

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 install
rails 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 #&lt;Rails::Server:0x15d8ea4&gt; (NoMethodError)
from script/rails:9:inrequire'
from script/rails:9

Reported by fakingfantastic · May 15th, 2010 @ 05:45 PM

State: invalid
Milestone: none
Assigned to: nobody
Importance: none

Activity

  1. Jeff Kreeftmeijer
    Jeff Kreeftmeijer

    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? :)

    May 15th, 2010 @ 05:51 PM

  2. fakingfantastic
    fakingfantastic

    My bad, it was an oversight on my part. I updated the code accordingly.

    May 15th, 2010 @ 06:07 PM

  3. Santiago Pastorino
    Santiago Pastorino
    • State changed from new to invalid

    May 16th, 2010 @ 12:06 AM

  4. Santiago Pastorino
    Santiago Pastorino
    • State changed from invalid to new

    Sorry about that

    May 16th, 2010 @ 01:17 AM

  5. fakingfantastic
    fakingfantastic

    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.

    May 16th, 2010 @ 01:24 AM

  6. Santiago Pastorino
    Santiago Pastorino
    • State changed from new to invalid

    May 16th, 2010 @ 01:53 AM