Michael Durrant
Michael Durrant

Reputation: 96484

undefined method `ruby' for #<Bundler::Dsl:0x007fc17c3fc6c8> (NoMethodError)

Just pulled latest code and now getting:

...my_app/Gemfile:2:in `evaluate': 
undefined method `ruby' for #<Bundler::Dsl:0x007fc17c3fc6c8> (NoMethodError)

Upvotes: 1

Views: 1953

Answers (1)

matt
matt

Reputation: 79733

The ruby method that allows you to specify the version of Ruby your project should use was only added in Bundler 1.2. You’ve got a project with a Gemfile that uses this new ruby method, but have an old version of Bundler. You just need to get Bundler 1.2 with

gem install bundler

and you should be good to go.

Upvotes: 12

Related Questions