# Ruby

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

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

---

## [Odd puts behaviour with REXML](https://www.ruby-forum.com/t/odd-puts-behaviour-with-rexml/179625)

<div class="topic-metadata">

**Author:** [@davidstokar](https://www.ruby-forum.com/u/davidstokar)\
**Replies:** 7\
**Last updated:** [November 30, 2009, 8:21pm UTC](https://www.ruby-forum.com/t/odd-puts-behaviour-with-rexml/179625 "2009-11-30T20:21:17Z")

</div>

Hello, This is really weird, and I’m not sure if maybe there’s a formatting option that I can set on the puts method that will solve it. Hopefully someone has done something similar?? I have been using REXML to pars…

---

## [Invoke member and dynamic binding isn't the same?](https://www.ruby-forum.com/t/invoke-member-and-dynamic-binding-isnt-the-same/179459)

<div class="topic-metadata">

**Author:** [@barby](https://www.ruby-forum.com/u/barby)\
**Replies:** 4\
**Last updated:** [November 30, 2009, 8:21pm UTC](https://www.ruby-forum.com/t/invoke-member-and-dynamic-binding-isnt-the-same/179459 "2009-11-30T20:21:08Z")

</div>

Hi I have some ruby code, which through a process of instance\_eval and other meta programming tricks builds an object with a method assign defined on it. I have this code in C# var scope = Engine.CreateScope(); sc…

---

## [If statement modifier, with else, warning](https://www.ruby-forum.com/t/if-statement-modifier-with-else-warning/179624)

<div class="topic-metadata">

**Author:** [@vanik](https://www.ruby-forum.com/u/vanik)\
**Replies:** 2\
**Last updated:** [November 30, 2009, 7:50pm UTC](https://www.ruby-forum.com/t/if-statement-modifier-with-else-warning/179624 "2009-11-30T19:50:41Z")

</div>

The following statement works fine, even though it generates a warning. With regard to “if” and “unless” being used as statement modifiers, a manual states: “Obviously, this syntax does not allow any kind of else clau…

---

## [RubyGems nightmare due to 2 installs](https://www.ruby-forum.com/t/rubygems-nightmare-due-to-2-installs/179623)

<div class="topic-metadata">

**Author:** [@hirodusk](https://www.ruby-forum.com/u/hirodusk)\
**Replies:** 0\
**Last updated:** [November 30, 2009, 7:06pm UTC](https://www.ruby-forum.com/t/rubygems-nightmare-due-to-2-installs/179623 "2009-11-30T19:06:24Z")

</div>

I have a recurring problem with my RubyGems install atm… actually there are 2 of them, one in /usr/local/lib and the other in /usr/lib I think it ended up that way after upgrading ruby to 1.8.6. I have somehow managed…

---

## [JRuby on Windows](https://www.ruby-forum.com/t/jruby-on-windows/179614)

<div class="topic-metadata">

**Author:** [@tutiplain](https://www.ruby-forum.com/u/tutiplain)\
**Replies:** 3\
**Last updated:** [November 30, 2009, 4:52pm UTC](https://www.ruby-forum.com/t/jruby-on-windows/179614 "2009-11-30T16:52:06Z")

</div>

Hi, I just downloaded JRuby and am trying to run it, but whenever i type jruby on the command prompt (Windows XP), I get “The system cannot find the file specified” even when running it from jruby’s bin directory. I …

---

## [Erb and js question](https://www.ruby-forum.com/t/erb-and-js-question/178890)

<div class="topic-metadata">

**Author:** [@bloodniece](https://www.ruby-forum.com/u/bloodniece)\
**Replies:** 10\
**Last updated:** [November 30, 2009, 4:12pm UTC](https://www.ruby-forum.com/t/erb-and-js-question/178890 "2009-11-30T16:12:56Z")

</div>

Hi All, I did some looking around on google and found a fix for setting the default location of the cursor on a page. The fix is mentioned here: http://techsupt.winbatch.com/TS/T000002021F19.html So my goal is to us…

---

## [Rails gem problem](https://www.ruby-forum.com/t/rails-gem-problem/179612)

<div class="topic-metadata">

**Author:** [@tutiplain](https://www.ruby-forum.com/u/tutiplain)\
**Replies:** 2\
**Last updated:** [November 30, 2009, 3:34pm UTC](https://www.ruby-forum.com/t/rails-gem-problem/179612 "2009-11-30T15:34:56Z")

</div>

Hi all, I have begun playing with Ruby on Rails. I downloaded the gem from rubyforge and installed correctly. However, I was forced to do a clean install of ruby and had to reinstall my gems, including the Rails gem…

---

## [Connecting to Oracle using OCI8 and DBI](https://www.ruby-forum.com/t/connecting-to-oracle-using-oci8-and-dbi/165385)

<div class="topic-metadata">

**Author:** [@bodikp](https://www.ruby-forum.com/u/bodikp)\
**Replies:** 11\
**Last updated:** [November 30, 2009, 3:26pm UTC](https://www.ruby-forum.com/t/connecting-to-oracle-using-oci8-and-dbi/165385 "2009-11-30T15:26:58Z")

</div>

Hi, I need to access an Oracla database with Ruby. I’ve loaded OCI8 and DBI. When I run a simple script to just check on the existence of an image in the database, I get a DBI interface error, and, this: Exception: C…

---

## [How i can take sites on the server same "reverse"](https://www.ruby-forum.com/t/how-i-can-take-sites-on-the-server-same-reverse/179607)

<div class="topic-metadata">

**Author:** [@sql\_injection](https://www.ruby-forum.com/u/sql_injection)\
**Replies:** 0\
**Last updated:** [November 30, 2009, 11:20am UTC](https://www.ruby-forum.com/t/how-i-can-take-sites-on-the-server-same-reverse/179607 "2009-11-30T11:20:33Z")

</div>

hi evrybody i wanna write program like same reverse lookup and it to can take sites on th server like this site : http://www.yougetsignal.com/tools/web-sites-on-web-server/ now what should i do ? do you have source…

---

## [DRB class in array](https://www.ruby-forum.com/t/drb-class-in-array/179498)

<div class="topic-metadata">

**Author:** [@mastermarv](https://www.ruby-forum.com/u/mastermarv)\
**Replies:** 7\
**Last updated:** [November 30, 2009, 9:26am UTC](https://www.ruby-forum.com/t/drb-class-in-array/179498 "2009-11-30T09:26:43Z")

</div>

hi, i would like to store an array of this very simple class on a drb server class IEB\_wrapper1 attr\_accessor :status def initialize @status=“ready” end end the object on the drb server is an array: dump=\[\] DRb…

---

## [Ruby byte access to disk sectors like dd does](https://www.ruby-forum.com/t/ruby-byte-access-to-disk-sectors-like-dd-does/179520)

<div class="topic-metadata">

**Author:** [@vanik](https://www.ruby-forum.com/u/vanik)\
**Replies:** 15\
**Last updated:** [November 30, 2009, 9:04am UTC](https://www.ruby-forum.com/t/ruby-byte-access-to-disk-sectors-like-dd-does/179520 "2009-11-30T09:04:28Z")

</div>

I have been unable to find any reference to Ruby methods that provide raw disk access the way dd does. I frequently use the Linux utility program, dd, and would like to be able to do the same type of byte-level and se…

---

## [What's wrong in install dbi-0.4.3.gem?](https://www.ruby-forum.com/t/whats-wrong-in-install-dbi-0-4-3-gem/179598)

<div class="topic-metadata">

**Author:** [@wangxin\_46853](https://www.ruby-forum.com/u/wangxin_46853)\
**Replies:** 1\
**Last updated:** [November 30, 2009, 5:45am UTC](https://www.ruby-forum.com/t/whats-wrong-in-install-dbi-0-4-3-gem/179598 "2009-11-30T05:45:32Z")

</div>

Dear all I try to install gem dbi-0.4.3.gem in Windows. But I get errors as follows. Can anyone tell me what is the matter and how to solve it? Thank you so much. D:\\softwares\\Ruby\>gem install dbi-0.4.3.gem ERROR:…

---

## [Code Review: Time7](https://www.ruby-forum.com/t/code-review-time7/179600)

<div class="topic-metadata">

**Author:** [@grujildo](https://www.ruby-forum.com/u/grujildo)\
**Replies:** 0\
**Last updated:** [November 30, 2009, 5:37am UTC](https://www.ruby-forum.com/t/code-review-time7/179600 "2009-11-30T05:37:55Z")

</div>

tfpt review “/shelveset:Time7;REDMOND\\tomat” Comment : Adds NoUnderlyingType to ModuleRestrictions. If set, the members of the underlying CLR type are not accessible from Ruby (not even via clr\_new, etc.) A Ruby li…

---

## [Rainbows! 0.7.0 - Fibers and NeverBlock](https://www.ruby-forum.com/t/rainbows-0-7-0-fibers-and-neverblock/179599)

<div class="topic-metadata">

**Author:** [@ericw](https://www.ruby-forum.com/u/ericw)\
**Replies:** 0\
**Last updated:** [November 30, 2009, 5:34am UTC](https://www.ruby-forum.com/t/rainbows-0-7-0-fibers-and-neverblock/179599 "2009-11-30T05:34:59Z")

</div>

Rainbows! is an HTTP server for sleepy Rack applications. It is based on Unicorn, but designed to handle applications that expect long request/response times and/or slow clients. For Rack applications not heavily b…

---

## [NoMethodError at /delete/1 private method \`delete'](https://www.ruby-forum.com/t/nomethoderror-at-delete-1-private-method-delete/179596)

<div class="topic-metadata">

**Author:** [@jhosteny](https://www.ruby-forum.com/u/jhosteny)\
**Replies:** 1\
**Last updated:** [November 30, 2009, 5:03am UTC](https://www.ruby-forum.com/t/nomethoderror-at-delete-1-private-method-delete/179596 "2009-11-30T05:03:58Z")

</div>

Hello, I’m trying to work through the ‘Meet Sinatra’ PeepCode screencast and I’m stuck trying to delete an entry. I’m receiving this error while attempting to delete a file and database entry: NoMethodError at /dele…

---

## [Generated View](https://www.ruby-forum.com/t/generated-view/179595)

<div class="topic-metadata">

**Author:** [@dwhitekiss](https://www.ruby-forum.com/u/dwhitekiss)\
**Replies:** 1\
**Last updated:** [November 30, 2009, 3:45am UTC](https://www.ruby-forum.com/t/generated-view/179595 "2009-11-30T03:45:31Z")

</div>

Hi What is the problem when the generated view does’t show in the browser? I tried to change the file extention of the generated script from index.html.erb to index.html but still it won’t work. Does anybody have an…

---

## [\[Bug #2407\] numeric literal without digits](https://www.ruby-forum.com/t/bug-2407-numeric-literal-without-digits/179537)

<div class="topic-metadata">

**Author:** [@Shyouhei\_U](https://www.ruby-forum.com/u/Shyouhei_U)\
**Replies:** 4\
**Last updated:** [November 30, 2009, 3:07am UTC](https://www.ruby-forum.com/t/bug-2407-numeric-literal-without-digits/179537 "2009-11-30T03:07:28Z")

</div>

Bug #2407: numeric literal without digits http://redmine.ruby-lang.org/issues/show/2407 e$B5/I\<\<Te(B: Shyouhei U. e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Low e$BC4Ev\<Te(B: Yukihiro M., e$B%+%F%4%je(B: core ruby -v: ru…

---

## [Ruby Error Question](https://www.ruby-forum.com/t/ruby-error-question/179593)

<div class="topic-metadata">

**Author:** [@burrowsm](https://www.ruby-forum.com/u/burrowsm)\
**Replies:** 1\
**Last updated:** [November 30, 2009, 2:37am UTC](https://www.ruby-forum.com/t/ruby-error-question/179593 "2009-11-30T02:37:05Z")

</div>

I am new to Ruby. I have been using in on Mac OSX and every time I run a ruby application I get the same long error. Here is the error when I run “rake --version”. Does anyone know what may be causing this? Matt B …

---

## [2d array](https://www.ruby-forum.com/t/2d-array/179594)

<div class="topic-metadata">

**Author:** [@Orion\_E](https://www.ruby-forum.com/u/Orion_E)\
**Replies:** 3\
**Last updated:** [November 30, 2009, 2:23am UTC](https://www.ruby-forum.com/t/2d-array/179594 "2009-11-30T02:23:00Z")

</div>

I have some C# code which is expecting a 2d array. public static class Foo { public static int Bar(object\[,\] inArray) { … } } Is there any way that I can call this from IronRuby? I can’t figure out how to create …

---

## [Semantics of @x v. $x](https://www.ruby-forum.com/t/semantics-of-x-v-x/179584)

<div class="topic-metadata">

**Author:** [@ralphshnelvar](https://www.ruby-forum.com/u/ralphshnelvar)\
**Replies:** 3\
**Last updated:** [November 29, 2009, 10:16pm UTC](https://www.ruby-forum.com/t/semantics-of-x-v-x/179584 "2009-11-29T22:16:01Z")

</div>

Newbie here: Consider irb(main):001:0\> @xyzzy = 5 =\> 5 irb(main):002:0\> defined? @xyzzy =\> “instance-variable” irb(main):003:0\> $xyzzy = 5 =\> 5 irb(main):004:0\> defined? $xyzzy What, semantically, is the differe…

---

## [Getting the runtime type](https://www.ruby-forum.com/t/getting-the-runtime-type/179579)

<div class="topic-metadata">

**Author:** [@barby](https://www.ruby-forum.com/u/barby)\
**Replies:** 4\
**Last updated:** [November 29, 2009, 9:25pm UTC](https://www.ruby-forum.com/t/getting-the-runtime-type/179579 "2009-11-29T21:25:06Z")

</div>

Hi I’d like to get the runtime type of a ruby class The IronPython guys can do something like this (python substituted for ruby) require ‘clr’ class Person \< Struct.new(:id, :name, :age) end they can then do clr.C…

---

## [Just found a round problem](https://www.ruby-forum.com/t/just-found-a-round-problem/179573)

<div class="topic-metadata">

**Author:** [@rubynut](https://www.ruby-forum.com/u/rubynut)\
**Replies:** 5\
**Last updated:** [November 29, 2009, 7:24pm UTC](https://www.ruby-forum.com/t/just-found-a-round-problem/179573 "2009-11-29T19:24:06Z")

</div>

irb(main):026:0\> 10.499999999999999.round =\> 10 irb(main):027:0\> 10.4999999999999999.round =\> 11 Does this happen due to the float problem in any languages including ruby? Thanks.

---

## [Which server component?](https://www.ruby-forum.com/t/which-server-component/179569)

<div class="topic-metadata">

**Author:** [@tbobker](https://www.ruby-forum.com/u/tbobker)\
**Replies:** 8\
**Last updated:** [November 29, 2009, 6:55pm UTC](https://www.ruby-forum.com/t/which-server-component/179569 "2009-11-29T18:55:51Z")

</div>

Hello! I have the scenarion, that on the one hand, there are mobile devices which are the clients, on the other hand there is a server with ruby. The clients send the messages to the server witch JSON via a persistent …

---

## [How to enable debugging on the server?](https://www.ruby-forum.com/t/how-to-enable-debugging-on-the-server/179586)

<div class="topic-metadata">

**Author:** [@bryan](https://www.ruby-forum.com/u/bryan)\
**Replies:** 1\
**Last updated:** [November 29, 2009, 6:40pm UTC](https://www.ruby-forum.com/t/how-to-enable-debugging-on-the-server/179586 "2009-11-29T18:40:29Z")

</div>

Wanting to run the script/server in debugger mode, my dialog looked like this: ruby script/server --debugger =\> Booting WEBrick =\> Rails 2.3.4 application starting on http://0.0.0.0:3000 You need to install ruby-deb…

---

## [Unexpected kIN (SyntaxError)](https://www.ruby-forum.com/t/unexpected-kin-syntaxerror/179552)

<div class="topic-metadata">

**Author:** [@mikec](https://www.ruby-forum.com/u/mikec)\
**Replies:** 8\
**Last updated:** [November 29, 2009, 3:28pm UTC](https://www.ruby-forum.com/t/unexpected-kin-syntaxerror/179552 "2009-11-29T15:28:41Z")

</div>

I’m getting the following when trying to run a ruby program with JRuby ============ :1: C:/Program Files/jruby-1.4.0/bin/JRuby:17: , unexpected kIN (SyntaxError) case “uname” in ^ =========== The script runs just …

---

## [App/helpers in Rails](https://www.ruby-forum.com/t/app-helpers-in-rails/179564)

<div class="topic-metadata">

**Author:** [@T\_P](https://www.ruby-forum.com/u/T_P)\
**Replies:** 3\
**Last updated:** [November 29, 2009, 11:53am UTC](https://www.ruby-forum.com/t/app-helpers-in-rails/179564 "2009-11-29T11:53:47Z")

</div>

Hello! I am new to ruby (and to ruby on rails). Having created some helpers with script/generate helper HelperName how do I access them in controllers and views? :-/ Tuo Pe

---

## [Something broke ruby floats](https://www.ruby-forum.com/t/something-broke-ruby-floats/179565)

<div class="topic-metadata">

**Author:** [@Joel\_VanderWerf](https://www.ruby-forum.com/u/Joel_VanderWerf)\
**Replies:** 5\
**Last updated:** [November 29, 2009, 8:04am UTC](https://www.ruby-forum.com/t/something-broke-ruby-floats/179565 "2009-11-29T08:04:29Z")

</div>

Noticed this after rebuilding ruby (with configure args –disable-pthread --enable-shared): ~/src/ruby\> RUBYOPT=’’ ./ruby -e ‘x=0.123; puts x’ 123.0 ~/src/ruby\> ldd ./ruby linux-gate.so.1 =\> (0x00b0e000) libruby.so…

---

## [Edge releases made easier?](https://www.ruby-forum.com/t/edge-releases-made-easier/179548)

<div class="topic-metadata">

**Author:** [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Replies:** 5\
**Last updated:** [November 29, 2009, 5:28am UTC](https://www.ruby-forum.com/t/edge-releases-made-easier/179548 "2009-11-29T05:28:07Z")

</div>

Would it be possible to request that there be a way to download “unstable” jruby releases more easily–a la something like what core does, with unstable snapshots? That would be swell. As a side note, in checking if I…

---

## [Xap generation middleware for Rack](https://www.ruby-forum.com/t/xap-generation-middleware-for-rack/179560)

<div class="topic-metadata">

**Author:** [@barby](https://www.ruby-forum.com/u/barby)\
**Replies:** 1\
**Last updated:** [November 29, 2009, 1:38am UTC](https://www.ruby-forum.com/t/xap-generation-middleware-for-rack/179560 "2009-11-29T01:38:13Z")

</div>

Hi I’ve created a rack-xapper gem http://github.com/casualjim/rack-xapper It does basically the same thing as chiron but for any rack based application. It’s still a work in progress, it doesn’t have support for sl…

---

## [Finding the mythical root\_visual object in Gestalt](https://www.ruby-forum.com/t/finding-the-mythical-root-visual-object-in-gestalt/179460)

<div class="topic-metadata">

**Author:** [@Adam\_Burmister](https://www.ruby-forum.com/u/Adam_Burmister)\
**Replies:** 1\
**Last updated:** [November 29, 2009, 1:27am UTC](https://www.ruby-forum.com/t/finding-the-mythical-root-visual-object-in-gestalt/179460 "2009-11-29T01:27:41Z")

</div>

Hi all, I’m currently writing about Gestalt using the 1.0 release. The best documentation I can find for it is the PDF “sl-back-to-just-text.pdf”, by Jimmy, which states: "XAML accessors root\_visual maps to System.W…

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

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