Just as a little note about the state of Ruby 1.9 and also how it relates to RoR.
1) As mentioned there are major differences between Ruby 1.8.x and Ruby 1.9.x that break code when moving from one to the other (they are pretty easy to work through). The site 'miga' had in his message ( http://eigenclass.org/hiki/Changes+in+Ruby+1.9) is a must read that details the changes... 2) Rails 2.3 is completely compatible with Ruby 1.9, but... the same cannot be said for all of the community written "gems". Most have not been updated to work with Ruby 1.9...yet. There is a strong push within the community to get as many gems updated to 1.9 computability as quickly as possible. But at this point, I would still consider Ruby 1.9.1 + RoR 2.3 as bleeding edge and not a great place for beginners to be. That will change soon, but the stability of gems (which most people end up using) will present challenges. If you plan on learning RoR the safer place to be right now is on Ruby 1.8.x . On Sat, Apr 4, 2009 at 7:33 AM, miga <[email protected]> wrote: > > > > On Apr 4, 11:56 am, dwi ardi irawan <[email protected]> wrote: > > Hi, i just try exercise 3, RubyMethod_Parentheses > > and just found that it result different result using Ruby 1.9 > > > > can somebody explain me about this ? > I will suspect that the to_s method is involved in printing a hash, > and the difference lays in this to_s method, which is equivalent to > inspect method in ruby 1.9 > > In ruby 1.8: > [1,2,3].to_s results in "123" > > In ruby 1.9: > [1,2,3].to_s results in "[1,2,3]" > > You may find useful this url to see what are the changes in ruby 1.9 > together with examples: > http://eigenclass.org/hiki.rb?Changes+in+Ruby+1.9#l87 > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "ruby-on-rails-programming-with-passion" group. To unsubscribe from this group, send email to ruby-on-rails-programming-with-passion-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/ruby-on-rails-programming-with-passion?hl=en?hl=en -~----------~----~----~----~------~----~------~--~---
