# Ruby

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

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

---

## [Where is YAML::Syck's maling list?](https://www.ruby-forum.com/t/where-is-yaml-sycks-maling-list/79543)

<div class="topic-metadata">

**Author:** [@Phlip](https://www.ruby-forum.com/u/Phlip)\
**Replies:** 3\
**Last updated:** [December 18, 2006, 5:44am UTC](https://www.ruby-forum.com/t/where-is-yaml-sycks-maling-list/79543 "2006-12-18T05:44:12Z")

</div>

Ruboids: I an am adept googler, but this crumb of data eludes me. (Naive attempts rapidly get snared in Perl groups, for example…) I have innard-looking questions about YAML via its Syck vehicle, and I can’t find th…

---

## [Finding an object in a collection](https://www.ruby-forum.com/t/finding-an-object-in-a-collection/79680)

<div class="topic-metadata">

**Author:** [@feanix](https://www.ruby-forum.com/u/feanix)\
**Replies:** 4\
**Last updated:** [December 18, 2006, 5:16am UTC](https://www.ruby-forum.com/t/finding-an-object-in-a-collection/79680 "2006-12-18T05:16:11Z")

</div>

How would I go about finding an object in a collection? Specifically: I have a collection called roles. I have a Role object with the name property “user”. How do I find that object in roles?

---

## [Using ruby in applescript studio](https://www.ruby-forum.com/t/using-ruby-in-applescript-studio/79598)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 7\
**Last updated:** [December 18, 2006, 3:15am UTC](https://www.ruby-forum.com/t/using-ruby-in-applescript-studio/79598 "2006-12-18T03:15:54Z")

</div>

Hi – I’m not a programmer by trade or inclination, so this might be a stupid question, but is there any way to add a ruby file to an applescript studio project? More detail: I’m writing a program to grab an article fr…

---

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

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 1\
**Last updated:** [December 18, 2006, 2:11am UTC](https://www.ruby-forum.com/t/fwd-please-forward-ruby-quiz-submission/229091 "2006-12-18T02:11:48Z")

</div>

Begin forwarded message:

---

## [Grabbing data off a webpage](https://www.ruby-forum.com/t/grabbing-data-off-a-webpage/79643)

<div class="topic-metadata">

**Author:** [@Bil\_K](https://www.ruby-forum.com/u/Bil_K)\
**Replies:** 10\
**Last updated:** [December 18, 2006, 1:47am UTC](https://www.ruby-forum.com/t/grabbing-data-off-a-webpage/79643 "2006-12-18T01:47:46Z")

</div>

OK, so I haven’t done this in years. What’s the “modern” way of grabbing the data off a webpage, e.g., http://yorkcountyschools.org/mves/arlist/3-3.4.htm My initial attempt has been focused on Hpricot, require ‘ruby…

---

## [How to install ERb?](https://www.ruby-forum.com/t/how-to-install-erb/79556)

<div class="topic-metadata">

**Author:** [@mutejute](https://www.ruby-forum.com/u/mutejute)\
**Replies:** 6\
**Last updated:** [December 18, 2006, 1:25am UTC](https://www.ruby-forum.com/t/how-to-install-erb/79556 "2006-12-18T01:25:43Z")

</div>

hi everyone. im reading and following the ruby for rails book and im on ERb now. but when i run erb, i get command not found error. so i guess its not installed by default with ruby? how do i install it? and where do …

---

## [RPA wiki down/gone?](https://www.ruby-forum.com/t/rpa-wiki-down-gone/79601)

<div class="topic-metadata">

**Author:** [@Jeremy\_McAnally](https://www.ruby-forum.com/u/Jeremy_McAnally)\
**Replies:** 3\
**Last updated:** [December 18, 2006, 1:19am UTC](https://www.ruby-forum.com/t/rpa-wiki-down-gone/79601 "2006-12-18T01:19:43Z")

</div>

I just tried to get onto the Ruby Production Archive wiki, and it appears to have been removed or disabled somehow. I knew they were having spam troubles for some time…does anyone know what happened? There’s a lot of…

---

## [Rename thread.rb](https://www.ruby-forum.com/t/rename-thread-rb/79665)

<div class="topic-metadata">

**Author:** [@Martin\_DeMello](https://www.ruby-forum.com/u/Martin_DeMello)\
**Replies:** 3\
**Last updated:** [December 17, 2006, 10:13pm UTC](https://www.ruby-forum.com/t/rename-thread-rb/79665 "2006-12-17T22:13:16Z")

</div>

I think thread.rb should be renamed ‘threadutils.rb’, with a period where both exist and the former is deprecated - since Thread itself is in core, and thread.rb merely introduces supplementary classes, threadutils se…

---

## [RubyForge CVS viewing server down?](https://www.ruby-forum.com/t/rubyforge-cvs-viewing-server-down/79605)

<div class="topic-metadata">

**Author:** [@MSEdward\_SEdS\_Bora](https://www.ruby-forum.com/u/MSEdward_SEdS_Bora)\
**Replies:** 3\
**Last updated:** [December 17, 2006, 9:43pm UTC](https://www.ruby-forum.com/t/rubyforge-cvs-viewing-server-down/79605 "2006-12-17T21:43:12Z")

</div>

I can get to the main RubyForge web site, but I’m no longer able to browse to the CVS repository on my project! The URL is http://rubyforge.org/viewvc/Rameau/Rameau.pdf?revision=1.1&root=cougar And it delivers the inf…

---

## [With and without initialize method](https://www.ruby-forum.com/t/with-and-without-initialize-method/79660)

<div class="topic-metadata">

**Author:** [@alex-osu3](https://www.ruby-forum.com/u/alex-osu3)\
**Replies:** 2\
**Last updated:** [December 17, 2006, 8:59pm UTC](https://www.ruby-forum.com/t/with-and-without-initialize-method/79660 "2006-12-17T20:59:04Z")

</div>

Hi all, I define two classes, one with and the other without initialize method. But I can call them with the same method new. I am not sure how to explain them but I guess there are some kinds of default settings wit…

---

## [Why the resutls are different](https://www.ruby-forum.com/t/why-the-resutls-are-different/79641)

<div class="topic-metadata">

**Author:** [@alex-osu3](https://www.ruby-forum.com/u/alex-osu3)\
**Replies:** 6\
**Last updated:** [December 17, 2006, 8:29pm UTC](https://www.ruby-forum.com/t/why-the-resutls-are-different/79641 "2006-12-17T20:29:01Z")

</div>

Hi all, I try to understand the concept of variable scopes. I define two classes with very similar structures. But Ruby complains class Y only. Any comments? Thanks, Li class X def initialize(name,artist,duration) …

---

## [Require, load and include --- what's the difference?](https://www.ruby-forum.com/t/require-load-and-include-whats-the-difference/79651)

<div class="topic-metadata">

**Author:** [@matt](https://www.ruby-forum.com/u/matt)\
**Replies:** 5\
**Last updated:** [December 17, 2006, 7:04pm UTC](https://www.ruby-forum.com/t/require-load-and-include-whats-the-difference/79651 "2006-12-17T19:04:50Z")

</div>

Hello, I’m browsing through some code, trying to familiarize myself with the language (I have a C++ background, with only a #include), and I realize that there are 3 calls that I’m trying to wrap my head around. Here…

---

## [Looping: break every x times](https://www.ruby-forum.com/t/looping-break-every-x-times/79648)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 4\
**Last updated:** [December 17, 2006, 6:54pm UTC](https://www.ruby-forum.com/t/looping-break-every-x-times/79648 "2006-12-17T18:54:46Z")

</div>

I have a bunch of pictures to display on a page and I want to do 4 per row. This code works fine (inserting a every 4th picture): \<% i = 1 %\> \<% for photo in @photos do -%\> \<a href="/photos/show/\<%=pho…

---

## [Dsl/library for text interaction?](https://www.ruby-forum.com/t/dsl-library-for-text-interaction/79629)

<div class="topic-metadata">

**Author:** [@noagenda](https://www.ruby-forum.com/u/noagenda)\
**Replies:** 3\
**Last updated:** [December 17, 2006, 5:42pm UTC](https://www.ruby-forum.com/t/dsl-library-for-text-interaction/79629 "2006-12-17T17:42:30Z")

</div>

I’ve been doing a fair amount of work with Asterisk lately. It’s got a command-line interface that looks quite a bit like SMTP (and like lots of other text-based send-a-line-and-get-a-response protocols). Seems like…

---

## [Just some Ruby language ideas, comments wanted](https://www.ruby-forum.com/t/just-some-ruby-language-ideas-comments-wanted/79584)

<div class="topic-metadata">

**Author:** [@arachnd](https://www.ruby-forum.com/u/arachnd)\
**Replies:** 12\
**Last updated:** [December 17, 2006, 4:30pm UTC](https://www.ruby-forum.com/t/just-some-ruby-language-ideas-comments-wanted/79584 "2006-12-17T16:30:20Z")

</div>

My first Ruby language idea is simple. Instead of having every method take a default value, do the following: class Object def default(\*args) self end end class NilClass def default(arg) arg # And have a block …

---

## [Rubygem setup.rb failing](https://www.ruby-forum.com/t/rubygem-setup-rb-failing/79618)

<div class="topic-metadata">

**Author:** [@wickie](https://www.ruby-forum.com/u/wickie)\
**Replies:** 3\
**Last updated:** [December 17, 2006, 8:39am UTC](https://www.ruby-forum.com/t/rubygem-setup-rb-failing/79618 "2006-12-17T08:39:56Z")

</div>

I’m having to setup multiple machines, and I’ve got a new problem (at least each time my problem is new … I’m not repeating the old ones) I’ve compiled ruby and installed it - I’ve put it into /usr/local/bin, if that’…

---

## [Question about .gsub](https://www.ruby-forum.com/t/question-about-gsub/79602)

<div class="topic-metadata">

**Author:** [@jawosis](https://www.ruby-forum.com/u/jawosis)\
**Replies:** 8\
**Last updated:** [December 17, 2006, 8:09am UTC](https://www.ruby-forum.com/t/question-about-gsub/79602 "2006-12-17T08:09:54Z")

</div>

line = tree /Users/aragon/Documents -d line.each { |l| l = l.gsub(/|/,’ ‘) l = l.gsub(/-/,’ ‘) l = l.gsub(/\`/,’ ') line = l puts line } I use the gsub commands because the tree co…

---

## [Compiling Ruby programs](https://www.ruby-forum.com/t/compiling-ruby-programs/79615)

<div class="topic-metadata">

**Author:** [@rubyaddict](https://www.ruby-forum.com/u/rubyaddict)\
**Replies:** 1\
**Last updated:** [December 17, 2006, 6:57am UTC](https://www.ruby-forum.com/t/compiling-ruby-programs/79615 "2006-12-17T06:57:48Z")

</div>

Hi Friends I am wondering if someone can point me to a Ruby compiler that converts my Ruby programs into an executable that prevents someone from reverse engineering the source code. I am new to ruby, and could use s…

---

## [Trapping error not caught by rescue Exception -- How to?](https://www.ruby-forum.com/t/trapping-error-not-caught-by-rescue-exception-how-to/79611)

<div class="topic-metadata">

**Author:** [@richard](https://www.ruby-forum.com/u/richard)\
**Replies:** 2\
**Last updated:** [December 17, 2006, 5:05am UTC](https://www.ruby-forum.com/t/trapping-error-not-caught-by-rescue-exception-how-to/79611 "2006-12-17T05:05:39Z")

</div>

Hi, The fourth data line in the program below hangs rather than submitting to the rescue clause. How can I trap that kind of error? I’m running WinXP-Pro/SP2, Ruby 1.8.2-15, Rails 1.1.6, MySQL 5.0.15-nt, SciTE 1.59 …

---

## [CTI Corporativo auto responses](https://www.ruby-forum.com/t/cti-corporativo-auto-responses/79351)

<div class="topic-metadata">

**Author:** [@danielb](https://www.ruby-forum.com/u/danielb)\
**Replies:** 17\
**Last updated:** [December 17, 2006, 3:41am UTC](https://www.ruby-forum.com/t/cti-corporativo-auto-responses/79351 "2006-12-17T03:41:32Z")

</div>

All, If someone on this list works for CTI Corporativo please stop sending automated messages to the OP every time someone posts to this list. Is anyone else getting these messages besides me? I think this is only h…

---

## [Rxmms2](https://www.ruby-forum.com/t/rxmms2/79603)

<div class="topic-metadata">

**Author:** [@hakim](https://www.ruby-forum.com/u/hakim)\
**Replies:** 1\
**Last updated:** [December 17, 2006, 12:23am UTC](https://www.ruby-forum.com/t/rxmms2/79603 "2006-12-17T00:23:18Z")

</div>

I am trying to start an xmms2 client rxmms2, which was build with ruby and I get this error: /home/tomas/downloads/.rxmms2/rxmms2:5:in \`require': no such file to load -- gui/main (LoadError) from /home/tomas/do…

---

## [Method\_missing question](https://www.ruby-forum.com/t/method-missing-question/79454)

<div class="topic-metadata">

**Author:** [@splattael](https://www.ruby-forum.com/u/splattael)\
**Replies:** 4\
**Last updated:** [December 16, 2006, 11:15pm UTC](https://www.ruby-forum.com/t/method-missing-question/79454 "2006-12-16T23:15:11Z")

</div>

Hello, I am using method\_missing to build a structure (similar to a tree) like this: P.book do P.title P.price end class P def self.method\_missing(method\_name, \*args, &block) #add a node with name ‘method\_name.t…

---

## [Why is define\_method private? Plus, what's the point of priv](https://www.ruby-forum.com/t/why-is-define-method-private-plus-whats-the-point-of-priv/79428)

<div class="topic-metadata">

**Author:** [@arachnd](https://www.ruby-forum.com/u/arachnd)\
**Replies:** 3\
**Last updated:** [December 16, 2006, 11:11pm UTC](https://www.ruby-forum.com/t/why-is-define-method-private-plus-whats-the-point-of-priv/79428 "2006-12-16T23:11:10Z")

</div>

Why is define\_method a private method? I can’t recall ever using define\_method on the class I was working in, only using class.send(:define\_method)… Personally, I find that the following: Class.define\_method(:foo, &m…

---

## [Variable names limitation](https://www.ruby-forum.com/t/variable-names-limitation/79596)

<div class="topic-metadata">

**Author:** [@zerocoder](https://www.ruby-forum.com/u/zerocoder)\
**Replies:** 1\
**Last updated:** [December 16, 2006, 10:37pm UTC](https://www.ruby-forum.com/t/variable-names-limitation/79596 "2006-12-16T22:37:05Z")

</div>

Do we have any limitation in variable declerations. For instance how long a variable name can be? is there any name convention do we start a variable with a number (we tried and see it is not start with a number) but …

---

## [Dictionary, iterate & update objects](https://www.ruby-forum.com/t/dictionary-iterate-update-objects/79592)

<div class="topic-metadata">

**Author:** [@jansenh](https://www.ruby-forum.com/u/jansenh)\
**Replies:** 2\
**Last updated:** [December 16, 2006, 10:01pm UTC](https://www.ruby-forum.com/t/dictionary-iterate-update-objects/79592 "2006-12-16T22:01:00Z")

</div>

hi comp.lang.python. I need some newbe advice on idiomatic use of Python dictionaries. I have service with a dictionary which holds a bunch of objects as values, and an ID as key to each object. Then I want to change …

---

## [Newb: Rails character encoding and validation](https://www.ruby-forum.com/t/newb-rails-character-encoding-and-validation/79503)

<div class="topic-metadata">

**Author:** [@mark](https://www.ruby-forum.com/u/mark)\
**Replies:** 5\
**Last updated:** [December 16, 2006, 9:48pm UTC](https://www.ruby-forum.com/t/newb-rails-character-encoding-and-validation/79503 "2006-12-16T21:48:58Z")

</div>

I’m putting together a basic rails application, and writing my first units tests for it… It occured to me that the user ‘name’ field might want to contain foreign characters (like é,â,ì,ø… etc.) But two problems have …

---

## [Popup Window Problem AJAX](https://www.ruby-forum.com/t/popup-window-problem-ajax/102624)

<div class="topic-metadata">

**Author:** [@mdaoust](https://www.ruby-forum.com/u/mdaoust)\
**Replies:** 4\
**Last updated:** [December 16, 2006, 9:22pm UTC](https://www.ruby-forum.com/t/popup-window-problem-ajax/102624 "2006-12-16T21:22:13Z")

</div>

When I try to use Ajax in a window openened by ‘window.open(’’);’ it doesn’t work. There is no exceptions raised as far as I can see (debugging with FireBug). However, if I refresh the window once it has popped up it …

---

## [Binding input elements to params and sessions too](https://www.ruby-forum.com/t/binding-input-elements-to-params-and-sessions-too/79533)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 1\
**Last updated:** [December 16, 2006, 8:50pm UTC](https://www.ruby-forum.com/t/binding-input-elements-to-params-and-sessions-too/79533 "2006-12-16T20:50:07Z")

</div>

Hi, I started experimenting with RoR and came across the raw support for form elements, if the input element is not bound to a Active Record object. In my case, I was puzzled that I could find no better than this for…

---

## [Stubbing out class: just a little toy](https://www.ruby-forum.com/t/stubbing-out-class-just-a-little-toy/79586)

<div class="topic-metadata">

**Author:** [@sjmadsen](https://www.ruby-forum.com/u/sjmadsen)\
**Replies:** 0\
**Last updated:** [December 16, 2006, 8:26pm UTC](https://www.ruby-forum.com/t/stubbing-out-class-just-a-little-toy/79586 "2006-12-16T20:26:04Z")

</div>

Hi, I was playing around recently with building a “stubbing” system in Ruby to allow me to make what looked like “child object” calls but that were really just stubs to methods in the core object. I thought some peop…

---

## [Matching lines](https://www.ruby-forum.com/t/matching-lines/79529)

<div class="topic-metadata">

**Author:** [@maz](https://www.ruby-forum.com/u/maz)\
**Replies:** 5\
**Last updated:** [December 16, 2006, 5:13pm UTC](https://www.ruby-forum.com/t/matching-lines/79529 "2006-12-16T17:13:48Z")

</div>

I’m really wracking my brain about this one though I bet there must be some simple command I don’t know which I’m missing. I’ve got a file with a few lines: 1: Kevin 25 football cricket guitar 2: John 15 football kar…

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

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