# Ruby

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

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

---

## [Mapping table column primary key in the model file](https://www.ruby-forum.com/t/mapping-table-column-primary-key-in-the-model-file/82755)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 1\
**Last updated:** [March 16, 2006, 9:35pm UTC](https://www.ruby-forum.com/t/mapping-table-column-primary-key-in-the-model-file/82755 "2006-03-16T21:35:47Z")

</div>

I’m very new to RoR, and am trying to test out the scaffolding bit. I believe there’s an issue with my model file and the way I’m using ActiveRecord, as I’m unable to show specific details of a row. The table itself d…

---

## [Rescue on do end blocks](https://www.ruby-forum.com/t/rescue-on-do-end-blocks/54512)

<div class="topic-metadata">

**Author:** [@Farrel\_L](https://www.ruby-forum.com/u/Farrel_L)\
**Replies:** 8\
**Last updated:** [March 16, 2006, 9:01pm UTC](https://www.ruby-forum.com/t/rescue-on-do-end-blocks/54512 "2006-03-16T21:01:38Z")

</div>

I’ve been playing around with rescue expressions and besides being put on functions they also seem to work when defining classes (useful for metaprogramming perhaps?) irb(main):001:0\> class Test irb(main):002:1\> ra…

---

## [Efficiency vs. simplicity](https://www.ruby-forum.com/t/efficiency-vs-simplicity/55074)

<div class="topic-metadata">

**Author:** [@exile](https://www.ruby-forum.com/u/exile)\
**Replies:** 0\
**Last updated:** [March 16, 2006, 8:55pm UTC](https://www.ruby-forum.com/t/efficiency-vs-simplicity/55074 "2006-03-16T20:55:29Z")

</div>

In passing along event objects down a ui hierarchy, I can either modify the event and pass it along, or create a new event at each level. The first case is efficient, but introduces side effects. In the second case…

---

## [Re: build 3x3 table from one array](https://www.ruby-forum.com/t/re-build-3x3-table-from-one-array/82698)

<div class="topic-metadata">

**Author:** [@BergerS\_Daniel](https://www.ruby-forum.com/u/BergerS_Daniel)\
**Replies:** 0\
**Last updated:** [March 16, 2006, 7:29pm UTC](https://www.ruby-forum.com/t/re-build-3x3-table-from-one-array/82698 "2006-03-16T19:29:26Z")

</div>

I think they are really cool. I am stuck trying to figure out how to take an array of data and dynamically build a 3x3 html table from it without standard for loops. If you don’t mind a 3rd party solution: require…

---

## [Csv nil check and update](https://www.ruby-forum.com/t/csv-nil-check-and-update/54983)

<div class="topic-metadata">

**Author:** [@geoff](https://www.ruby-forum.com/u/geoff)\
**Replies:** 13\
**Last updated:** [March 16, 2006, 6:25pm UTC](https://www.ruby-forum.com/t/csv-nil-check-and-update/54983 "2006-03-16T18:25:00Z")

</div>

Greetings! What I have is a .csv file (comma separated and quote delimited): “BegDoc”,“EndDoc”,“New” “Doc1BegDoc”,“Doc1EndDoc”,“Test1” “Doc2BegDoc”,“Doc2EndDoc”,"" “Doc3BegDoc”,“Doc3EndDoc”,“Test2” “Doc4BegDoc”,“Do…

---

## [ERB question](https://www.ruby-forum.com/t/erb-question/82667)

<div class="topic-metadata">

**Author:** [@Robert\_DSLa\_Gesse](https://www.ruby-forum.com/u/Robert_DSLa_Gesse)\
**Replies:** 4\
**Last updated:** [March 16, 2006, 6:21pm UTC](https://www.ruby-forum.com/t/erb-question/82667 "2006-03-16T18:21:52Z")

</div>

Can anyone tell me what the difference is in these two statements? Yes, I’m a newbie! \<%=h device.send(column.name) %\> \<%= device.send(column.name) %\> Specifically, what is the \<%=h supposed to do? The “h” doesn’t …

---

## [Chess engine in ruby?](https://www.ruby-forum.com/t/chess-engine-in-ruby/55009)

<div class="topic-metadata">

**Author:** [@jeff](https://www.ruby-forum.com/u/jeff)\
**Replies:** 5\
**Last updated:** [March 16, 2006, 6:21pm UTC](https://www.ruby-forum.com/t/chess-engine-in-ruby/55009 "2006-03-16T18:21:52Z")

</div>

I’m a beginning chess player and a beginning Ruby developer :slight\_smile: I was wondering if there’s a Ruby chess engine somewhere. I thought it might be interested to read the code and see if I get better at Ruby, …

---

## [Building querystrings with ruby](https://www.ruby-forum.com/t/building-querystrings-with-ruby/54890)

<div class="topic-metadata">

**Author:** [@ngw](https://www.ruby-forum.com/u/ngw)\
**Replies:** 7\
**Last updated:** [March 16, 2006, 5:28pm UTC](https://www.ruby-forum.com/t/building-querystrings-with-ruby/54890 "2006-03-16T17:28:21Z")

</div>

Hi \*, my question is really simple: is there a way in Ruby stdlib or in external modules to build querystrings without creating the string from scratch ? For example something like: name = “Foo B.” p URI::join(base\_…

---

## [Next Beta of Rails Recipes available](https://www.ruby-forum.com/t/next-beta-of-rails-recipes-available/102884)

<div class="topic-metadata">

**Author:** [@dirtytree](https://www.ruby-forum.com/u/dirtytree)\
**Replies:** 0\
**Last updated:** [March 16, 2006, 5:19pm UTC](https://www.ruby-forum.com/t/next-beta-of-rails-recipes-available/102884 "2006-03-16T17:19:05Z")

</div>

Folks: The fourth beta of Rails Recipes, Chad F.'s book or writing real- world Rails, is now available. It features nine new recipes (and fixes the PDF bookmark problem): Secret URLs Integration Testing Cheap And E…

---

## [Re: RewriteRule with scgi on Apache 2](https://www.ruby-forum.com/t/re-rewriterule-with-scgi-on-apache-2/102883)

<div class="topic-metadata">

**Author:** [@sgware](https://www.ruby-forum.com/u/sgware)\
**Replies:** 0\
**Last updated:** [March 16, 2006, 5:06pm UTC](https://www.ruby-forum.com/t/re-rewriterule-with-scgi-on-apache-2/102883 "2006-03-16T17:06:40Z")

</div>

Hi, Thanks for your message about Ruby on Rails. I think you’ll find that you’re likely to get a quicker and more accurate response to your message on the Ruby on Rails specific mailing list. For subscription and po…

---

## [Re: RewriteRule with scgi on Apache 2](https://www.ruby-forum.com/t/re-rewriterule-with-scgi-on-apache-2/55044)

<div class="topic-metadata">

**Author:** [@sgware](https://www.ruby-forum.com/u/sgware)\
**Replies:** 0\
**Last updated:** [March 16, 2006, 5:06pm UTC](https://www.ruby-forum.com/t/re-rewriterule-with-scgi-on-apache-2/55044 "2006-03-16T17:06:40Z")

</div>

Hi, Thanks for your message about Ruby on Rails. I think you’ll find that you’re likely to get a quicker and more accurate response to your message on the Ruby on Rails specific mailing list. For subscription and po…

---

## [CURL-alike library for ruby](https://www.ruby-forum.com/t/curl-alike-library-for-ruby/54968)

<div class="topic-metadata">

**Author:** [@Yaroslav\_T](https://www.ruby-forum.com/u/Yaroslav_T)\
**Replies:** 7\
**Last updated:** [March 16, 2006, 4:50pm UTC](https://www.ruby-forum.com/t/curl-alike-library-for-ruby/54968 "2006-03-16T16:50:57Z")

</div>

Hello. Can you please advice me any CURL-alike library for ruby? I’ve found two projects named rCurl or alike but neither extension has been compiled on my FreeBSD box. Therefore looking for an alternative. Any infor…

---

## [Variant types](https://www.ruby-forum.com/t/variant-types/82551)

<div class="topic-metadata">

**Author:** [@Stefan\_Haflidason](https://www.ruby-forum.com/u/Stefan_Haflidason)\
**Replies:** 4\
**Last updated:** [March 16, 2006, 4:47pm UTC](https://www.ruby-forum.com/t/variant-types/82551 "2006-03-16T16:47:51Z")

</div>

My languages lecturer is a fan of a feature called ‘variant’ in a model language he defined. The variant declaration is used to specify that a variable may be of one or another type. When he stated that no languages w…

---

## [RewriteRule with scgi on Apache 2](https://www.ruby-forum.com/t/rewriterule-with-scgi-on-apache-2/54870)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 2\
**Last updated:** [March 16, 2006, 4:44pm UTC](https://www.ruby-forum.com/t/rewriterule-with-scgi-on-apache-2/54870 "2006-03-16T16:44:24Z")

</div>

Hi. I want to direct all access of “/” to index.html I tried many things, but it doesn’t work. Like: RewriteRule ^$ index.html \[QSA\] RewriteRule ^/$ /var/www/public/index.html \[R\] If I access /index.html, everythin…

---

## [Re: add to words syntaxes](https://www.ruby-forum.com/t/re-add-to-words-syntaxes/82552)

<div class="topic-metadata">

**Author:** [@dani](https://www.ruby-forum.com/u/dani)\
**Replies:** 1\
**Last updated:** [March 16, 2006, 4:18pm UTC](https://www.ruby-forum.com/t/re-add-to-words-syntaxes/82552 "2006-03-16T16:18:21Z")

</div>

Hi again! Thanks for ALL your support, especially for Carlos. now it works fine! Only one more question and I leave this theme. What is if I in my TXT file the parameters repeat self? So I mean: 0608A; Teszt Kft; …

---

## [Re: add to words syntaxes](https://www.ruby-forum.com/t/re-add-to-words-syntaxes/82586)

<div class="topic-metadata">

**Author:** [@dani](https://www.ruby-forum.com/u/dani)\
**Replies:** 0\
**Last updated:** [March 16, 2006, 3:53pm UTC](https://www.ruby-forum.com/t/re-add-to-words-syntaxes/82586 "2006-03-16T15:53:38Z")

</div>

Hi again! Thanks for ALL your support, especially for Carlos. now it works fine! Only one more question and I leave this theme. What is if I in my TXT file the parameters repeat self? So I mean: 0608A; Teszt Kft; …

---

## [Constraint Processing (#70)](https://www.ruby-forum.com/t/constraint-processing-70/54628)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 7\
**Last updated:** [March 16, 2006, 3:42pm UTC](https://www.ruby-forum.com/t/constraint-processing-70/54628 "2006-03-16T15:42:00Z")

</div>

The three rules of Ruby Q.: Please do not post any solutions or spoiler discussion for this quiz until 48 hours have passed from the time on this message. Support Ruby Q. by submitting ideas as often as you can: …

---

## [RubyCorner a meeting place for the Ruby blogging community](https://www.ruby-forum.com/t/rubycorner-a-meeting-place-for-the-ruby-blogging-community/54706)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 7\
**Last updated:** [March 16, 2006, 3:30pm UTC](https://www.ruby-forum.com/t/rubycorner-a-meeting-place-for-the-ruby-blogging-community/54706 "2006-03-16T15:30:03Z")

</div>

After spending some of our spare time (a software developer having “spare time”? really?) writing unit and functional tests, RubyCorner is going live: A blog directory focused on the Ruby language and any other relate…

---

## [Constraint Processing (#70)](https://www.ruby-forum.com/t/constraint-processing-70/82555)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 0\
**Last updated:** [March 16, 2006, 3:07pm UTC](https://www.ruby-forum.com/t/constraint-processing-70/82555 "2006-03-16T15:07:15Z")

</div>

Constraint processing is a form of declarative programming which, in the words of Dave B., “…allows you to find solutions to mathematical problems by stating the problem rather than the steps to the solution.” As i…

---

## [RecordNotFound](https://www.ruby-forum.com/t/recordnotfound/82547)

<div class="topic-metadata">

**Author:** [@Franz\_Bettag](https://www.ruby-forum.com/u/Franz_Bettag)\
**Replies:** 3\
**Last updated:** [March 16, 2006, 3:01pm UTC](https://www.ruby-forum.com/t/recordnotfound/82547 "2006-03-16T15:01:01Z")

</div>

Hi guys, uhm how to fetch out a RecordNotFound? i have this here @new\_ipv4 = Ipv4addr.find(IPAddr.new(params\[:ipv4addr\]\[:id\]).to\_i) but at this line it gives an error RecordNotFound. But this is okay! But now i want…

---

## [Compile Ruby 1.8.4 on HP-UX 11](https://www.ruby-forum.com/t/compile-ruby-1-8-4-on-hp-ux-11/54989)

<div class="topic-metadata">

**Author:** [@McDevittS\_Chris](https://www.ruby-forum.com/u/McDevittS_Chris)\
**Replies:** 1\
**Last updated:** [March 16, 2006, 2:30pm UTC](https://www.ruby-forum.com/t/compile-ruby-1-8-4-on-hp-ux-11/54989 "2006-03-16T14:30:07Z")

</div>

When I run make (we are using cc not gcc) I receive: make cc -Ae -s -O +Z -DRUBY\_EXPORT -DYYMAXDEPTH=300 -I. -I. -c parse.c cc: “parse.y”, line 4439: warning 527: Integral value implicitly converted to pointer in …

---

## [TupleSpace#read\_all blocks?](https://www.ruby-forum.com/t/tuplespace-read-all-blocks/82549)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [March 16, 2006, 1:50pm UTC](https://www.ruby-forum.com/t/tuplespace-read-all-blocks/82549 "2006-03-16T13:50:12Z")

</div>

Hi, all ! Have anyone encountered blocking behaviour of read\_all method in TupleSpace when space is empty ? Best Regards Ace

---

## [RubyCocoa crash](https://www.ruby-forum.com/t/rubycocoa-crash/55017)

<div class="topic-metadata">

**Author:** [@Alwyn](https://www.ruby-forum.com/u/Alwyn)\
**Replies:** 1\
**Last updated:** [March 16, 2006, 12:53pm UTC](https://www.ruby-forum.com/t/rubycocoa-crash/55017 "2006-03-16T12:53:15Z")

</div>

I am trying to implement a delegate method of NSSpeechSynthesizer as follows: def speechSynthesizer\_didFinishSpeaking(sender, finished) but when the method is invoked, a crash occurs in objc\_msgSend. If I delete the …

---

## [Re: add to words syntaxes](https://www.ruby-forum.com/t/re-add-to-words-syntaxes/82504)

<div class="topic-metadata">

**Author:** [@dani](https://www.ruby-forum.com/u/dani)\
**Replies:** 1\
**Last updated:** [March 16, 2006, 12:28pm UTC](https://www.ruby-forum.com/t/re-add-to-words-syntaxes/82504 "2006-03-16T12:28:13Z")

</div>

If I understand you well the script should look like this: outfile = ARGV.shift lines = ARGF.readlines nyomtatvanyazonosito, nev, adoszam, adoazonosito, tol, ig = lines.slice!(0,6).map {|w| w.chomp.chomp(’;’) } firs…

---

## [Ruby for Java Folks?](https://www.ruby-forum.com/t/ruby-for-java-folks/54971)

<div class="topic-metadata">

**Author:** [@soderic](https://www.ruby-forum.com/u/soderic)\
**Replies:** 11\
**Last updated:** [March 16, 2006, 12:06pm UTC](https://www.ruby-forum.com/t/ruby-for-java-folks/54971 "2006-03-16T12:06:48Z")

</div>

I’ve agreed to give a brief talk on Ruby for the Pikes Peak Java Developers Group. I’ve done stuff like this before at work, but that was for a crowd coming from a background of shell scripting and Perl. I’m not much…

---

## [SOAP4R: problems in wsdl2ruby generator](https://www.ruby-forum.com/t/soap4r-problems-in-wsdl2ruby-generator/82503)

<div class="topic-metadata">

**Author:** [@victor123789](https://www.ruby-forum.com/u/victor123789)\
**Replies:** 0\
**Last updated:** [March 16, 2006, 11:31am UTC](https://www.ruby-forum.com/t/soap4r-problems-in-wsdl2ruby-generator/82503 "2006-03-16T11:31:22Z")

</div>

Hello (an sorry for previous incomplete messages). I’ve tried to use wsdl2ruby generator with this particular wsdl: http://gzip.rsdn.ru/ws/forum.asmx?WSDL wsdl2ruby --wsdl rsdn.wsdl --classdef --force But unforunat…

---

## [Re: add to words syntaxes](https://www.ruby-forum.com/t/re-add-to-words-syntaxes/82502)

<div class="topic-metadata">

**Author:** [@dani](https://www.ruby-forum.com/u/dani)\
**Replies:** 1\
**Last updated:** [March 16, 2006, 10:49am UTC](https://www.ruby-forum.com/t/re-add-to-words-syntaxes/82502 "2006-03-16T10:49:11Z")

</div>

Thanks, for the answers, but didnt worked. I try to clear my problem, Here is the input: 0608A; Teszt Kft; 33445566222; ; 20060101; 20060131; 0A0001C002A 33445566222 0A0001C007A Teszt kft this text repeat himse…

---

## [Returning p array](https://www.ruby-forum.com/t/returning-p-array/54972)

<div class="topic-metadata">

**Author:** [@rtilley](https://www.ruby-forum.com/u/rtilley)\
**Replies:** 5\
**Last updated:** [March 16, 2006, 10:30am UTC](https://www.ruby-forum.com/t/returning-p-array/54972 "2006-03-16T10:30:14Z")

</div>

I like the way in which p prints out the contents of an array. It’s easy for me to read. Is it possible to make a method return p array? Or is there a better way to do this? def info #create an array p array return…

---

## [Add to words syntaxes](https://www.ruby-forum.com/t/add-to-words-syntaxes/82470)

<div class="topic-metadata">

**Author:** [@dani](https://www.ruby-forum.com/u/dani)\
**Replies:** 1\
**Last updated:** [March 16, 2006, 9:44am UTC](https://www.ruby-forum.com/t/add-to-words-syntaxes/82470 "2006-03-16T09:44:06Z")

</div>

Hi! Still have a question: I have a txt file with words, seperated with semicolon or linebreaks. looks like this: Teszt Kft 33445566222 ; 20060101 20060131 0A0001C002A 33445566222 0A0001C007A Teszt kft I need t…

---

## [Re: add to words syntaxes](https://www.ruby-forum.com/t/re-add-to-words-syntaxes/82500)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [March 16, 2006, 9:34am UTC](https://www.ruby-forum.com/t/re-add-to-words-syntaxes/82500 "2006-03-16T09:34:53Z")

</div>

Actually, you may have problems with the tab searching, because these get converted to several blanks in a row when read by IO.readlines - but that can be corrected by letting a column separator be at least n blanks …

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

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