On Apr 14, 7:55 am, "CEO'Riley" <[email protected]> wrote:
> Figured it out.  Initially I ran under Java platform 1.8.6.  When I changed
> it to 1.1.4 it worked fine.  I'd still like to know why 1.8.6 didn't work.
Hello CEO...

First, may I ask you as you are a manager to follow some simple
rules:
- do not change the subject of a post to post your own question,
- when you reply try to not quote the whole message, especially when
there are images in it.

That said, I'll guess you mean Ruby platform and not Java platform in
the sentence above.
You seem to not make a difference between Ruby version 1.8.6 and JRuby
version 1.1.4.
Ruby 1.8.6 is pure Ruby, JRuby version 1.1.4 is an adaptation of Ruby
version 1.8.x including some Java bridge.
In the first, there is no Java bridge, in the second there is.
That is why your code cannot run on Ruby, but can run on JRuby.

Generally speaking, when you test eventually your code it may be wise
to test it under jirb, or jirb_swing (for a GUI interface), as well as
under irb, and the same for the doc. You may be surprised that some
methods exists on one and not on other, or not behave exactly the same.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to