Saturday, February 11, 2012

Re: [Rails] Migrating rails app created on ruby 1.9 to work on 1.8.7

On 11 February 2012 19:23, Marcin S <msporysz06@gmail.com> wrote:
> 2012/2/11 Peter Vandenabeele <peter@vandenabeele.com>:
>> On Sat, Feb 11, 2012 at 1:11 PM, Marcin S <msporysz06@gmail.com> 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  :/
>>> 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
>>
> 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

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate