# Ruby

**URL:** https://www.ruby-forum.com/c/ruby/7.md?page=1056

[Latest](https://www.ruby-forum.com/latest.md) · [Categories](https://www.ruby-forum.com/categories.md) · [Tags](https://www.ruby-forum.com/tags.md)

**Page:** 1057

---

## [Problem linking tables and accessing relationship heirarchy](https://www.ruby-forum.com/t/problem-linking-tables-and-accessing-relationship-heirarchy/145061)

<div class="topic-metadata">

**Author:** [@zakifataya](https://www.ruby-forum.com/u/zakifataya)\
**Replies:** 1\
**Last updated:** [August 5, 2008, 5:55pm UTC](https://www.ruby-forum.com/t/problem-linking-tables-and-accessing-relationship-heirarchy/145061 "2008-08-05T17:55:45Z")

</div>

I’m not quite understanding this relationship thing between models and tables. What I am trying to do within my view is get the price information by referring to it like this: \<%= @item.itemprice.Qty1 %\> In each of …

---

## [Hash code reference - this only returns 'nil' please help me](https://www.ruby-forum.com/t/hash-code-reference-this-only-returns-nil-please-help-me/144977)

<div class="topic-metadata">

**Author:** [@mmcolli00](https://www.ruby-forum.com/u/mmcolli00)\
**Replies:** 11\
**Last updated:** [August 5, 2008, 5:45pm UTC](https://www.ruby-forum.com/t/hash-code-reference-this-only-returns-nil-please-help-me/144977 "2008-08-05T17:45:44Z")

</div>

Please tell me what I am doing wrong. i thought h\[ErrFieldID\] would work however it doen’t. Thanks. Mom h = {‘25127’ =\> ‘RefProvNPI’, ‘10353’ =\> ‘ProcCode’} it (“Search for FieldId Tag containing error in XML file”) d…

---

## [Code Review: MO-RubyCall2](https://www.ruby-forum.com/t/code-review-mo-rubycall2/145009)

<div class="topic-metadata">

**Author:** [@grujildo](https://www.ruby-forum.com/u/grujildo)\
**Replies:** 1\
**Last updated:** [August 5, 2008, 5:28pm UTC](https://www.ruby-forum.com/t/code-review-mo-rubycall2/145009 "2008-08-05T17:28:12Z")

</div>

tfpt review “/shelveset:MO-RubyCall2;REDMOND\\tomat” Switches all Ruby call actions to use meta-objects. Also refactors some methods generating rules for procs and adds meta-objects for more Ruby classes (not used so f…

---

## [Where to upload a ruby script to share it?](https://www.ruby-forum.com/t/where-to-upload-a-ruby-script-to-share-it/144985)

<div class="topic-metadata">

**Author:** [@kaizen](https://www.ruby-forum.com/u/kaizen)\
**Replies:** 3\
**Last updated:** [August 5, 2008, 4:54pm UTC](https://www.ruby-forum.com/t/where-to-upload-a-ruby-script-to-share-it/144985 "2008-08-05T16:54:55Z")

</div>

Hi, I’ve made a ruby script to translate UTM to LAT,LON coordinates and viceversa. I think that GitHub and RubyForge are too big for this simple project: it works and I’ve no intention to continue it. I will use GPL …

---

## [Catching (or saving) errors](https://www.ruby-forum.com/t/catching-or-saving-errors/145014)

<div class="topic-metadata">

**Author:** [@enchanter](https://www.ruby-forum.com/u/enchanter)\
**Replies:** 4\
**Last updated:** [August 5, 2008, 4:48pm UTC](https://www.ruby-forum.com/t/catching-or-saving-errors/145014 "2008-08-05T16:48:55Z")

</div>

So, I am currently working on an Interactive Fiction like game in Ruby, and have stumbled across a bit of a problem. The ‘move’ function makes a call to the room’s ‘exits’ variable (exits\[:north\], for instance) but I …

---

## [Help with 1.8.7 Binary under MS Windows](https://www.ruby-forum.com/t/help-with-1-8-7-binary-under-ms-windows/145040)

<div class="topic-metadata">

**Author:** [@ribes](https://www.ruby-forum.com/u/ribes)\
**Replies:** 1\
**Last updated:** [August 5, 2008, 4:31pm UTC](https://www.ruby-forum.com/t/help-with-1-8-7-binary-under-ms-windows/145040 "2008-08-05T16:31:19Z")

</div>

Hello, Since I could not find the “1-click” package for 1.8.7, I downloaded its binary. I proceeded to remove 1.8.6 and extracted 1.8.7 in its place. So I have a dir strcuture of: c:\\ruby C:\>cd ruby C:\\ruby\>dir V…

---

## [\[ANN\] ANTFARM-0.2.0 Released](https://www.ruby-forum.com/t/ann-antfarm-0-2-0-released/145053)

<div class="topic-metadata">

**Author:** [@roxah](https://www.ruby-forum.com/u/roxah)\
**Replies:** 0\
**Last updated:** [August 5, 2008, 4:22pm UTC](https://www.ruby-forum.com/t/ann-antfarm-0-2-0-released/145053 "2008-08-05T16:22:02Z")

</div>

NAME ANTFARM DESCRIPTION Passive network mapping tool. URI http://antfarm.rubyforge.org http://rubyforge.org/projects/antfarm INSTALL gem install ANTFARM HISTORY 0.2.0 Initial release as open source SYNOPSIS …

---

## [Cool Projects](https://www.ruby-forum.com/t/cool-projects/144606)

<div class="topic-metadata">

**Author:** [@alasdairb](https://www.ruby-forum.com/u/alasdairb)\
**Replies:** 30\
**Last updated:** [August 5, 2008, 4:00pm UTC](https://www.ruby-forum.com/t/cool-projects/144606 "2008-08-05T16:00:59Z")

</div>

So, anyone working on something awesome? Brag here…

---

## [NoClassDefFoundError since JRuby 1.1.3](https://www.ruby-forum.com/t/noclassdeffounderror-since-jruby-1-1-3/144610)

<div class="topic-metadata">

**Author:** [@Hugo\_Reis](https://www.ruby-forum.com/u/Hugo_Reis)\
**Replies:** 2\
**Last updated:** [August 5, 2008, 3:20pm UTC](https://www.ruby-forum.com/t/noclassdeffounderror-since-jruby-1-1-3/144610 "2008-08-05T15:20:40Z")

</div>

Hi, I have a application that uses BSF to invoke JRuby scripts and since JRuby 1.1.3 i’m getting this exception: unable to load language: ruby: java.lang.NoClassDefFoundError: org/apache/bsf/util/BSFEngineImpl I ha…

---

## [\[ANN\] Mack 0.6.1.1 Released](https://www.ruby-forum.com/t/ann-mack-0-6-1-1-released/145035)

<div class="topic-metadata">

**Author:** [@markbates](https://www.ruby-forum.com/u/markbates)\
**Replies:** 0\
**Last updated:** [August 5, 2008, 2:48pm UTC](https://www.ruby-forum.com/t/ann-mack-0-6-1-1-released/145035 "2008-08-05T14:48:41Z")

</div>

Mack, the lightweight, modular, distributed web framework, has been updated to version 0.6.1.1. The release sports 38 new features and bug fixes. Included amongst the features are notifiers (email), RJS (jQuery and Pr…

---

## [Need clarification about WIN32OLE.new](https://www.ruby-forum.com/t/need-clarification-about-win32ole-new/142076)

<div class="topic-metadata">

**Author:** [@jazzezravi](https://www.ruby-forum.com/u/jazzezravi)\
**Replies:** 2\
**Last updated:** [August 5, 2008, 1:29pm UTC](https://www.ruby-forum.com/t/need-clarification-about-win32ole-new/142076 "2008-08-05T13:29:58Z")

</div>

Hi All, is it possible or not ? Program: require “watir” ie = WATIR::IE.new ie.visible=false ie.goto(“http://blahblah.com”) When i run this program initially ie = WATIR::IE.new this line creating IE object. So i …

---

## [Q: Packaging JRuby](https://www.ruby-forum.com/t/q-packaging-jruby/144931)

<div class="topic-metadata">

**Author:** [@GSRalph\_KuntzS\_MD](https://www.ruby-forum.com/u/GSRalph_KuntzS_MD)\
**Replies:** 2\
**Last updated:** [August 5, 2008, 1:10pm UTC](https://www.ruby-forum.com/t/q-packaging-jruby/144931 "2008-08-05T13:10:38Z")

</div>

What are the options for packaging a JRuby script? I tried the tutorial from netbeans for making a JRuby Swing application, but it fails to run; it gets the following error: -e:1:in \`require’: no such file to load – …

---

## [Mailer](https://www.ruby-forum.com/t/mailer/145026)

<div class="topic-metadata">

**Author:** [@sumitha](https://www.ruby-forum.com/u/sumitha)\
**Replies:** 1\
**Last updated:** [August 5, 2008, 1:05pm UTC](https://www.ruby-forum.com/t/mailer/145026 "2008-08-05T13:05:05Z")

</div>

How to do the multipart action mailer

---

## [Testunit: run single test](https://www.ruby-forum.com/t/testunit-run-single-test/145018)

<div class="topic-metadata">

**Author:** [@ruud\_grosmann](https://www.ruby-forum.com/u/ruud_grosmann)\
**Replies:** 3\
**Last updated:** [August 5, 2008, 11:57am UTC](https://www.ruby-forum.com/t/testunit-run-single-test/145018 "2008-08-05T11:57:28Z")

</div>

hello, I’d like to be able to run one or two testroutines from a Test::Unit::TestCase-object. Is that possible? For example: in test.rb: class TC\_fe \< Test::Unit::TestCase def test\_plus assert\_equal( 1+5, 6) end…

---

## [\[Ruby 1.9 - Bug #356\] (Open) test\_flush(TestIONonblock): Errno::EBADF: Bad file descriptor](https://www.ruby-forum.com/t/ruby-1-9-bug-356-open-test-flush-testiononblock-errno-bad-file-descriptor/143874)

<div class="topic-metadata">

**Author:** [@Kazuhiro\_NISHIYAMA](https://www.ruby-forum.com/u/Kazuhiro_NISHIYAMA)\
**Replies:** 1\
**Last updated:** [August 5, 2008, 11:07am UTC](https://www.ruby-forum.com/t/ruby-1-9-bug-356-open-test-flush-testiononblock-errno-bad-file-descriptor/143874 "2008-08-05T11:07:42Z")

</div>

e$B%A%1%C%He(B #356 e$B$,Js9p$5$l$^$7$?!#e(B (by Kazuhiro NISHIYAMA) Bug #356: test\_flush(TestIONonblock): Errno::EBADF: Bad file descriptor http://redmine.ruby-lang.org/issues/show/356 e$B5/I\<\<Te(B: Kazuhiro NISHIYA…

---

## [Problem with rubygems , " no such file to load "](https://www.ruby-forum.com/t/problem-with-rubygems-no-such-file-to-load/144949)

<div class="topic-metadata">

**Author:** [@friofool](https://www.ruby-forum.com/u/friofool)\
**Replies:** 6\
**Last updated:** [August 5, 2008, 9:58am UTC](https://www.ruby-forum.com/t/problem-with-rubygems-no-such-file-to-load/144949 "2008-08-05T09:58:51Z")

</div>

Hi ! I’m doing a new installation of rails , but i get a big problem with rubygem : \[root@compute test\_projet\_rails\]# ruby script/console Rails requires RubyGems \>= 0.9.4. Please install RubyGems and try again: http…

---

## [\[Bug:1.9\] NameError: uninitialized constant Net::IMAP::SSL in test/net/imap/test\_imap.rb](https://www.ruby-forum.com/t/bug-1-9-nameerror-uninitialized-constant-net-ssl-in-test-net-imap-test-imap-rb/144898)

<div class="topic-metadata">

**Author:** [@Kazuhiro\_NISHIYAMA](https://www.ruby-forum.com/u/Kazuhiro_NISHIYAMA)\
**Replies:** 1\
**Last updated:** [August 5, 2008, 9:27am UTC](https://www.ruby-forum.com/t/bug-1-9-nameerror-uninitialized-constant-net-ssl-in-test-net-imap-test-imap-rb/144898 "2008-08-05T09:27:36Z")

</div>

e$B@\>;3OB9-$G$9!#e(B openssle$B$,F~$C$F$$$J$$4D6-$@$He(Btest/net/imap/test\_imap.rbe$B$Ge(B NameErrore$B$,H/@8$7$^$9!#e(B Error: test\_unexpected\_eof(IMAPTest): NameError: uninitialized constant Net::IMAP::SSL …/net…

---

## [Sending email to multiple recipients](https://www.ruby-forum.com/t/sending-email-to-multiple-recipients/145012)

<div class="topic-metadata">

**Author:** [@slogeshwaran](https://www.ruby-forum.com/u/slogeshwaran)\
**Replies:** 1\
**Last updated:** [August 5, 2008, 8:54am UTC](https://www.ruby-forum.com/t/sending-email-to-multiple-recipients/145012 "2008-08-05T08:54:50Z")

</div>

Hello, I have to send mail to multiple recipients. I have one text file, it contains emailaddress. In ruby program i should parse the emailaddresses and send to multiple recipients. for example. Just parsing it into a…

---

## [Yet Another Seattle.rb Meeting](https://www.ruby-forum.com/t/yet-another-seattle-rb-meeting/145017)

<div class="topic-metadata">

**Author:** [@aguynamedryan](https://www.ruby-forum.com/u/aguynamedryan)\
**Replies:** 0\
**Last updated:** [August 5, 2008, 8:13am UTC](https://www.ruby-forum.com/t/yet-another-seattle-rb-meeting/145017 "2008-08-05T08:13:17Z")

</div>

Pinky: Gee, Brain, what are we going to do tonight? Brain: The same thing we do every night, Pinky - try to take over the world! Date: Every. Single. Damn. Tuesday. Time: 7:00pm Place: Shinka Tea, 1703 E Olive Way…

---

## [Macaddr-1.0.0](https://www.ruby-forum.com/t/macaddr-1-0-0/145008)

<div class="topic-metadata">

**Author:** [@ahoward](https://www.ruby-forum.com/u/ahoward)\
**Replies:** 6\
**Last updated:** [August 5, 2008, 6:24am UTC](https://www.ruby-forum.com/t/macaddr-1-0-0/145008 "2008-08-05T06:24:33Z")

</div>

NAME macaddr DESCRIPTION cross platform mac address determination for ruby URI http://codeforpeople.com/lib/ruby http://rubyforg.org/projects/codeforpeople INSTALL gem install macaddr HISTORY 1.0.0: - rdoc ad…

---

## [Tomcat 5.5 & Warble](https://www.ruby-forum.com/t/tomcat-5-5-warble/144822)

<div class="topic-metadata">

**Author:** [@mikael1991](https://www.ruby-forum.com/u/mikael1991)\
**Replies:** 3\
**Last updated:** [August 5, 2008, 6:07am UTC](https://www.ruby-forum.com/t/tomcat-5-5-warble/144822 "2008-08-05T06:07:36Z")

</div>

Hi I’m just stated to try to get a Tomcat to run a Jruby rails app, but i run into a strange problem that it seems some other people have had as well. After i put the WAR file in webapp folder and try to run access it …

---

## [Matrix class: How to set a single element?](https://www.ruby-forum.com/t/matrix-class-how-to-set-a-single-element/145002)

<div class="topic-metadata">

**Author:** [@marcioab](https://www.ruby-forum.com/u/marcioab)\
**Replies:** 10\
**Last updated:** [August 5, 2008, 5:47am UTC](https://www.ruby-forum.com/t/matrix-class-how-to-set-a-single-element/145002 "2008-08-05T05:47:09Z")

</div>

simple code: require ‘matrix’ m1 = Matrix\[\[1,2\],\[3,4\]\] Now I need to change element (0,0) from 1 to 5. I expected something like the command below should work: m1\[0\]\[0\] = 5 … but the error message is ‘\[\]’: wrong nu…

---

## [Strange behavior in Integer](https://www.ruby-forum.com/t/strange-behavior-in-integer/144988)

<div class="topic-metadata">

**Author:** [@Joe\_Davison](https://www.ruby-forum.com/u/Joe_Davison)\
**Replies:** 4\
**Last updated:** [August 5, 2008, 5:24am UTC](https://www.ruby-forum.com/t/strange-behavior-in-integer/144988 "2008-08-05T05:24:55Z")

</div>

new user on MacOsX. Ruby version: ruby 1.8.2 (2004-12-25) \[universal-darwin8.0\] intel MacBook Pro Working thru the examples in Programming Ruby, I got what I didn’t expect: Integer(33.80 \* 100) ==\> 3379 however, I…

---

## [RubyConf 2008 call for talk proposals](https://www.ruby-forum.com/t/rubyconf-2008-call-for-talk-proposals/144893)

<div class="topic-metadata">

**Author:** [@rkoskela](https://www.ruby-forum.com/u/rkoskela)\
**Replies:** 10\
**Last updated:** [August 5, 2008, 4:37am UTC](https://www.ruby-forum.com/t/rubyconf-2008-call-for-talk-proposals/144893 "2008-08-05T04:37:34Z")

</div>

Ruby Central is pleased to announce that we are accepting talk proposals for the 2008 RubyConf to be held in Orlando Florida November 6-8 (Thursday - Saturday). This proposal process will stay open until August 21. P…

---

## [Is it ellegant to use a global variable to store a Logger object?](https://www.ruby-forum.com/t/is-it-ellegant-to-use-a-global-variable-to-store-a-logger-object/141157)

<div class="topic-metadata">

**Author:** [@ISSSSaki\_Baz\_C](https://www.ruby-forum.com/u/ISSSSaki_Baz_C)\
**Replies:** 48\
**Last updated:** [August 5, 2008, 2:08am UTC](https://www.ruby-forum.com/t/is-it-ellegant-to-use-a-global-variable-to-store-a-logger-object/141157 "2008-08-05T02:08:58Z")

</div>

Hi, I use Logger class in a programm and since I need to log in lot of different places (into classes, into methods…) I use a global variable in this way: $log = Logger.new $log.debug … so I can use $log anywhere i…

---

## [Prawn-gallery now on Github](https://www.ruby-forum.com/t/prawn-gallery-now-on-github/144994)

<div class="topic-metadata">

**Author:** [@naething](https://www.ruby-forum.com/u/naething)\
**Replies:** 0\
**Last updated:** [August 5, 2008, 12:55am UTC](https://www.ruby-forum.com/t/prawn-gallery-now-on-github/144994 "2008-08-05T00:55:54Z")

</div>

Hey folks, I’m happy to say that we’re already getting a ton of positive feedback from Prawn’s\[0\] first release. People are already contributing bug reports, new features, and other cool stuff. To help make this eve…

---

## [Improper JRuby 1.1.3 at Maven2 central repository](https://www.ruby-forum.com/t/improper-jruby-1-1-3-at-maven2-central-repository/144891)

<div class="topic-metadata">

**Author:** [@Hendy\_I](https://www.ruby-forum.com/u/Hendy_I)\
**Replies:** 1\
**Last updated:** [August 4, 2008, 11:59pm UTC](https://www.ruby-forum.com/t/improper-jruby-1-1-3-at-maven2-central-repository/144891 "2008-08-04T23:59:09Z")

</div>

JRuby 1.1.3 at http://repo1.maven.org/maven2/org/jruby/jruby/1.1.3/ doesn’t seem to contain all needed files for a valid artifact, only the .jar file (i.e. no POM, hash, etc.) Please deploy JRuby 1.1.3 for Maven2, th…

---

## [Hpricot usage](https://www.ruby-forum.com/t/hpricot-usage/144979)

<div class="topic-metadata">

**Author:** [@archi\_urs2003](https://www.ruby-forum.com/u/archi_urs2003)\
**Replies:** 1\
**Last updated:** [August 4, 2008, 11:12pm UTC](https://www.ruby-forum.com/t/hpricot-usage/144979 "2008-08-04T23:12:53Z")

</div>

can anybody tell me how to write to a xml document using hpricot? Is it possible to do that? Here is my xml in which i want to change the ordernumber everytime i run my script.

---

## [August Phoenix Ruby User Group Meeting](https://www.ruby-forum.com/t/august-phoenix-ruby-user-group-meeting/144970)

<div class="topic-metadata">

**Author:** [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Replies:** 0\
**Last updated:** [August 4, 2008, 8:43pm UTC](https://www.ruby-forum.com/t/august-phoenix-ruby-user-group-meeting/144970 "2008-08-04T20:43:47Z")

</div>

August Phoenix Ruby U. Group Meeting Date: Monday, August 11, 2008 Time: 6:30 pm - at Saguaro branch Phoenix Public Library Place: Saguaro branch Phoenix Public Library 2808 N. 46th Street Phoenix, AZ 85008 IMPOR…

---

## [Determining MAC address](https://www.ruby-forum.com/t/determining-mac-address/144732)

<div class="topic-metadata">

**Author:** [@Glen\_H](https://www.ruby-forum.com/u/Glen_H)\
**Replies:** 11\
**Last updated:** [August 4, 2008, 8:00pm UTC](https://www.ruby-forum.com/t/determining-mac-address/144732 "2008-08-04T20:00:26Z")

</div>

What would be the best (clean, cross-platform) way of determining the MAC address of a host when you have the hostname and IP address? – “Hey brother Christian with your high and mighty errand, Your actions speak s…

[Previous page](https://www.ruby-forum.com/c/ruby/7.md?page=1055)

[Next page](https://www.ruby-forum.com/c/ruby/7.md?page=1057)
