Reputation: 41
I tried to create a new project and ran "$ rails new testx" but go the below syntax error... what has gone wrong??? As seen below I have Ruby V1.9.3 and rails V1.2.0 installed in the RVM.
macjam$ rails new tests
/Users/macjam/.rvm/rubies/ruby-1.9.3- p550/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:54:in `require': /Users/macjam/.rvm/gems/ruby-1.9.3-p550/gems/activesupport-1.4.0/lib/active_support/inflector.rb:267: syntax error, unexpected ':', expecting keyword_then or ',' or ';' or '\n' (SyntaxError)
when 1: "#{number}st"
Upvotes: 0
Views: 1099
Reputation: 2048
Rails 1.2 is quite old and doesn't work with ruby 1.9. If you look at /Users/macjam/.rvm/gems/ruby-1.9.3-p550/gems/activesupport-1.4.0/lib/active_support/inflector.rb
line 267 where the error originates you'll see a case
expression. Use of colons in case
is no longer supported in ruby 1.9. Downgrade ruby or upgrade to rails 4.
Upvotes: 2