~ $ ruby -v
ruby 2.0.0p247 (2013-06-27 revision 41674) [x86_64-darwin12.4.0]
~ $ which ruby
/usr/local/bin/ruby
~ $ rails -v
Rails 4 prefers to run on Ruby 2.0.
You're running
ruby 1.8.7 (2012-02-08 patchlevel 358) [universal-darwin12.0]
Please upgrade to Ruby 1.9.3 or newer to continue.
~ $ cat $(which rails) | head -1
#!/usr/bin/ruby
~ $ /usr/bin/ruby -v
ruby 1.8.7 (2012-02-08 patchlevel 358) [universal-darwin12.0]
~ $
As you can see, Rails is not picking up the default version of Ruby which is 2.0.
Is it okay to modify the first line of Rails to #!/usr/local/bin/ruby
?