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... -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Peter Vandenabeele
2012-Feb-11 13:36 UTC
Re: Migrating rails app created on ruby 1.9 to work on 1.8.7
On Sat, Feb 11, 2012 at 1:11 PM, Marcin S <msporysz06-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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 which can be seen with $ rails new --help HTH, Peter -- *** Available for a new project *** Peter Vandenabeele http://twitter.com/peter_v http://rails.vandenabeele.com http://coderwall.com/peter_v -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Marcin S
2012-Feb-11 19:23 UTC
Re: Migrating rails app created on ruby 1.9 to work on 1.8.7
2012/2/11 Peter Vandenabeele <peter-jNuWw7i2w7syMbTcgqFhxg@public.gmane.org>:> On Sat, Feb 11, 2012 at 1:11 PM, Marcin S <msporysz06-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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 > > which can be seen with > > $ rails new --help > > HTH, > > Peter > > > -- > *** Available for a new project *** > > Peter Vandenabeele > http://twitter.com/peter_v > http://rails.vandenabeele.com > http://coderwall.com/peter_v > > -- > 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en.Yes, but its kinda too late for that :)) -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org 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.
Colin Law
2012-Feb-11 19:52 UTC
Re: Migrating rails app created on ruby 1.9 to work on 1.8.7
On 11 February 2012 19:23, Marcin S <msporysz06-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> 2012/2/11 Peter Vandenabeele <peter-jNuWw7i2w7syMbTcgqFhxg@public.gmane.org>: >> On Sat, Feb 11, 2012 at 1:11 PM, Marcin S <msporysz06-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org 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.