How do I upgrade to the newest version of Rails?

0

I'm running on OSX Snow Leopard. Using ruby -v I see I have 1.8.7 and using rails -v I have 2.3.5

When I try gem update rails I get the following error:

bundler requires RubyGems version >= 1.3.6

Jhorra

Posted 2011-05-14T05:48:10.800

Reputation: 141

possible duplicate of Need help to upgrade my rails version

– Blender – 2011-05-14T05:53:30.600

1He's upgrading an application, I just need to update the version of rails installed. Also he's on a Windows machine, and I'm on a mac. In addition that thread is a year old and has items specific to that version which are now out dated. – None – 2011-05-14T05:56:25.103

See my answer (below) – Blender – 2011-05-14T06:01:29.853

1A question: why was this question migrated from stackoverflow to superuser? It's clearly about software development (and the related things that go with it, such as how to configure X dev environment). – Zabba – 2011-05-14T07:00:04.773

@Zabba: probably they confused SuperUser and ServerFault; this is not software development questions either. – Lie Ryan – 2011-05-14T11:17:25.893

Answers

1

I suggest using rvm instead of trying to mess with ruby that comes default with Mac os

Aroop Chandra G

Posted 2011-05-14T05:48:10.800

Reputation:

2

The error message you're receiving is because the new version of Rails requires a newer version of gem than you have. You can update gem like this:

gem update --system

You may need sudo if you're using system gem. You can check the version of gem by running:

gem -v

Once this is done, and you can confirm your gem version is at least 1.3.6, you should be able to run:

gem update rails

Jonathan Tran

Posted 2011-05-14T05:48:10.800

Reputation: 241

0

I don't know if you have Brew or Macport:

If you have Brew installled then you use the following command to install:

sudo gem install rails

or

brew gem install rails

Please go through this link:

http://hivelogic.com/articles/compiling-ruby-rubygems-and-rails-on-snow-leopard/

Deepak Lamichhane

Posted 2011-05-14T05:48:10.800

Reputation: 101

0

From my comment, you can upgrade rails by this command (I hope):

sudo gem install rails

Blender

Posted 2011-05-14T05:48:10.800

Reputation: 596

When I try install rails or update rails I get the following error:

bundler requires RubyGems version >= 1.3.6 – None – 2011-05-14T06:07:13.513

Run dis: sudo gem update -V – Blender – 2011-05-14T06:08:22.303

I ran that and it seemed to work, but I still get the above error – None – 2011-05-14T06:11:22.000