Migrating rails app created on ruby 1.9 to work on 1.8.7

Hello,
I have a rails app created on rails 3.1.x and ruby 1.9.2, but server
where it should be deployed runs ruby-1.8 :confused:
Ruby-1.9 implements new style of hash assigment that Rails 3 utilize
in some places - and thats the problem, bcos Ruby 1.8 does not support
it…

Now, what to do? My server admin won’t upgrade to ruby 1.9 until its
in Fedora stable repository…

2012/2/11 Peter V. [email protected]:

in Fedora stable repository…

http://rails.vandenabeele.com
http://coderwall.com/peter_v


You received this message because you are subscribed to the Google G.
“Ruby on Rails: Talk” group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.

Yes, but its kinda too late for that :))

On Sat, Feb 11, 2012 at 1:11 PM, Marcin S [email protected] wrote:

Hello,
I have a rails app created on rails 3.1.x and ruby 1.9.2, but server
where it should be deployed runs ruby-1.8 :confused:
Ruby-1.9 implements new style of hash assigment that Rails 3 utilize
in some places - and thats the problem, bcos Ruby 1.8 does not support
it…

Now, what to do? My server admin won’t upgrade to ruby 1.9 until its
in Fedora stable repository…

For a new app, there is an option

  [--old-style-hash]         # Force using old style hash (:foo =>

‘bar’) on Ruby >= 1.9

which can be seen with

$ rails new --help

HTH,

Peter


*** Available for a new project ***

Peter V.
http://twitter.com/peter_v
http://rails.vandenabeele.com
http://coderwall.com/peter_v

On 11 February 2012 19:23, Marcin S [email protected] wrote:

Now, what to do? My server admin won’t upgrade to ruby 1.9 until its
in Fedora stable repository…

For a new app, there is an option

[–old-style-hash] # Force using old style hash (:foo =>
‘bar’) on Ruby >= 1.9

Yes, but its kinda too late for that :))

I don’t know what that does, but since it does not change any of your
code, or change rails itself I guess it must be something in the
environment files or the scripts. It might be worth building new
empty apps, with and without the flag, and see what the difference is.
Unless someone knows the difference, or can work it out.

Colin

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs