# Top

**URL:** https://www.ruby-forum.com/top.md?page=1983

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

---

## [Fixing Watir Problem, was Re: Watir is acting retarded](https://www.ruby-forum.com/t/fixing-watir-problem-was-re-watir-is-acting-retarded/159588)

<div class="topic-metadata">

**Author:** [@runxc](https://www.ruby-forum.com/u/runxc)\
**Replies:** 2\
**Last updated:** [February 12, 2009, 8:05am UTC](https://www.ruby-forum.com/t/fixing-watir-problem-was-re-watir-is-acting-retarded/159588 "2009-02-12T08:05:20Z")

</div>

Daniel, Should we release a new Watir gem installer that requires these updated files? Bret

---

## [Mongrel Socket read error on .pages (iWork) file](https://www.ruby-forum.com/t/mongrel-socket-read-error-on-pages-iwork-file/159808)

<div class="topic-metadata">

**Author:** [@Jeremy\_Olliver](https://www.ruby-forum.com/u/Jeremy_Olliver)\
**Replies:** 2\
**Last updated:** [February 9, 2009, 2:54am UTC](https://www.ruby-forum.com/t/mongrel-socket-read-error-on-pages-iwork-file/159808 "2009-02-09T02:54:24Z")

</div>

Hi, I’m having a quite peculiar problem that hopefully someone can help me with. I use attachment\_fu for image uploads, and found that uploads with any .pages files don’t work. The error I’m getting for my developmen…

---

## [Rename sessions table in rails](https://www.ruby-forum.com/t/rename-sessions-table-in-rails/158993)

<div class="topic-metadata">

**Author:** [@on9west](https://www.ruby-forum.com/u/on9west)\
**Replies:** 2\
**Last updated:** [January 31, 2009, 12:50pm UTC](https://www.ruby-forum.com/t/rename-sessions-table-in-rails/158993 "2009-01-31T12:50:59Z")

</div>

Dear all I want to rename my sessions table to xxx\_sessions in database. What should I do in my rails project so that it will point to the new table name (i.e. xxx\_sessions) Thank you very much Valentino

---

## [Swig error during compiling](https://www.ruby-forum.com/t/swig-error-during-compiling/157597)

<div class="topic-metadata">

**Author:** [@feldmaus](https://www.ruby-forum.com/u/feldmaus)\
**Replies:** 2\
**Last updated:** [January 14, 2009, 11:56am UTC](https://www.ruby-forum.com/t/swig-error-during-compiling/157597 "2009-01-14T11:56:41Z")

</div>

Hi All, i think there is an misconfiguration in the swig package ?! I did the following: /configure --enable-gr-wxgui --enable-grc --enable-usrp --enable-gr-usrp –enable-gr-audio-alsa --enable-gnuradio-examples --ena…

---

## [\[BUG:trunk\] Encoding in which Array#pack returns when a string-related format and a byte seq format](https://www.ruby-forum.com/t/bug-trunk-encoding-in-which-array-pack-returns-when-a-string-related-format-and-a-byte-seq-format/155057)

<div class="topic-metadata">

**Author:** [@Yugui\_SYuki\_S.S](https://www.ruby-forum.com/u/Yugui_SYuki_S.S)\
**Replies:** 2\
**Last updated:** [December 27, 2008, 5:21am UTC](https://www.ruby-forum.com/t/bug-trunk-encoding-in-which-array-pack-returns-when-a-string-related-format-and-a-byte-seq-format/155057 "2008-12-27T05:21:38Z")

</div>

Yuguie$B$G$9!#e(B e$B8=:\_!"\<!$N$h$&$K$J$j$^$9!#e(B \["\\u3042", 1\].pack(“A\*s!”).encoding #=\> #Encoding:UTF-8 e$B$7$+$7$J$,$i!“e(Bs!e$B$,@8@.$9$k$N$OK\<AE\*$K%P%$%J%j$G$”$C$F!"$3$N\>l9ge(B rb\_enc\_compatible(UTF-8, ASCII-8B…

---

## [Code Review: NoComplexCall](https://www.ruby-forum.com/t/code-review-nocomplexcall/154074)

<div class="topic-metadata">

**Author:** [@grujildo](https://www.ruby-forum.com/u/grujildo)\
**Replies:** 2\
**Last updated:** [November 25, 2008, 4:22am UTC](https://www.ruby-forum.com/t/code-review-nocomplexcall/154074 "2008-11-25T04:22:18Z")

</div>

tfpt review “/shelveset:NoComplexCall;REDMOND\\tomat” Outer DLR Change: Tweaks outer layer DynamicSiteHelpers to publish delegate type factory method (this class will hopefully go away as soon as LambdaExpression provi…

---

## [Auth\_basic & avoiding duplication in conf file](https://www.ruby-forum.com/t/auth-basic-avoiding-duplication-in-conf-file/153175)

<div class="topic-metadata">

**Author:** [@anr](https://www.ruby-forum.com/u/anr)\
**Replies:** 2\
**Last updated:** [November 13, 2008, 2:13pm UTC](https://www.ruby-forum.com/t/auth-basic-avoiding-duplication-in-conf-file/153175 "2008-11-13T14:13:07Z")

</div>

Hi, Sorry if this is a faq. I started using v0.6.32 and I have to turn on / off auth based on the url. I have something like: server { auth\_basic … location ~\* jpeg { } location /home/return { auth\_basic off }…

---

## [Give a user the option to stay logged in](https://www.ruby-forum.com/t/give-a-user-the-option-to-stay-logged-in/152491)

<div class="topic-metadata">

**Author:** [@johnk](https://www.ruby-forum.com/u/johnk)\
**Replies:** 2\
**Last updated:** [November 4, 2008, 5:57pm UTC](https://www.ruby-forum.com/t/give-a-user-the-option-to-stay-logged-in/152491 "2008-11-04T17:57:08Z")

</div>

I thought this would be so straight forward but it does not seem to be. I want to give users the option when they login to check a checkbox that will leave them logged in but I can not seem to figure out how. On top o…

---

## [TestClass1 \< TestClass0 \< Test::Unit::TestCase](https://www.ruby-forum.com/t/testclass1-testclass0-test-testcase/150324)

<div class="topic-metadata">

**Author:** [@emilsverige](https://www.ruby-forum.com/u/emilsverige)\
**Replies:** 2\
**Last updated:** [October 7, 2008, 11:37am UTC](https://www.ruby-forum.com/t/testclass1-testclass0-test-testcase/150324 "2008-10-07T11:37:28Z")

</div>

Hi, I have a test class, TestClass0, with a few test methods. I specify some hard coded values in the setup method: test\_class0.rb require ‘test/unit’ class TestClass0 \< Test::Unit::TestCase def setup @server\_url …

---

## [RSpec sundry questions](https://www.ruby-forum.com/t/rspec-sundry-questions/147537)

<div class="topic-metadata">

**Author:** [@greg](https://www.ruby-forum.com/u/greg)\
**Replies:** 2\
**Last updated:** [September 10, 2008, 8:12am UTC](https://www.ruby-forum.com/t/rspec-sundry-questions/147537 "2008-09-10T08:12:08Z")

</div>

Hi, Q1 - Can I assume that the core testing framework (e.g. rails unit testing versus RSpec) is a kind of separate issue to whether you using mocking or not? i.e. you could use Mocha with either the rails unit test f…

---

## [Strange YAML Problem: Sometimes can't open file](https://www.ruby-forum.com/t/strange-yaml-problem-sometimes-cant-open-file/144140)

<div class="topic-metadata">

**Author:** [@joep](https://www.ruby-forum.com/u/joep)\
**Replies:** 2\
**Last updated:** [July 25, 2008, 8:49pm UTC](https://www.ruby-forum.com/t/strange-yaml-problem-sometimes-cant-open-file/144140 "2008-07-25T20:49:45Z")

</div>

This is a weird problem that only happens once in a while. Most of the time there is no problem, but occassionally, I cannot open a file. Here’s some of the code. ############# ACTION 1 ######################### req…

---

## [Recommended install method on OSX?](https://www.ruby-forum.com/t/recommended-install-method-on-osx/143302)

<div class="topic-metadata">

**Author:** [@helix\_tp](https://www.ruby-forum.com/u/helix_tp)\
**Replies:** 2\
**Last updated:** [July 17, 2008, 11:58am UTC](https://www.ruby-forum.com/t/recommended-install-method-on-osx/143302 "2008-07-17T11:58:30Z")

</div>

So what is the recommended Rails install method on OSX? http://wiki.rubyonrails.org/rails/pages/HowtoInstallOnOSXTiger seems surprisingly convoluted (and maybe even out of date?), given that it usually seems like most…

---

## [No such file to load -- RMagick2](https://www.ruby-forum.com/t/no-such-file-to-load-rmagick2/141200)

<div class="topic-metadata">

**Author:** [@kyo](https://www.ruby-forum.com/u/kyo)\
**Replies:** 2\
**Last updated:** [June 27, 2008, 5:02pm UTC](https://www.ruby-forum.com/t/no-such-file-to-load-rmagick2/141200 "2008-06-27T17:02:55Z")

</div>

\-bonjour , je veux utilisé le pluging ‘gruff’ qui sert a crée des graphes , je l’ai installé avec la commande : gem install gruff -ce pluging besoin RMagick pour afficher les graphes , je l’ai installé lui aussi avec…

---

## [Light box recommendations](https://www.ruby-forum.com/t/light-box-recommendations/141590)

<div class="topic-metadata">

**Author:** [@ss\_1982](https://www.ruby-forum.com/u/ss_1982)\
**Replies:** 2\
**Last updated:** [June 27, 2008, 2:41pm UTC](https://www.ruby-forum.com/t/light-box-recommendations/141590 "2008-06-27T14:41:05Z")

</div>

Hi, I need to make use of a light box lib on a new site, this needs to be capable of showing complete pages / actions along with maps if possible. Has anyone got any recommendations on which one to use Cheers, Scott …

---

## [VM::InstructionSequence.load $B$N%P%0(B](https://www.ruby-forum.com/t/vm-instructionsequence-load-b-n-p-0-b/141195)

<div class="topic-metadata">

**Author:** [@Shumpei\_A](https://www.ruby-forum.com/u/Shumpei_A)\
**Replies:** 2\
**Last updated:** [June 23, 2008, 4:48pm UTC](https://www.ruby-forum.com/t/vm-instructionsequence-load-b-n-p-0-b/141195 "2008-06-23T16:48:09Z")

</div>

e$B@V0f$H8@$$$^$9!%e(B e$B:rF|$Ne(BRejectRejectKaigie$B$GH/I=$7$?e(BVM::InstructionSequence.loade$B$N%P%0$rJse(B e$B9p$7$^$9!%e(B $ruby\_custom -v ruby 1.9.0 (2008-06-23 revision 16869) \[x86\_64-linux\] loade$B$GDj5A$7…

---

## [Update my gems this morning ;(](https://www.ruby-forum.com/t/update-my-gems-this-morning/140083)

<div class="topic-metadata">

**Author:** [@ernsttanaka](https://www.ruby-forum.com/u/ernsttanaka)\
**Replies:** 2\
**Last updated:** [June 10, 2008, 8:14pm UTC](https://www.ruby-forum.com/t/update-my-gems-this-morning/140083 "2008-06-10T20:14:20Z")

</div>

I seem to regret updating my gems this morning. I had to, because I was running behind in fxruby. But now I am getting the following error. Tried to roll back some update but no result so far. I can do with a hand. I…

---

## [How to model relationship for a model to itself](https://www.ruby-forum.com/t/how-to-model-relationship-for-a-model-to-itself/135450)

<div class="topic-metadata">

**Author:** [@Rockydd](https://www.ruby-forum.com/u/Rockydd)\
**Replies:** 2\
**Last updated:** [April 22, 2008, 1:39pm UTC](https://www.ruby-forum.com/t/how-to-model-relationship-for-a-model-to-itself/135450 "2008-04-22T13:39:52Z")

</div>

I have a model named User, and the mysql table is users. Every user can have many friends. of course, every friend is a user. So, it’s a relationship from user to user. how to model this? User has\_and\_belongs\_to\_may …

---

## [Why this code is working](https://www.ruby-forum.com/t/why-this-code-is-working/135178)

<div class="topic-metadata">

**Author:** [@nekapoor](https://www.ruby-forum.com/u/nekapoor)\
**Replies:** 2\
**Last updated:** [April 18, 2008, 10:13pm UTC](https://www.ruby-forum.com/t/why-this-code-is-working/135178 "2008-04-18T22:13:54Z")

</div>

this code is a simplified version of the code I saw in Rails. def speak(\*types,&block) block.call end I can understand why this code is working speak(23) { puts ‘hi’ } why this code is working ?. This code should fa…

---

## [ARGF.dup.rewind do not rewind lineno](https://www.ruby-forum.com/t/argf-dup-rewind-do-not-rewind-lineno/135077)

<div class="topic-metadata">

**Author:** [@Yusuke\_ENDOH](https://www.ruby-forum.com/u/Yusuke_ENDOH)\
**Replies:** 2\
**Last updated:** [April 17, 2008, 6:26pm UTC](https://www.ruby-forum.com/t/argf-dup-rewind-do-not-rewind-lineno/135077 "2008-04-17T18:26:45Z")

</div>

e$B1sF#$H?=$7$^$9!#e(B ARGF.dup e$B$re(B rewind e$B$9$k$He(B lineno e$B$,$\*$+$7$/$J$j$^$9!#e(B $ cat foobarbaz.txt foo bar baz $ ./ruby -ve ’ a = ARGF.dup p \[a.gets, a.lineno\] p \[a.gets, a.lineno\] a.rewind p \[…

---

## [Possible to synchronize two input streams?](https://www.ruby-forum.com/t/possible-to-synchronize-two-input-streams/134847)

<div class="topic-metadata">

**Author:** [@george\_n](https://www.ruby-forum.com/u/george_n)\
**Replies:** 2\
**Last updated:** [April 15, 2008, 7:29pm UTC](https://www.ruby-forum.com/t/possible-to-synchronize-two-input-streams/134847 "2008-04-15T19:29:06Z")

</div>

Hi all, What I need is the output of GNU Radio’s FIR filter (gr.fir\_filter\_ccc) to be synchronized with the raw samples from the USRP into the input of a new block. Like this, where the input to the new block ensures…

---

## [Busco tutoriales de aplicaciones completas en ROR](https://www.ruby-forum.com/t/busco-tutoriales-de-aplicaciones-completas-en-ror/134008)

<div class="topic-metadata">

**Author:** [@jsn1](https://www.ruby-forum.com/u/jsn1)\
**Replies:** 2\
**Last updated:** [April 7, 2008, 8:17am UTC](https://www.ruby-forum.com/t/busco-tutoriales-de-aplicaciones-completas-en-ror/134008 "2008-04-07T08:17:24Z")

</div>

Hola a todos estoy buscando alguna pagina que explique como crear aplicaciones en RoR, de momento solo he encontrado estas dos: I am looking for tutorials that explain how to develop a whole application in RoR. I hav…

---

## [Creating graph using Ruport](https://www.ruby-forum.com/t/creating-graph-using-ruport/130323)

<div class="topic-metadata">

**Author:** [@seena](https://www.ruby-forum.com/u/seena)\
**Replies:** 2\
**Last updated:** [February 27, 2008, 1:32pm UTC](https://www.ruby-forum.com/t/creating-graph-using-ruport/130323 "2008-02-27T13:32:39Z")

</div>

hi, cud anybody plz tell how to veiw or show a graph that has been created using the ruport gem… i have created the graph n report refering “http://ruportbook.com/introducing\_ruport.html”. but at the end it is not s…

---

## [How to access application\_helper methods in mailer templates](https://www.ruby-forum.com/t/how-to-access-application-helper-methods-in-mailer-templates/126073)

<div class="topic-metadata">

**Author:** [@anildigital](https://www.ruby-forum.com/u/anildigital)\
**Replies:** 2\
**Last updated:** [January 15, 2008, 5:57pm UTC](https://www.ruby-forum.com/t/how-to-access-application-helper-methods-in-mailer-templates/126073 "2008-01-15T17:57:39Z")

</div>

Hi, I am not able to access application\_helper methods in my mailer templates. It throws out error saying method not defined. I was assuming all templates under views should have access to application helper methods…

---

## [\[ANN\] ActsAsTaggableOn Released](https://www.ruby-forum.com/t/ann-actsastaggableon-released/122092)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [December 30, 2007, 10:20pm UTC](https://www.ruby-forum.com/t/ann-actsastaggableon-released/122092 "2007-12-30T22:20:44Z")

</div>

ActsAsTaggableOn, or ‘acts as taggable on steroids on steroids’, is now available to the public! == Overview == This plugin is heavily based on ActsAsTaggableOnSteroids by Jonathan Viney. While basic tagging functio…

---

## [Ruby-it\] Campagna anti-if](https://www.ruby-forum.com/t/ruby-it-campagna-anti-if/122201)

<div class="topic-metadata">

**Author:** [@esox\_ch](https://www.ruby-forum.com/u/esox_ch)\
**Replies:** 2\
**Last updated:** [December 26, 2007, 1:14pm UTC](https://www.ruby-forum.com/t/ruby-it-campagna-anti-if/122201 "2007-12-26T13:14:13Z")

</div>

Ops… mail partita anzi tempo, dicevo… Unitevi anche voi alla campagna http://www.metodiagili.it/campagna-anti-if.html Francesco Cirillo, oltre ad essere ampiamente documentato online, è un amico, e non vede l’ora di…

---

## [Failed install of 2.0.2](https://www.ruby-forum.com/t/failed-install-of-2-0-2/123461)

<div class="topic-metadata">

**Author:** [@explainer](https://www.ruby-forum.com/u/explainer)\
**Replies:** 2\
**Last updated:** [December 18, 2007, 12:56am UTC](https://www.ruby-forum.com/t/failed-install-of-2-0-2/123461 "2007-12-18T00:56:49Z")

</div>

I attempted to install ruby 1.8.6, gem 0.9.5, and rails 2.0.2. The first two steps went fine, but I get the following: xxx@yyy:~/rubygems-0.9.5$ sudo gem install rails -y INFO: gem install -y is now default and will…

---

## [Old file\_column Causing Load Errors?](https://www.ruby-forum.com/t/old-file-column-causing-load-errors/120731)

<div class="topic-metadata">

**Author:** [@hunter\_h](https://www.ruby-forum.com/u/hunter_h)\
**Replies:** 2\
**Last updated:** [November 20, 2007, 10:12pm UTC](https://www.ruby-forum.com/t/old-file-column-causing-load-errors/120731 "2007-11-20T22:12:04Z")

</div>

Hello, I have an older production site that uses the file\_column 0.3.1 plug- in for file attachment management. When I try to run it under a new version of Mongrel, any model that includes file\_column shows this in t…

---

## [Stripping the extensions off of a file](https://www.ruby-forum.com/t/stripping-the-extensions-off-of-a-file/120357)

<div class="topic-metadata">

**Author:** [@pood](https://www.ruby-forum.com/u/pood)\
**Replies:** 2\
**Last updated:** [November 16, 2007, 5:45am UTC](https://www.ruby-forum.com/t/stripping-the-extensions-off-of-a-file/120357 "2007-11-16T05:45:24Z")

</div>

I’m building a program that goes thru a file structure, and it will find the longest filename and biggest files. Find.find(directory) do |f| file\_sizes\[File.size(f)\]= f if File.file?(f) file\_stripper = File.basename…

---

## [Hpricot & mechanize fail to parse page after redirect](https://www.ruby-forum.com/t/hpricot-mechanize-fail-to-parse-page-after-redirect/120213)

<div class="topic-metadata">

**Author:** [@ehudros](https://www.ruby-forum.com/u/ehudros)\
**Replies:** 2\
**Last updated:** [November 14, 2007, 10:18pm UTC](https://www.ruby-forum.com/t/hpricot-mechanize-fail-to-parse-page-after-redirect/120213 "2007-11-14T22:18:42Z")

</div>

Hi everyone, My quest with mechanize/Hpricot continues :slight\_smile: Something extremely strange happened today - some simple working code broke down, and i can’t figure out why. I am trying to access a piratebay.or…

---

## [Rflickr search tool display total returned photos](https://www.ruby-forum.com/t/rflickr-search-tool-display-total-returned-photos/118901)

<div class="topic-metadata">

**Author:** [@rocketgofaster](https://www.ruby-forum.com/u/rocketgofaster)\
**Replies:** 2\
**Last updated:** [November 2, 2007, 1:15am UTC](https://www.ruby-forum.com/t/rflickr-search-tool-display-total-returned-photos/118901 "2007-11-02T01:15:30Z")

</div>

I’m attempting to display the total images returned in a search using the rflickr plugin. Let me know if i should provide more info, i think i’ve included the relevant code. I’m a total newbie and could use a hand. T…

---

## [Responds\_to\_parent, dÃ©pÃ´t down](https://www.ruby-forum.com/t/responds-to-parent-da-pa-t-down/118724)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [October 30, 2007, 2:53pm UTC](https://www.ruby-forum.com/t/responds-to-parent-da-pa-t-down/118724 "2007-10-30T14:53:31Z")

</div>

Bonjour, Je suis Ã la recherche du plugin responds\_to\_parent, le dÃ©pÃ´t svn est actuellement down (http://sean.treadway.info/svn/plugins/responds\_to\_parent/). Quelqu’un aurait-il ce plugin Ã m’envoyer ? Merci par…

---

## [Anybody tell me about net/ftp protocol?](https://www.ruby-forum.com/t/anybody-tell-me-about-net-ftp-protocol/117676)

<div class="topic-metadata">

**Author:** [@vellingiri](https://www.ruby-forum.com/u/vellingiri)\
**Replies:** 2\
**Last updated:** [October 19, 2007, 9:40am UTC](https://www.ruby-forum.com/t/anybody-tell-me-about-net-ftp-protocol/117676 "2007-10-19T09:40:42Z")

</div>

Dear Friends, I am having the source code like this. require ‘net/ftp’ ftp = Net::FTP::new(“ftp.ruby-lang.org”) ftp.login(“anonymous”, “removed\_email\_address@domain.invalid”) ftp.chdir(“/pub/ruby”) tgz = ftp.list(“…

---

## [Enkodertags and radiant 0.6.1?](https://www.ruby-forum.com/t/enkodertags-and-radiant-0-6-1/114432)

<div class="topic-metadata">

**Author:** [@japj](https://www.ruby-forum.com/u/japj)\
**Replies:** 2\
**Last updated:** [September 25, 2007, 11:04pm UTC](https://www.ruby-forum.com/t/enkodertags-and-radiant-0-6-1/114432 "2007-09-25T23:04:16Z")

</div>

Hello, Anyone got the enkodertags extension working with radiant 0.6.1? If I add the enkodertags current trunk to my radiant 0.6.1 installation nothing works anymore (i.e. I can not view any page anymore). Is it me o…

---

## [Page layouts / general site layout with RoR](https://www.ruby-forum.com/t/page-layouts-general-site-layout-with-ror/82523)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [September 25, 2007, 10:32pm UTC](https://www.ruby-forum.com/t/page-layouts-general-site-layout-with-ror/82523 "2007-09-25T22:32:42Z")

</div>

Hi, I’m pretty new to the whole RoR thing (coming from a .NET background) and have gone through some tutorials both in books and online. In the tutorials the controllers / views make sense. But suppose I have a layou…

---

## [Error when tryinh to install cached\_model](https://www.ruby-forum.com/t/error-when-tryinh-to-install-cached-model/82421)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 2\
**Last updated:** [September 25, 2007, 10:30pm UTC](https://www.ruby-forum.com/t/error-when-tryinh-to-install-cached-model/82421 "2007-09-25T22:30:21Z")

</div>

hi to all when i m trying to install cached\_model using gem so i m getting error like below $sudo gem install cached\_model --include-dependencies Illegal instruction (core dumped)

---

## [Defining a Method](https://www.ruby-forum.com/t/defining-a-method/114838)

<div class="topic-metadata">

**Author:** [@wintermute](https://www.ruby-forum.com/u/wintermute)\
**Replies:** 2\
**Last updated:** [September 18, 2007, 12:22am UTC](https://www.ruby-forum.com/t/defining-a-method/114838 "2007-09-18T00:22:54Z")

</div>

Hi, I am new to Ruby from basic. I am having a hard time getting my head around the “def”. I have an Entry widget for a number, a label widget for the answer, button widget to multiply entry by 2 and place in Label. …

---

## [YAML Library not recognized](https://www.ruby-forum.com/t/yaml-library-not-recognized/114441)

<div class="topic-metadata">

**Author:** [@simianstyle](https://www.ruby-forum.com/u/simianstyle)\
**Replies:** 2\
**Last updated:** [September 12, 2007, 9:48pm UTC](https://www.ruby-forum.com/t/yaml-library-not-recognized/114441 "2007-09-12T21:48:14Z")

</div>

My setup: ruby 1.8.6 (2007-03-13 patchlevel 0) \[i686-linux\] So i compiled ruby from source and installed it on my system (ubuntu 7.04), and was happy for a while. However i fired up irb one day and ran the following …

---

## [Habtm - controlling with checkboxes UI](https://www.ruby-forum.com/t/habtm-controlling-with-checkboxes-ui/113660)

<div class="topic-metadata">

**Author:** [@sbeam](https://www.ruby-forum.com/u/sbeam)\
**Replies:** 2\
**Last updated:** [September 4, 2007, 2:58pm UTC](https://www.ruby-forum.com/t/habtm-controlling-with-checkboxes-ui/113660 "2007-09-04T14:58:10Z")

</div>

I need to put an array of checkboxes on a user profile editing form to allow users to self-select which neighborhoods they are interested in from the available neighborhoods. But I can’t figure out the syntax to put i…

---

## [Problem scaffolding using "namespace"](https://www.ruby-forum.com/t/problem-scaffolding-using-namespace/113503)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [August 31, 2007, 9:16pm UTC](https://www.ruby-forum.com/t/problem-scaffolding-using-namespace/113503 "2007-08-31T21:16:32Z")

</div>

Hello, When executing “ruby script/generate model Namespace::Person” the script create (as expected) “./models/namespace/person.rb”. Also a migration file is created. When executing “ruby script/generate controller N…

---

## [Relaciones entre tablas y acceso a ellas](https://www.ruby-forum.com/t/relaciones-entre-tablas-y-acceso-a-ellas/111430)

<div class="topic-metadata">

**Author:** [@il-marco](https://www.ruby-forum.com/u/il-marco)\
**Replies:** 2\
**Last updated:** [August 7, 2007, 10:40am UTC](https://www.ruby-forum.com/t/relaciones-entre-tablas-y-acceso-a-ellas/111430 "2007-08-07T10:40:51Z")

</div>

Buenas, tengo una pequeÃ±a duda respecto a como acceder a una tabla de mi base de datos; os explico un poco: Tengo la tabla products y la tabla products\_descriptions. Esta Ãºltima tiene el campo products\_name que es a…

---

## [Variable-Length arg list and blocks](https://www.ruby-forum.com/t/variable-length-arg-list-and-blocks/110985)

<div class="topic-metadata">

**Author:** [@dizzyone](https://www.ruby-forum.com/u/dizzyone)\
**Replies:** 2\
**Last updated:** [August 1, 2007, 7:05pm UTC](https://www.ruby-forum.com/t/variable-length-arg-list-and-blocks/110985 "2007-08-01T19:05:07Z")

</div>

Hello, a short question: is it possible to use variable length argument lists and binding associated blocks to a method parameter at the same time? And if it is possible, how can I do it? I trief the following with R…

---

## [YARV howto](https://www.ruby-forum.com/t/yarv-howto/110230)

<div class="topic-metadata">

**Author:** [@abhijith\_gopal](https://www.ruby-forum.com/u/abhijith_gopal)\
**Replies:** 2\
**Last updated:** [July 25, 2007, 7:17am UTC](https://www.ruby-forum.com/t/yarv-howto/110230 "2007-07-25T07:17:18Z")

</div>

Hi all, I just built yarv from source on my gentoo box. I have no clue on how to use it(or run it!). Can somebody please help me out with this. – Regards Abhijith

---

## [Understanding :through =\> ... :source =\>](https://www.ruby-forum.com/t/understanding-through-source/109703)

<div class="topic-metadata">

**Author:** [@sshefer](https://www.ruby-forum.com/u/sshefer)\
**Replies:** 2\
**Last updated:** [July 18, 2007, 4:45pm UTC](https://www.ruby-forum.com/t/understanding-through-source/109703 "2007-07-18T16:45:15Z")

</div>

I’m trying to understand :through and :source with the following example. I have a User, Job, and Interview models. An interview has an interviewer and interviewee. I would like to use the User model for this and I…

---

## [D'oh!](https://www.ruby-forum.com/t/doh/108459)

<div class="topic-metadata">

**Author:** [@Eric\_ASCottrell](https://www.ruby-forum.com/u/Eric_ASCottrell)\
**Replies:** 2\
**Last updated:** [July 4, 2007, 5:33am UTC](https://www.ruby-forum.com/t/doh/108459 "2007-07-04T05:33:07Z")

</div>

Hello, Well my first commit and I fell flat on my face. I committed the source directory for the Mode Select code but not the actual source files. This is fixed. I am using the kdesvn tool which seems to work good o…

---

## [Assign greater of two ints?](https://www.ruby-forum.com/t/assign-greater-of-two-ints/107544)

<div class="topic-metadata">

**Author:** [@eclubb](https://www.ruby-forum.com/u/eclubb)\
**Replies:** 2\
**Last updated:** [June 22, 2007, 10:15pm UTC](https://www.ruby-forum.com/t/assign-greater-of-two-ints/107544 "2007-06-22T22:15:45Z")

</div>

Is there a more concise way to write this? a = 5 b = “test123” if a \< b.length a = b.length end –or– a = b.length if a \< b.length Earle

---

## [If/else statement](https://www.ruby-forum.com/t/if-else-statement/107417)

<div class="topic-metadata">

**Author:** [@gearoid](https://www.ruby-forum.com/u/gearoid)\
**Replies:** 2\
**Last updated:** [June 21, 2007, 5:43pm UTC](https://www.ruby-forum.com/t/if-else-statement/107417 "2007-06-21T17:43:54Z")

</div>

Hi - Having a problem with one of my if/else statements… def back if @session redirect\_to :action =\> ‘list’ \<-- List can only be accessed if you’re logged in. else redirect\_to :action =\> ‘reference’ \<-- Reference …

---

## [C programms with RoR](https://www.ruby-forum.com/t/c-programms-with-ror/107331)

<div class="topic-metadata">

**Author:** [@Franz\_RSSSSmy](https://www.ruby-forum.com/u/Franz_RSSSSmy)\
**Replies:** 2\
**Last updated:** [June 20, 2007, 5:34pm UTC](https://www.ruby-forum.com/t/c-programms-with-ror/107331 "2007-06-20T17:34:14Z")

</div>

Hello, I had develop in an other project some C programms and now I’m developing a website in RoR. I want to have a page where I can upload files and with those files, execute my C programms (I made a bash script to …

---

## [USRP overruns](https://www.ruby-forum.com/t/usrp-overruns/105072)

<div class="topic-metadata">

**Author:** [@jgeggatt](https://www.ruby-forum.com/u/jgeggatt)\
**Replies:** 2\
**Last updated:** [May 26, 2007, 11:09pm UTC](https://www.ruby-forum.com/t/usrp-overruns/105072 "2007-05-26T23:09:49Z")

</div>

Hi all We’re doing some data collection with the USRP and a basic rx daughter board but we’re getting those pesky u0 characters appearing. I know that these are generated in response to buffer overruns on the FPGA …

---

## [Simple rails url question](https://www.ruby-forum.com/t/simple-rails-url-question/104161)

<div class="topic-metadata">

**Author:** [@pingu](https://www.ruby-forum.com/u/pingu)\
**Replies:** 2\
**Last updated:** [May 15, 2007, 9:11am UTC](https://www.ruby-forum.com/t/simple-rails-url-question/104161 "2007-05-15T09:11:27Z")

</div>

Hi, how do i have my rails index page at www.thing.com, and not www.thing.com/controller. Is this done in the routes.rb? if so, how? Thanks

---

## [Text Field Value unless?](https://www.ruby-forum.com/t/text-field-value-unless/103412)

<div class="topic-metadata">

**Author:** [@jamal](https://www.ruby-forum.com/u/jamal)\
**Replies:** 2\
**Last updated:** [May 5, 2007, 7:44pm UTC](https://www.ruby-forum.com/t/text-field-value-unless/103412 "2007-05-05T19:44:30Z")

</div>

Hello, Why is this not working :frowning: \<%= text\_field\_tag :post\_header, ‘’, :name =\> ‘post\[header\]’, :value @post.header if @post.header %\> I want the default value to be @post.header if it’s not nil :slight\_smile…

[Previous page](https://www.ruby-forum.com/top.md?page=1982&per_page=50)

[Next page](https://www.ruby-forum.com/top.md?page=1984&per_page=50)
