Hi folks! Getting started guide say Rails 3.1 is compatbilbe with ruby 1.8.7 or higher, but Rails 3.1 is plenty of hash declarations in Ruby 1.9.2 way Blog::Application.config.session_store :cookie_store, key: ''_rails31_blog_session'' or <td><%= link_to ''Destroy'', post, confirm: ''Are you sure?'', method: :delete %></td> etc. AFAIK Rails 3.2 will be compatible just with Ruby 1.9.2 but Rails 3.1 is still Ruby 1.8.7 compatible. isn''t it? -- Emili Parreño - www.eparreno.com Ruby/Rails Consultant & Trainer - www.prorubyteam.com -- 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 rubyonrails-core@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.
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. Regards, Ben Langfeld On Thu, Sep 29, 2011 at 1:13 PM, Emili Parreño <emili@eparreno.com> wrote:> Hi folks! > > Getting started guide say Rails 3.1 is compatbilbe with ruby 1.8.7 or > higher, but Rails 3.1 is plenty of hash declarations in Ruby 1.9.2 way > > Blog::Application.config.session_store :cookie_store, key: > ''_rails31_blog_session'' > or > <td><%= link_to ''Destroy'', post, confirm: ''Are you sure?'', method: :delete > %></td> > etc. > > AFAIK Rails 3.2 will be compatible just with Ruby 1.9.2 but Rails 3.1 is > still Ruby 1.8.7 compatible. isn''t it? > > -- > Emili Parreño - www.eparreno.com > Ruby/Rails Consultant & Trainer - www.prorubyteam.com > > -- > 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 rubyonrails-core@googlegroups.com. > To unsubscribe from this group, send email to > rubyonrails-core+unsubscribe@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/rubyonrails-core?hl=en. >-- 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 rubyonrails-core@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.
OK I see, this is a very important point to mention in Rails guides in a big alert box. I like magic, but just when I know the trick. Cheers On 29 September 2011 14:16, Ben Langfeld <ben@langfeld.co.uk> 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. > > Regards, > Ben Langfeld > > > On Thu, Sep 29, 2011 at 1:13 PM, Emili Parreño <emili@eparreno.com> wrote: > >> Hi folks! >> >> Getting started guide say Rails 3.1 is compatbilbe with ruby 1.8.7 or >> higher, but Rails 3.1 is plenty of hash declarations in Ruby 1.9.2 way >> >> Blog::Application.config.session_store :cookie_store, key: >> ''_rails31_blog_session'' >> or >> <td><%= link_to ''Destroy'', post, confirm: ''Are you sure?'', method: :delete >> %></td> >> etc. >> >> AFAIK Rails 3.2 will be compatible just with Ruby 1.9.2 but Rails 3.1 is >> still Ruby 1.8.7 compatible. isn''t it? >> >> -- >> Emili Parreño - www.eparreno.com >> Ruby/Rails Consultant & Trainer - www.prorubyteam.com >> >> -- >> 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 rubyonrails-core@googlegroups.com. >> To unsubscribe from this group, send email to >> rubyonrails-core+unsubscribe@googlegroups.com. >> For more options, visit this group at >> http://groups.google.com/group/rubyonrails-core?hl=en. >> > > -- > 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 rubyonrails-core@googlegroups.com. > To unsubscribe from this group, send email to > rubyonrails-core+unsubscribe@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/rubyonrails-core?hl=en. >-- Emili Parreño - www.eparreno.com Ruby/Rails Consultant & Trainer - www.prorubyteam.com -- 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 rubyonrails-core@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.
On Thu, Sep 29, 2011 at 2:16 PM, Ben Langfeld <ben@langfeld.co.uk> 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 rubyonrails-core@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.