On Thu, Sep 29, 2011 at 2:16 PM, Ben Langfeld <[email protected]> wrote:
> Ruby 1.8 compatibility won't be dropped until Rails 4.x. Rails will
> generate your application using Ruby 1.9 hash (and, I believe, lambda)
> syntax if you create it using Ruby 1.9 (the same is true for generators). If
> you want to run your application on Ruby 1.8, I would suggest developing
> primarily using 1.8.
In Rails 3.1, you can force the 1.8 hash syntax with
$ rails -v
Rails 3.1.0
$ rails -h | grep 1.9
[--old-style-hash] # Force using old style hash (:foo =>
'bar') on Ruby >= 1.9
HTH,
Peter
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Core" 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-core?hl=en.