# Ruby

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

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

---

## [Dynamically named variables or Constants](https://www.ruby-forum.com/t/dynamically-named-variables-or-constants/103461)

<div class="topic-metadata">

**Author:** [@tvon](https://www.ruby-forum.com/u/tvon)\
**Replies:** 11\
**Last updated:** [May 7, 2007, 1:26pm UTC](https://www.ruby-forum.com/t/dynamically-named-variables-or-constants/103461 "2007-05-07T13:26:56Z")

</div>

Hi, for each user I need to create and call a dynamically named GLOBAL variable (or Constant) labeled with the user name. To make it clear what I mean: begin “Ruby Pseudocode” user\_name = “tom” $#{user\_name}\_dyn\_v…

---

## [RoR how does scaffold work?](https://www.ruby-forum.com/t/ror-how-does-scaffold-work/102996)

<div class="topic-metadata">

**Author:** [@anansi](https://www.ruby-forum.com/u/anansi)\
**Replies:** 17\
**Last updated:** [May 7, 2007, 12:27pm UTC](https://www.ruby-forum.com/t/ror-how-does-scaffold-work/102996 "2007-05-07T12:27:05Z")

</div>

Hi, I wanna write a little blog in ruby so I started with creating a mysql-db with blog\_test, blog\_development, blog\_production. Then I created a new rails project with “rails blog”. I create, in the folder db, a fil…

---

## [Ruby and true](https://www.ruby-forum.com/t/ruby-and-true/102998)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 16\
**Last updated:** [May 7, 2007, 10:04am UTC](https://www.ruby-forum.com/t/ruby-and-true/102998 "2007-05-07T10:04:00Z")

</div>

Hi, I have some code the checks whether some text is on the HTML page @@log.test\_results(ie.contains\_text(‘Dashboard’) I should get a TRUE (it’s there), but it is returning the figure 62. Is anything \> 0 in Ruby true…

---

## [Ruby programming for the web](https://www.ruby-forum.com/t/ruby-programming-for-the-web/103489)

<div class="topic-metadata">

**Author:** [@Piett\_H](https://www.ruby-forum.com/u/Piett_H)\
**Replies:** 2\
**Last updated:** [May 7, 2007, 9:58am UTC](https://www.ruby-forum.com/t/ruby-programming-for-the-web/103489 "2007-05-07T09:58:59Z")

</div>

Hi, (i do not pretend to use RoR) For a web app using a MySQL or Postgres db (and some YAML for static cached data), hosted on a Debian machine, can i have: lighttpd fastcgi eruby eruby is my question. Can i use it…

---

## [Remote IRB shell (embedded in rails)](https://www.ruby-forum.com/t/remote-irb-shell-embedded-in-rails/103339)

<div class="topic-metadata">

**Author:** [@calande](https://www.ruby-forum.com/u/calande)\
**Replies:** 7\
**Last updated:** [May 7, 2007, 9:53am UTC](https://www.ruby-forum.com/t/remote-irb-shell-embedded-in-rails/103339 "2007-05-07T09:53:49Z")

</div>

I wasn’t able to find this functionality in rails to begin with, so I wrote a small wrapper to allow you to provide direct IRB shell access into any long running app (for debug purposes, or as a way to control a remot…

---

## [Ruby Plugins](https://www.ruby-forum.com/t/ruby-plugins/103490)

<div class="topic-metadata">

**Author:** [@Ari\_B](https://www.ruby-forum.com/u/Ari_B)\
**Replies:** 3\
**Last updated:** [May 7, 2007, 8:58am UTC](https://www.ruby-forum.com/t/ruby-plugins/103490 "2007-05-07T08:58:53Z")

</div>

hey this question is probably - no, definitely - really dumb. You all are probably laughing yourselves sick. But… I know you can write different parts of applications in different languages, so can you write differen…

---

## [Creating a Ruby OS X app bundle containing Gems with Platypu](https://www.ruby-forum.com/t/creating-a-ruby-os-x-app-bundle-containing-gems-with-platypu/103494)

<div class="topic-metadata">

**Author:** [@Evan\_Light](https://www.ruby-forum.com/u/Evan_Light)\
**Replies:** 0\
**Last updated:** [May 7, 2007, 5:25am UTC](https://www.ruby-forum.com/t/creating-a-ruby-os-x-app-bundle-containing-gems-with-platypu/103494 "2007-05-07T05:25:41Z")

</div>

First I found rubyscript2exe which has the wonderful benefit of copying absolutely every dependency into a single binary file. Then I found Platypus. While Platypus seems the superior of the two from the Ruby standp…

---

## [Checking Credit Cards (#122)](https://www.ruby-forum.com/t/checking-credit-cards-122/103260)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 17\
**Last updated:** [May 6, 2007, 11:05pm UTC](https://www.ruby-forum.com/t/checking-credit-cards-122/103260 "2007-05-06T23:05:22Z")

</div>

This quiz is super easy, of course. The reason I ran it though is that I wanted to see how people approached the Luhn algorithm implementation. It’s an easy enough process, but I found myself using an odd combinati…

---

## [Rdoc and ri for gem/non-gem installs](https://www.ruby-forum.com/t/rdoc-and-ri-for-gem-non-gem-installs/89963)

<div class="topic-metadata">

**Author:** [@braver](https://www.ruby-forum.com/u/braver)\
**Replies:** 4\
**Last updated:** [May 6, 2007, 9:46pm UTC](https://www.ruby-forum.com/t/rdoc-and-ri-for-gem-non-gem-installs/89963 "2007-05-06T21:46:17Z")

</div>

I’ve been installing some gems, as well as non-gem tarballs, into my darwinports (now macports) ruby install on Darwin. Then, when I do ri, I can’t see the docs. Poking around /opt/local/lib/ruby shows that gems’ do…

---

## [How to define a method template](https://www.ruby-forum.com/t/how-to-define-a-method-template/103456)

<div class="topic-metadata">

**Author:** [@xain](https://www.ruby-forum.com/u/xain)\
**Replies:** 9\
**Last updated:** [May 6, 2007, 7:30pm UTC](https://www.ruby-forum.com/t/how-to-define-a-method-template/103456 "2007-05-06T19:30:57Z")

</div>

Forgive me for the nonstandard words. I will describe my problem in details: I am doing a rails app, and met a ruby problem. Inside a model class, I will need to write these codes for “apple” def apple\_attr apples.c…

---

## [R-Bus 0.2.0, now with winDBus support](https://www.ruby-forum.com/t/r-bus-0-2-0-now-with-windbus-support/103477)

<div class="topic-metadata">

**Author:** [@stoffe](https://www.ruby-forum.com/u/stoffe)\
**Replies:** 0\
**Last updated:** [May 6, 2007, 6:56pm UTC](https://www.ruby-forum.com/t/r-bus-0-2-0-now-with-windbus-support/103477 "2007-05-06T18:56:57Z")

</div>

R-Bus 0.2.0 was released today, featuring support for winDBus thanks to patches from Cezar SÃ¡ Espinola. R-Bus is a native implementation of the D-Bus protocol, with these goals in mind: Ruby + standard library is t…

---

## [Unofficial Ruby Quiz -- Ranking Choices](https://www.ruby-forum.com/t/unofficial-ruby-quiz-ranking-choices/103309)

<div class="topic-metadata">

**Author:** [@sevensoft](https://www.ruby-forum.com/u/sevensoft)\
**Replies:** 9\
**Last updated:** [May 6, 2007, 5:10pm UTC](https://www.ruby-forum.com/t/unofficial-ruby-quiz-ranking-choices/103309 "2007-05-06T17:10:47Z")

</div>

Apparently some people around here can’t stand Ruby Q. withdrawal. For those people, here’s a quiz question I just came up with. I have a list of some items, and I would like to manually rank which ones are most impo…

---

## [Simple Q: bit string -\> integer](https://www.ruby-forum.com/t/simple-q-bit-string-integer/103468)

<div class="topic-metadata">

**Author:** [@toadkicker](https://www.ruby-forum.com/u/toadkicker)\
**Replies:** 4\
**Last updated:** [May 6, 2007, 4:58pm UTC](https://www.ruby-forum.com/t/simple-q-bit-string-integer/103468 "2007-05-06T16:58:46Z")

</div>

Is there a simple way to induce a bit string into an integer; for example, “10010000” into 144? And also, to show a Fixnum in its different representations (hex, num, binary)?

---

## [Fixnum, range and array into one single loop?](https://www.ruby-forum.com/t/fixnum-range-and-array-into-one-single-loop/103466)

<div class="topic-metadata">

**Author:** [@anansi](https://www.ruby-forum.com/u/anansi)\
**Replies:** 4\
**Last updated:** [May 6, 2007, 4:50pm UTC](https://www.ruby-forum.com/t/fixnum-range-and-array-into-one-single-loop/103466 "2007-05-06T16:50:46Z")

</div>

Hi, I’m struggeling with writing a little script. It has a loop just e.g. like this: for x in 1…10 do begin puts “#{x}” end The userinput is the loop count (so above the userinput would have been 1…10): but now t…

---

## [Condition avant la boucle](https://www.ruby-forum.com/t/condition-avant-la-boucle/103340)

<div class="topic-metadata">

**Author:** [@Bolo](https://www.ruby-forum.com/u/Bolo)\
**Replies:** 6\
**Last updated:** [May 6, 2007, 4:30pm UTC](https://www.ruby-forum.com/t/condition-avant-la-boucle/103340 "2007-05-06T16:30:44Z")

</div>

Bonjour, Pourquoi dans mon code def index rtCriteria = “” session\[:list\_search\_criteria\] = Hash.new if session\[:list\_search\_criteria\] != “” session\[:list\_search\_criteria\]\["#{params\[:criteria\]}"\] = params\[:criteria…

---

## [WIN32OLE and Shell.Application problem](https://www.ruby-forum.com/t/win32ole-and-shell-application-problem/225947)

<div class="topic-metadata">

**Author:** [@eder](https://www.ruby-forum.com/u/eder)\
**Replies:** 3\
**Last updated:** [May 6, 2007, 2:35pm UTC](https://www.ruby-forum.com/t/win32ole-and-shell-application-problem/225947 "2007-05-06T14:35:35Z")

</div>

Hi, anyone knows what is the problem with this function, i believe i did everything right, but it just does not open the cd-rom, maybe the problem is in the part “InvokeVerb”. Any help would be highly appreciated. de…

---

## [How can I output an object/variable's name?](https://www.ruby-forum.com/t/how-can-i-output-an-object-variables-name/103432)

<div class="topic-metadata">

**Author:** [@john\_old](https://www.ruby-forum.com/u/john_old)\
**Replies:** 14\
**Last updated:** [May 6, 2007, 1:46pm UTC](https://www.ruby-forum.com/t/how-can-i-output-an-object-variables-name/103432 "2007-05-06T13:46:32Z")

</div>

Suppose I have an object : a = 3 I want to output the name a and the contents 3 Outputing the contents is no problem. Is there a method to output the name of the variable (object)

---

## [Svn repository probem](https://www.ruby-forum.com/t/svn-repository-probem/103144)

<div class="topic-metadata">

**Author:** [@SASADA\_Koichi](https://www.ruby-forum.com/u/SASADA_Koichi)\
**Replies:** 1\
**Last updated:** [May 6, 2007, 11:57am UTC](https://www.ruby-forum.com/t/svn-repository-probem/103144 "2007-05-06T11:57:22Z")

</div>

e$B!!$5$5$@$G$9!%e(B e$B!!:G6a!$6qBNE\*$K$O@h=5$N=\*$o$j$0$i$$!)$+$i!$%3%%C%H$K$H$F$b;~4V$,$+$+$ke(B e$B$h$&$K$J$j$^$7$?!%BT$C$F$$$k4V$K%3%%C%H%a!\<%k$,Mh$k$N$G!$%3%\_%C%H=hM}$Oe(B e$B@5\>o$K=\*N;$7$F$$$k$h$&$G$9!%e(B e$B!…

---

## [SAX2Parser, anyone?](https://www.ruby-forum.com/t/sax2parser-anyone/103452)

<div class="topic-metadata">

**Author:** [@Krister\_Johnson](https://www.ruby-forum.com/u/Krister_Johnson)\
**Replies:** 3\
**Last updated:** [May 6, 2007, 10:41am UTC](https://www.ruby-forum.com/t/sax2parser-anyone/103452 "2007-05-06T10:41:17Z")

</div>

Hi guys. I’m trying to mine some info from wikipedia’s xml dump. The code im using is as follows: require ‘rexml/parsers/sax2parser’ xml = REXML::Parsers:SAX2Parser.new(File.new(‘enwiki-20070402-pages-articles-1.xml…

---

## [How to make "quit" at the end of "menu"](https://www.ruby-forum.com/t/how-to-make-quit-at-the-end-of-menu/103434)

<div class="topic-metadata">

**Author:** [@gpygood](https://www.ruby-forum.com/u/gpygood)\
**Replies:** 2\
**Last updated:** [May 6, 2007, 9:25am UTC](https://www.ruby-forum.com/t/how-to-make-quit-at-the-end-of-menu/103434 "2007-05-06T09:25:08Z")

</div>

I create a ruby program that need a menu from database: menu={ “open file”=\>“file.html”, “save file”=\>“save\_file.html”, “quit”=\>“quit.rb” } puts menu.inspect =\> {“open file”=\>“file.html”, “quit”=\>“quit.rb”, “save …

---

## [ActiveRecord::Extensions 0.6.0 Released](https://www.ruby-forum.com/t/activerecord-extensions-0-6-0-released/196418)

<div class="topic-metadata">

**Author:** [@zdennis](https://www.ruby-forum.com/u/zdennis)\
**Replies:** 0\
**Last updated:** [May 6, 2007, 6:46am UTC](https://www.ruby-forum.com/t/activerecord-extensions-0-6-0-released/196418 "2007-05-06T06:46:01Z")

</div>

ActiveRecord::Extensions 0.6.0 is released! This adds one nice feature, one small feature and one bug fix. If you ever need to reload data from the database calling “reload” on more then one model instance then you ma…

---

## [Gmailer](https://www.ruby-forum.com/t/gmailer/103427)

<div class="topic-metadata">

**Author:** [@David\_Alm](https://www.ruby-forum.com/u/David_Alm)\
**Replies:** 3\
**Last updated:** [May 6, 2007, 4:42am UTC](https://www.ruby-forum.com/t/gmailer/103427 "2007-05-06T04:42:54Z")

</div>

Hello, I’m experimenting with the Gmailer gem. I’d like to extend it to be able to pull down Contact groups. Currently, it does “frequently mailed” and “all”. Does anyone know where to locate such API info? Thanks, …

---

## [Ruby love](https://www.ruby-forum.com/t/ruby-love/103315)

<div class="topic-metadata">

**Author:** [@beaon](https://www.ruby-forum.com/u/beaon)\
**Replies:** 31\
**Last updated:** [May 6, 2007, 2:32am UTC](https://www.ruby-forum.com/t/ruby-love/103315 "2007-05-06T02:32:48Z")

</div>

I just taught my girlfriend - who has never coded before - how to code in Ruby. Is that a testament to how easy Ruby is or what? I’ve only been using it a few weeks myself. I had to share this. That was all :wink: …

---

## [Radiant CMS 0.6.1 - Stone Cutter (Security Update)](https://www.ruby-forum.com/t/radiant-cms-0-6-1-stone-cutter-security-update/103444)

<div class="topic-metadata">

**Author:** [@John\_WSLong](https://www.ruby-forum.com/u/John_WSLong)\
**Replies:** 0\
**Last updated:** [May 6, 2007, 2:28am UTC](https://www.ruby-forum.com/t/radiant-cms-0-6-1-stone-cutter-security-update/103444 "2007-05-06T02:28:47Z")

</div>

Looks like it’s time for another release of Radiant: http://radiantcms.org/download/ This release contains an important security update. Passwords since 0.5 have been written straight into the log files without filter…

---

## [Hash order bug?](https://www.ruby-forum.com/t/hash-order-bug/99785)

<div class="topic-metadata">

**Author:** [@javier\_v](https://www.ruby-forum.com/u/javier_v)\
**Replies:** 51\
**Last updated:** [May 6, 2007, 2:21am UTC](https://www.ruby-forum.com/t/hash-order-bug/99785 "2007-05-06T02:21:47Z")

</div>

I have this piece of simple code: def foo return 5 end a = {:gr =\> false, :und =\> false, :det =\> true, :sta =\> false, :inv =\> false} puts a.inspect when I execute it i get a totally unordered hash: ruby pro.rb …

---

## [Noob Concatenation Q?](https://www.ruby-forum.com/t/noob-concatenation-q/103385)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 3\
**Last updated:** [May 6, 2007, 1:20am UTC](https://www.ruby-forum.com/t/noob-concatenation-q/103385 "2007-05-06T01:20:44Z")

</div>

Can someone briefly explain why :: puts i.to\_s +" :: "+arrayoutput\[i\] yaml.rb:12: undefined method +@' for " :: ":String (NoMethodError) from F:/RUBY/Source/yaml.rb:11:in times’ from F:/RUBY/Source/yaml.rb:11 …

---

## [Top-level](https://www.ruby-forum.com/t/top-level/103284)

<div class="topic-metadata">

**Author:** [@chell](https://www.ruby-forum.com/u/chell)\
**Replies:** 9\
**Last updated:** [May 6, 2007, 12:52am UTC](https://www.ruby-forum.com/t/top-level/103284 "2007-05-06T00:52:42Z")

</div>

Hello everyone! I’m currently diving a bit deeper into Ruby and I’ve already asked this question in the IRC (the folks there have been great I think I’m getting it 50%). The question’s about top-level methods: Let’s …

---

## [\[ANN\] Rassmalog 4.1.0](https://www.ruby-forum.com/t/ann-rassmalog-4-1-0/103430)

<div class="topic-metadata">

**Author:** [@snk](https://www.ruby-forum.com/u/snk)\
**Replies:** 0\
**Last updated:** [May 5, 2007, 9:58pm UTC](https://www.ruby-forum.com/t/ann-rassmalog-4-1-0/103430 "2007-05-05T21:58:52Z")

</div>

Rassmalog is a static blog engine based on RSS 2.0, YAML, and Textile. It features an extensible blog formatting mechanism, easy configuration, and automatic tagging, archiving, syntax coloring, and table of contents. …

---

## [Eclipse aptana and ruby integration](https://www.ruby-forum.com/t/eclipse-aptana-and-ruby-integration/103240)

<div class="topic-metadata">

**Author:** [@music](https://www.ruby-forum.com/u/music)\
**Replies:** 7\
**Last updated:** [May 5, 2007, 8:51pm UTC](https://www.ruby-forum.com/t/eclipse-aptana-and-ruby-integration/103240 "2007-05-05T20:51:22Z")

</div>

Is there anyone using eclipse with ruby support? Which plugin have you installed in eclipse to work with ruby?

---

## [Fwd: Please Forward: Ruby Quiz Submission (please update)](https://www.ruby-forum.com/t/fwd-please-forward-ruby-quiz-submission-please-update/110631)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 0\
**Last updated:** [May 5, 2007, 8:23pm UTC](https://www.ruby-forum.com/t/fwd-please-forward-ruby-quiz-submission-please-update/110631 "2007-05-05T20:23:17Z")

</div>

Begin forwarded message:

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

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