# Ruby

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

[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:** 775

---

## [No Method Error](https://www.ruby-forum.com/t/no-method-error/172844)

<div class="topic-metadata">

**Author:** [@intellections](https://www.ruby-forum.com/u/intellections)\
**Replies:** 2\
**Last updated:** [July 29, 2009, 12:07pm UTC](https://www.ruby-forum.com/t/no-method-error/172844 "2009-07-29T12:07:09Z")

</div>

I’m very new to ruby so for all I know this could be ridiculously easy. Thank you in advance for any and all suggestions! Here is the error: /usr/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active\_record/base.rb:296…

---

## [Ignore F1-F12 keys when user enters text input on console](https://www.ruby-forum.com/t/ignore-f1-f12-keys-when-user-enters-text-input-on-console/172863)

<div class="topic-metadata">

**Author:** [@dr\_dunno](https://www.ruby-forum.com/u/dr_dunno)\
**Replies:** 3\
**Last updated:** [July 29, 2009, 8:21am UTC](https://www.ruby-forum.com/t/ignore-f1-f12-keys-when-user-enters-text-input-on-console/172863 "2009-07-29T08:21:36Z")

</div>

I am writing a Ruby script to accept a user’s input which will be used as a password later on. The user input it taken using STDIN.getc. Since it is a password input, when the user enters the characters on the keyboar…

---

## [\[Bug #1826\](Closed) json $B$GL5BL$J(B private $B;XDj$,$"$k(B](https://www.ruby-forum.com/t/bug-1826-closed-json-b-gl5bl-j-b-private-b-xdj-k-b/172870)

<div class="topic-metadata">

**Author:** [@Yui\_NARUSE](https://www.ruby-forum.com/u/Yui_NARUSE)\
**Replies:** 0\
**Last updated:** [July 29, 2009, 6:51am UTC](https://www.ruby-forum.com/t/bug-1826-closed-json-b-gl5bl-j-b-private-b-xdj-k-b/172870 "2009-07-29T06:51:39Z")

</div>

e$B%A%1%C%He(B #1826 e$B$,99?7$5$l$^$7$?!#e(B (by Yui NARUSE) e$B%9%F!\<%?%9e(B Assignede$B$+$ie(BClosede$B$KJQ99e(B commit edf05962c018e9decf6c49c141d0133c716ac770 Author: matz matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080…

---

## [Keyword\_arguments v0.0.1](https://www.ruby-forum.com/t/keyword-arguments-v0-0-1/172672)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 2\
**Last updated:** [July 29, 2009, 2:50am UTC](https://www.ruby-forum.com/t/keyword-arguments-v0-0-1/172672 "2009-07-29T02:50:34Z")

</div>

This is the first release (and actually my first announce on this list as well) of keyword\_arguments\[1\]\[2\] What it does is provide a handful of convenient methods for working with hashes as named arguments. Those meth…

---

## [How do I work around a 'can't activate gem xxx version 1.2.3, because gem xxx version 2.3.4 is alrea](https://www.ruby-forum.com/t/how-do-i-work-around-a-cant-activate-gem-xxx-version-1-2-3-because-gem-xxx-version-2-3-4-is-alrea/172827)

<div class="topic-metadata">

**Author:** [@lycanthrope](https://www.ruby-forum.com/u/lycanthrope)\
**Replies:** 4\
**Last updated:** [July 29, 2009, 2:41am UTC](https://www.ruby-forum.com/t/how-do-i-work-around-a-cant-activate-gem-xxx-version-1-2-3-because-gem-xxx-version-2-3-4-is-alrea/172827 "2009-07-29T02:41:48Z")

</div>

How can i work around this error? Is it possible to force ruport to use 1.5.0? can’t activate fastercsv (= 1.2.3, runtime) for \[“ruport-1.6.1”\], already activated fastercsv-1.5.0 for \[\] (Gem::LoadError) Thanks, rei…

---

## [Unexpected output in a metaprogramming application](https://www.ruby-forum.com/t/unexpected-output-in-a-metaprogramming-application/172792)

<div class="topic-metadata">

**Author:** [@RichardOnRails](https://www.ruby-forum.com/u/RichardOnRails)\
**Replies:** 6\
**Last updated:** [July 28, 2009, 11:31pm UTC](https://www.ruby-forum.com/t/unexpected-output-in-a-metaprogramming-application/172792 "2009-07-28T23:31:00Z")

</div>

Hi, I putting together examples I might use in teaching an elementary Ruby seminar. for the moment, I like to code examples inside a method that displays both the code and the result of the code’s execution. I paste…

---

## [RDoc: Really wrong output (Module#method instead of Module::Class#method)](https://www.ruby-forum.com/t/rdoc-really-wrong-output-module-method-instead-of-module-class-method/172838)

<div class="topic-metadata">

**Author:** [@ISSSSaki\_Baz\_C](https://www.ruby-forum.com/u/ISSSSaki_Baz_C)\
**Replies:** 3\
**Last updated:** [July 28, 2009, 11:06pm UTC](https://www.ruby-forum.com/t/rdoc-really-wrong-output-module-method-instead-of-module-class-method/172838 "2009-07-28T23:06:25Z")

</div>

Hi, I’m getting really crazy with RDoc (tested in 1.8 and 1.9). Basically I’ve a module containing a class containing a method. And when I generate the rdoc, the HTML output show the method as a module method instead …

---

## [RDoc: How to link to a method description from other rdoc page?](https://www.ruby-forum.com/t/rdoc-how-to-link-to-a-method-description-from-other-rdoc-page/172834)

<div class="topic-metadata">

**Author:** [@ISSSSaki\_Baz\_C](https://www.ruby-forum.com/u/ISSSSaki_Baz_C)\
**Replies:** 3\
**Last updated:** [July 28, 2009, 11:04pm UTC](https://www.ruby-forum.com/t/rdoc-how-to-link-to-a-method-description-from-other-rdoc-page/172834 "2009-07-28T23:04:39Z")

</div>

Hi, RDoc documentation says: “Names of classes, source files, and any method names containing an underscore or preceded by a hash character are automatically hyperlinked from comment text to their description.” Howev…

---

## [How to force RDoc not to parse a file?](https://www.ruby-forum.com/t/how-to-force-rdoc-not-to-parse-a-file/172831)

<div class="topic-metadata">

**Author:** [@ISSSSaki\_Baz\_C](https://www.ruby-forum.com/u/ISSSSaki_Baz_C)\
**Replies:** 6\
**Last updated:** [July 28, 2009, 10:46pm UTC](https://www.ruby-forum.com/t/how-to-force-rdoc-not-to-parse-a-file/172831 "2009-07-28T22:46:31Z")

</div>

Hi, I want to include a text file (LICENSE.txt) in the RDoc documentation. However, I don’t want RDoc to parse it, instead, I want it to be displayed as text format. Is it possible with some commandline option of rdoc…

---

## [What does the step() method do](https://www.ruby-forum.com/t/what-does-the-step-method-do/172848)

<div class="topic-metadata">

**Author:** [@prateekagarwal](https://www.ruby-forum.com/u/prateekagarwal)\
**Replies:** 1\
**Last updated:** [July 28, 2009, 9:45pm UTC](https://www.ruby-forum.com/t/what-does-the-step-method-do/172848 "2009-07-28T21:45:22Z")

</div>

I have to write a program to implement the Sieve of Erastosthenes algorithm for finding the prime nos. I got the following code on scriptol.org top = 100 sieve = \[\] for i in 2 … top sieve\[i\] = i end for i in 2 … …

---

## [I need some help with Ruby query building and query time](https://www.ruby-forum.com/t/i-need-some-help-with-ruby-query-building-and-query-time/172821)

<div class="topic-metadata">

**Author:** [@elricstorm](https://www.ruby-forum.com/u/elricstorm)\
**Replies:** 3\
**Last updated:** [July 28, 2009, 8:52pm UTC](https://www.ruby-forum.com/t/i-need-some-help-with-ruby-query-building-and-query-time/172821 "2009-07-28T20:52:20Z")

</div>

Here is a pastie of my current code. In the formatting on pastie, it’s not listed entirely right. http://pastie.org/561671 The Select, Joins, Conditions, and Order statements are on separate lines. The issue I’m ha…

---

## [Dumb question: in documentation, why Object#method, and not](https://www.ruby-forum.com/t/dumb-question-in-documentation-why-object-method-and-not/49159)

<div class="topic-metadata">

**Author:** [@elf](https://www.ruby-forum.com/u/elf)\
**Replies:** 16\
**Last updated:** [July 28, 2009, 8:17pm UTC](https://www.ruby-forum.com/t/dumb-question-in-documentation-why-object-method-and-not/49159 "2009-07-28T20:17:54Z")

</div>

I keep seeing this syntax in documentation: Object#method, but in actual use sending a message to an object is usually object = Object.new object.method Is this just to emphasize that method() operates on an i…

---

## [Unsubscribe](https://www.ruby-forum.com/t/unsubscribe/172836)

<div class="topic-metadata">

**Author:** [@Oliver\_Manrique\_Bar](https://www.ruby-forum.com/u/Oliver_Manrique_Bar)\
**Replies:** 0\
**Last updated:** [July 28, 2009, 7:27pm UTC](https://www.ruby-forum.com/t/unsubscribe/172836 "2009-07-28T19:27:29Z")

</div>

unsubscribe

---

## [Regexp Help](https://www.ruby-forum.com/t/regexp-help/172796)

<div class="topic-metadata">

**Author:** [@jillyh0](https://www.ruby-forum.com/u/jillyh0)\
**Replies:** 4\
**Last updated:** [July 28, 2009, 7:21pm UTC](https://www.ruby-forum.com/t/regexp-help/172796 "2009-07-28T19:21:02Z")

</div>

Hi, I am looking for a way to do the following: I have some html in strings, mostly links (i.e. ). I need to delete these lines. I’ve been trying to do this, but it’s not working out: question.gsub! ("\<a href="/(\[.…

---

## [Bug in IPAddr eql? (stndard library)](https://www.ruby-forum.com/t/bug-in-ipaddr-eql-stndard-library/172772)

<div class="topic-metadata">

**Author:** [@nicken](https://www.ruby-forum.com/u/nicken)\
**Replies:** 2\
**Last updated:** [July 28, 2009, 3:36pm UTC](https://www.ruby-forum.com/t/bug-in-ipaddr-eql-stndard-library/172772 "2009-07-28T15:36:01Z")

</div>

The .eql? method is supposed to return true if the objects are == and of the same class, correct? This is not the case with IPAddr objects. irb(main):001:0\> require ‘ipaddr’ =\> true irb(main):002:0\> a = IPAddr.new(‘1…

---

## [Execute store procedure with ruby-plsql](https://www.ruby-forum.com/t/execute-store-procedure-with-ruby-plsql/172818)

<div class="topic-metadata">

**Author:** [@on9west](https://www.ruby-forum.com/u/on9west)\
**Replies:** 0\
**Last updated:** [July 28, 2009, 3:28pm UTC](https://www.ruby-forum.com/t/execute-store-procedure-with-ruby-plsql/172818 "2009-07-28T15:28:16Z")

</div>

Dear all I got error in execute the store procedure using ruby-plsql. =\> “Error in cuid\_detail table insertion!ORA-01461: can bind a LONG value only for insert into a LONG column” Below is my code, please help. Thank…

---

## [Win32ole - windowsinstaller.installer method](https://www.ruby-forum.com/t/win32ole-windowsinstaller-installer-method/172644)

<div class="topic-metadata">

**Author:** [@mickesommar](https://www.ruby-forum.com/u/mickesommar)\
**Replies:** 5\
**Last updated:** [July 28, 2009, 12:54pm UTC](https://www.ruby-forum.com/t/win32ole-windowsinstaller-installer-method/172644 "2009-07-28T12:54:46Z")

</div>

Hi all I’m a beginner at ruby, so correct me if I’m doing something stupid. I have created a method that reads a property from a windowsinstaller table. (msi-package). I have a list with paths to msi-packages, its 23…

---

## [Query](https://www.ruby-forum.com/t/query/172753)

<div class="topic-metadata">

**Author:** [@hunt](https://www.ruby-forum.com/u/hunt)\
**Replies:** 5\
**Last updated:** [July 28, 2009, 12:42pm UTC](https://www.ruby-forum.com/t/query/172753 "2009-07-28T12:42:21Z")

</div>

hi friends, I hav a query to ask… class A def self.go return A.new end def method\_missing( method\_name) puts in methodmissing puts " #{method\_name} method is missing" end end a = A.go a.name # a.name will pri…

---

## [Omnifocus-github 1.0.0 Released](https://www.ruby-forum.com/t/omnifocus-github-1-0-0-released/172809)

<div class="topic-metadata">

**Author:** [@aguynamedryan](https://www.ruby-forum.com/u/aguynamedryan)\
**Replies:** 0\
**Last updated:** [July 28, 2009, 12:40pm UTC](https://www.ruby-forum.com/t/omnifocus-github-1-0-0-released/172809 "2009-07-28T12:40:01Z")

</div>

omnifocus-github version 1.0.0 has been released! http://rubyforge.org/projects/seattlerb Plugin for omnifocus gem to provide github BTS synchronization. Changes: 1.0.0 / 2009-07-28 1 major enhancement Birthday…

---

## [Omnifocus-rubyforge 1.1.0 Released](https://www.ruby-forum.com/t/omnifocus-rubyforge-1-1-0-released/172807)

<div class="topic-metadata">

**Author:** [@aguynamedryan](https://www.ruby-forum.com/u/aguynamedryan)\
**Replies:** 0\
**Last updated:** [July 28, 2009, 12:37pm UTC](https://www.ruby-forum.com/t/omnifocus-rubyforge-1-1-0-released/172807 "2009-07-28T12:37:40Z")

</div>

omnifocus-rubyforge version 1.1.0 has been released! http://rubyforge.org/projects/seattlerb Plugin for omnifocus gem to provide rubyforge BTS synchronization. Changes: 1.1.0 / 2009-07-28 1 minor enhancement: U…

---

## [Omnifocus 1.1.0 Released](https://www.ruby-forum.com/t/omnifocus-1-1-0-released/172808)

<div class="topic-metadata">

**Author:** [@aguynamedryan](https://www.ruby-forum.com/u/aguynamedryan)\
**Replies:** 0\
**Last updated:** [July 28, 2009, 12:36pm UTC](https://www.ruby-forum.com/t/omnifocus-1-1-0-released/172808 "2009-07-28T12:36:30Z")

</div>

omnifocus version 1.1.0 has been released! http://rubyforge.org/projects/seattlerb Synchronizes bug tracking systems to omnifocus. Changes: 1.1.0 / 2009-07-28 3 minor enhancements: Changed bts\_id to match /SYST…

---

## [Problem while adding cgi.img](https://www.ruby-forum.com/t/problem-while-adding-cgi-img/172795)

<div class="topic-metadata">

**Author:** [@asaf1234](https://www.ruby-forum.com/u/asaf1234)\
**Replies:** 2\
**Last updated:** [July 28, 2009, 12:08pm UTC](https://www.ruby-forum.com/t/problem-while-adding-cgi-img/172795 "2009-07-28T12:08:33Z")

</div>

Hi, I tried to insert an img file to my cgi script, but I had some problems. when i run the tmp.rb file that I create on the server, I can’t see this img. when I trying to run the generated html (using this script) on…

---

## [Fcntl not supported on this platform](https://www.ruby-forum.com/t/fcntl-not-supported-on-this-platform/167708)

<div class="topic-metadata">

**Author:** [@Barbara\_R](https://www.ruby-forum.com/u/Barbara_R)\
**Replies:** 3\
**Last updated:** [July 28, 2009, 10:44am UTC](https://www.ruby-forum.com/t/fcntl-not-supported-on-this-platform/167708 "2009-07-28T10:44:20Z")

</div>

Hello, I understand that this particular issue with fcntl might be fixed in trunk (and the next RC of 1.3). When/how might I get a hold of that? Since 1.3.ORC1 was just released May 1st, It may be a while before I se…

---

## [Ruby Readline Maintainer](https://www.ruby-forum.com/t/ruby-readline-maintainer/172775)

<div class="topic-metadata">

**Author:** [@roxah](https://www.ruby-forum.com/u/roxah)\
**Replies:** 6\
**Last updated:** [July 28, 2009, 10:40am UTC](https://www.ruby-forum.com/t/ruby-readline-maintainer/172775 "2009-07-28T10:40:36Z")

</div>

Hello all, Does anyone know who maintains the Ruby Readline extension? I’m using Readline in a Ruby application I have written to provide a console interface and I have a suggestion for the extension. It’s possible …

---

## [Help me with this program](https://www.ruby-forum.com/t/help-me-with-this-program/172768)

<div class="topic-metadata">

**Author:** [@prateekagarwal](https://www.ruby-forum.com/u/prateekagarwal)\
**Replies:** 3\
**Last updated:** [July 28, 2009, 9:21am UTC](https://www.ruby-forum.com/t/help-me-with-this-program/172768 "2009-07-28T09:21:05Z")

</div>

Woah, this is my 3rd post in like an hour. Must be really annoying for the guys who are answering. Well, in this program after inputting the value the program doesn’t respond or do anything. On pressing ‘ctrl+c’, it s…

---

## [Uninitialized constant ActionController::Session::JavaServletStore](https://www.ruby-forum.com/t/uninitialized-constant-actioncontroller-javaservletstore/159744)

<div class="topic-metadata">

**Author:** [@Ryan\_LSBell](https://www.ruby-forum.com/u/Ryan_LSBell)\
**Replies:** 3\
**Last updated:** [July 28, 2009, 5:09am UTC](https://www.ruby-forum.com/t/uninitialized-constant-actioncontroller-javaservletstore/159744 "2009-07-28T05:09:55Z")

</div>

I’ve just upgraded to edge rails. I’ve tried warbler 9.11 and 9.12, but I keep getting the same exception when I try to deploy my app. Any idea how I can fix this? org.jruby.rack.RackInitializationException: uninitial…

---

## [\[Bug #1826\] json $B$GL5BL$J(B private $B;XDj$,$"$k(B](https://www.ruby-forum.com/t/bug-1826-json-b-gl5bl-j-b-private-b-xdj-k-b/172793)

<div class="topic-metadata">

**Author:** [@okkezSS](https://www.ruby-forum.com/u/okkezSS)\
**Replies:** 0\
**Last updated:** [July 28, 2009, 5:05am UTC](https://www.ruby-forum.com/t/bug-1826-json-b-gl5bl-j-b-private-b-xdj-k-b/172793 "2009-07-28T05:05:15Z")

</div>

Bug #1826: json e$B$GL5BL$Je(B private e$B;XDj$,$"$ke(B http://redmine.ruby-lang.org/issues/show/1826 e$B5/I\<\<Te(B: okkez \_ e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal e$B%+%F%4%je(B: ext ruby -v: ruby 1.9.2dev (20…

---

## [Oc4j and rubygems](https://www.ruby-forum.com/t/oc4j-and-rubygems/172731)

<div class="topic-metadata">

**Author:** [@pazu](https://www.ruby-forum.com/u/pazu)\
**Replies:** 1\
**Last updated:** [July 28, 2009, 5:03am UTC](https://www.ruby-forum.com/t/oc4j-and-rubygems/172731 "2009-07-28T05:03:52Z")

</div>

I am really hoping someone may be able to help. My jruby war file works fine in glassfish on linux/win32 But under oc4j (or OAS/Oracle Application Server) on both platforms the jar file cannot load rubygems Rails req…

---

## [Garbage collection oddities](https://www.ruby-forum.com/t/garbage-collection-oddities/172548)

<div class="topic-metadata">

**Author:** [@dgm](https://www.ruby-forum.com/u/dgm)\
**Replies:** 4\
**Last updated:** [July 28, 2009, 3:16am UTC](https://www.ruby-forum.com/t/garbage-collection-oddities/172548 "2009-07-28T03:16:24Z")

</div>

Given this code: class WatchMeDie def self.finalizer proc do |id| puts “Finalized #{id}” end end def initialize ObjectSpace.define\_finalizer self, &WatchMeDie.finalizer end end a = WatchMeDie.new a = nil GC.…

---

## [Pseudo random](https://www.ruby-forum.com/t/pseudo-random/172696)

<div class="topic-metadata">

**Author:** [@Kless](https://www.ruby-forum.com/u/Kless)\
**Replies:** 4\
**Last updated:** [July 28, 2009, 2:37am UTC](https://www.ruby-forum.com/t/pseudo-random/172696 "2009-07-28T02:37:45Z")

</div>

Is safe to use Kernel#rand to get pseudo-random integers?

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

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