# Top

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

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

---

## [IO.popen exit the program when it failed](https://www.ruby-forum.com/t/io-popen-exit-the-program-when-it-failed/192255)

<div class="topic-metadata">

**Author:** [@arachnd](https://www.ruby-forum.com/u/arachnd)\
**Replies:** 2\
**Last updated:** [July 27, 2010, 1:59pm UTC](https://www.ruby-forum.com/t/io-popen-exit-the-program-when-it-failed/192255 "2010-07-27T13:59:03Z")

</div>

i have been trying to recieved the output of a command with IO.popen and it works great but if i place a unknown command to the system the ruby program terminates. def comando ( inputcmd ) f = IO.popen(inputcmd) out…

---

## [Hash example](https://www.ruby-forum.com/t/hash-example/191412)

<div class="topic-metadata">

**Author:** [@marlon](https://www.ruby-forum.com/u/marlon)\
**Replies:** 2\
**Last updated:** [July 12, 2010, 12:10pm UTC](https://www.ruby-forum.com/t/hash-example/191412 "2010-07-12T12:10:23Z")

</div>

Hello. First of all, I’m reading this ebook, http://www.ruby-doc.org/docs/ProgrammingRuby/ is it a good book? instSection\[‘oboe’\] Â» “woodwind” instSection\[‘cello’\] Â» “string” instSection\[‘bassoon’\] Â» nil A…

---

## [Hijacking \`super'](https://www.ruby-forum.com/t/hijacking-super/187822)

<div class="topic-metadata">

**Author:** [@bluetrust](https://www.ruby-forum.com/u/bluetrust)\
**Replies:** 2\
**Last updated:** [April 30, 2010, 2:18am UTC](https://www.ruby-forum.com/t/hijacking-super/187822 "2010-04-30T02:18:50Z")

</div>

I know the following is probably impossible, but I just thought I’d ping the list to see if any adventurous meta programmer knows of a way to essentially change the binding of a block. Here’s essentially what I’m tryi…

---

## [How to start an edge rails app](https://www.ruby-forum.com/t/how-to-start-an-edge-rails-app/187643)

<div class="topic-metadata">

**Author:** [@joe](https://www.ruby-forum.com/u/joe)\
**Replies:** 2\
**Last updated:** [April 28, 2010, 1:07am UTC](https://www.ruby-forum.com/t/how-to-start-an-edge-rails-app/187643 "2010-04-28T01:07:38Z")

</div>

I want to check out an issue in edge rails. I’ve never used edge before and am having a lot of trouble getting it up and running. Following modified instructions from $ mkdir -p app/vendor $ cd app $ git clone git…

---

## [\[Bug #3136\] reuse of singleton method definition causes SEGV](https://www.ruby-forum.com/t/bug-3136-reuse-of-singleton-method-definition-causes-segv/186798)

<div class="topic-metadata">

**Author:** [@Yusuke\_E](https://www.ruby-forum.com/u/Yusuke_E)\
**Replies:** 2\
**Last updated:** [April 17, 2010, 5:46am UTC](https://www.ruby-forum.com/t/bug-3136-reuse-of-singleton-method-definition-causes-segv/186798 "2010-04-17T05:46:51Z")

</div>

Bug #3136: reuse of singleton method definition causes SEGV http://redmine.ruby-lang.org/issues/show/3136 e$B5/I\<\<Te(B: Yusuke E. e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal Target version: 1.9.2 ruby -v: ruby 1.9.…

---

## [Benchmark tx and rx help](https://www.ruby-forum.com/t/benchmark-tx-and-rx-help/186455)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 2\
**Last updated:** [April 13, 2010, 7:36pm UTC](https://www.ruby-forum.com/t/benchmark-tx-and-rx-help/186455 "2010-04-13T19:36:47Z")

</div>

Hello… I’m trying to make dbpsk modulation using benchmark tx/rx(two usrp1s(RFX 1800) and two computers).I set costas alpha to 0.05 and gain mu to 0.001 as advised here.When i run the codes i got ok=True for all packa…

---

## [FasterCSV question: skip headers](https://www.ruby-forum.com/t/fastercsv-question-skip-headers/180152)

<div class="topic-metadata">

**Author:** [@thiel](https://www.ruby-forum.com/u/thiel)\
**Replies:** 2\
**Last updated:** [December 13, 2009, 5:44pm UTC](https://www.ruby-forum.com/t/fastercsv-question-skip-headers/180152 "2009-12-13T17:44:49Z")

</div>

Hi , I am refactoring a class that’s using Fastercsv to read a csv file. How do I skip the first (header) line. Now I’m using a helpvariable skipHEADER but I want a more elegant solution . Kind regards, Thiel

---

## [Using the MIMO port for serial comm. to a Virtex5 board](https://www.ruby-forum.com/t/using-the-mimo-port-for-serial-comm-to-a-virtex5-board/179439)

<div class="topic-metadata">

**Author:** [@Charles\_I](https://www.ruby-forum.com/u/Charles_I)\
**Replies:** 2\
**Last updated:** [November 26, 2009, 10:49pm UTC](https://www.ruby-forum.com/t/using-the-mimo-port-for-serial-comm-to-a-virtex5-board/179439 "2009-11-26T22:49:43Z")

</div>

Hello, I’m looking to use the MIMO port to send serial data to a Virtex5 board and am trying to get an idea of how to set up the USRP2 to achieve this. I was wondering how a simple loopback test might be achieved. …

---

## ["Pannello di controllo del log" per debug](https://www.ruby-forum.com/t/pannello-di-controllo-del-log-per-debug/179501)

<div class="topic-metadata">

**Author:** [@pezzuya](https://www.ruby-forum.com/u/pezzuya)\
**Replies:** 2\
**Last updated:** [November 26, 2009, 1:13pm UTC](https://www.ruby-forum.com/t/pannello-di-controllo-del-log-per-debug/179501 "2009-11-26T13:13:14Z")

</div>

Ciao a tutti. Stavo cercando un modo semplice per dire al mio log inidipendentemente da dove ci si trovi (vista, modello, controller) di abilitare o disabilitare la scrittura nel log per la sezione (vista, modello, c…

---

## [Have\_same\_elements\_of proposal](https://www.ruby-forum.com/t/have-same-elements-of-proposal/178091)

<div class="topic-metadata">

**Author:** [@dracko](https://www.ruby-forum.com/u/dracko)\
**Replies:** 2\
**Last updated:** [October 29, 2009, 3:05am UTC](https://www.ruby-forum.com/t/have-same-elements-of-proposal/178091 "2009-10-29T03:05:01Z")

</div>

How about having this matcher along the default available matchers? require ‘set’ Spec::Matchers.define :have\_same\_elements\_of do |expected| match do |actual| expected.to\_set == actual.to\_set end end Example: \[1,…

---

## [Odd make install error - OSX](https://www.ruby-forum.com/t/odd-make-install-error-osx/171524)

<div class="topic-metadata">

**Author:** [@makki](https://www.ruby-forum.com/u/makki)\
**Replies:** 2\
**Last updated:** [July 4, 2009, 3:12am UTC](https://www.ruby-forum.com/t/odd-make-install-error-osx/171524 "2009-07-04T03:12:31Z")

</div>

I’ve been talking off the board about this, but it’s gotten to a point where I have no idea what’s going wrong and wanted to see if anyone else had some input. I’m trying to get a USRP1 functional, and am using the c…

---

## [Nginx1-\>nginx2-\>apache and wrong IP address in nginx2 access log](https://www.ruby-forum.com/t/nginx1-nginx2-apache-and-wrong-ip-address-in-nginx2-access-log/169682)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 2\
**Last updated:** [June 7, 2009, 6:24pm UTC](https://www.ruby-forum.com/t/nginx1-nginx2-apache-and-wrong-ip-address-in-nginx2-access-log/169682 "2009-06-07T18:24:24Z")

</div>

Hello, I have a machine 1 with nginx as a proxy before apache, and machine2 with nginx as a proxy before apache. I am moving websites from machine1 to machine2. Because DNS still points to machine1, I need to pass tr…

---

## [Generating and authenticating by API keys](https://www.ruby-forum.com/t/generating-and-authenticating-by-api-keys/169154)

<div class="topic-metadata">

**Author:** [@chunkyslink](https://www.ruby-forum.com/u/chunkyslink)\
**Replies:** 2\
**Last updated:** [May 31, 2009, 7:27pm UTC](https://www.ruby-forum.com/t/generating-and-authenticating-by-api-keys/169154 "2009-05-31T19:27:24Z")

</div>

I’m trying to get my head round offering up an API for a RESTful app; is it just a matter of; adding an api\_key column to the resource on which incoming requests will made (the app has a User model but I think the A…

---

## [Problem accessing variables in module](https://www.ruby-forum.com/t/problem-accessing-variables-in-module/167129)

<div class="topic-metadata">

**Author:** [@tbcox23](https://www.ruby-forum.com/u/tbcox23)\
**Replies:** 2\
**Last updated:** [May 5, 2009, 4:04pm UTC](https://www.ruby-forum.com/t/problem-accessing-variables-in-module/167129 "2009-05-05T16:04:17Z")

</div>

I keep getting blocked trying to do a very simple thing - I want to “include” - in the sense of causing a mere insertion of text - some variables and methods, residing in an external file, in my main code. I just want…

---

## [Driving me nuts! - Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)](https://www.ruby-forum.com/t/driving-me-nuts-cant-connect-to-local-mysql-server-through-socket-tmp-mysql-sock-2/166753)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [April 29, 2009, 11:49am UTC](https://www.ruby-forum.com/t/driving-me-nuts-cant-connect-to-local-mysql-server-through-socket-tmp-mysql-sock-2/166753 "2009-04-29T11:49:27Z")

</div>

I had to put a new HD in, and now I’m reinstalling everything, and can’t get mysql to fully work. I can’t remember how I fixed it. I’ve searched everywhere online and can’t find anything. when I try to use the \>mysql …

---

## [Wizard like data entry](https://www.ruby-forum.com/t/wizard-like-data-entry/164807)

<div class="topic-metadata">

**Author:** [@indu](https://www.ruby-forum.com/u/indu)\
**Replies:** 2\
**Last updated:** [April 6, 2009, 9:32am UTC](https://www.ruby-forum.com/t/wizard-like-data-entry/164807 "2009-04-06T09:32:13Z")

</div>

Hello after having searched the forums I couldn’t find any solution to this problem: I want to implement a multi step form across models. Step 1: Enter requested username/ password/image etc - User model Step 2: Ente…

---

## [Class versus instance method - how?](https://www.ruby-forum.com/t/class-versus-instance-method-how/164600)

<div class="topic-metadata">

**Author:** [@bruparel](https://www.ruby-forum.com/u/bruparel)\
**Replies:** 2\
**Last updated:** [April 2, 2009, 11:50pm UTC](https://www.ruby-forum.com/t/class-versus-instance-method-how/164600 "2009-04-02T23:50:38Z")

</div>

I have a file call authentication.rb in rails root/lib directory which has the following method defined amongst others: module Authentication … def authorize\_admin? logged\_in? && has\_role?(‘admin’) end … end Thi…

---

## [Problem writing a text file](https://www.ruby-forum.com/t/problem-writing-a-text-file/163701)

<div class="topic-metadata">

**Author:** [@RichardOnRails](https://www.ruby-forum.com/u/RichardOnRails)\
**Replies:** 2\
**Last updated:** [March 24, 2009, 6:25am UTC](https://www.ruby-forum.com/t/problem-writing-a-text-file/163701 "2009-03-24T06:25:43Z")

</div>

Hi, I imported some test data from Excel as a CSV file. I massaged that data and tried to write it out as CSV text file. However, no file was created on the file system. I’ve put out a snippet of the relevant code an…

---

## [Hover effect for column data field](https://www.ruby-forum.com/t/hover-effect-for-column-data-field/162355)

<div class="topic-metadata">

**Author:** [@salil](https://www.ruby-forum.com/u/salil)\
**Replies:** 2\
**Last updated:** [March 9, 2009, 1:21pm UTC](https://www.ruby-forum.com/t/hover-effect-for-column-data-field/162355 "2009-03-09T13:21:52Z")

</div>

Hi All i have a table column field which is of 50 characters i am showing only 10 out of it so that my layout remain proper. what i want is when i hover on that field it should show me all the content of that field A…

---

## [Nginx and mongrel, more info](https://www.ruby-forum.com/t/nginx-and-mongrel-more-info/158525)

<div class="topic-metadata">

**Author:** [@raimon](https://www.ruby-forum.com/u/raimon)\
**Replies:** 2\
**Last updated:** [January 26, 2009, 8:46am UTC](https://www.ruby-forum.com/t/nginx-and-mongrel-more-info/158525 "2009-01-26T08:46:44Z")

</div>

Hello, Where I can find more info on how to nginx and mongrel boot when the machine reboots ? In os x, please. In Linux world I found some scripts but they don’t work and don’t go in the same place as OS X. thanks, …

---

## [Load C extension in Mac OS X linked a a dylib](https://www.ruby-forum.com/t/load-c-extension-in-mac-os-x-linked-a-a-dylib/154546)

<div class="topic-metadata">

**Author:** [@elathan](https://www.ruby-forum.com/u/elathan)\
**Replies:** 2\
**Last updated:** [January 20, 2009, 10:11am UTC](https://www.ruby-forum.com/t/load-c-extension-in-mac-os-x-linked-a-a-dylib/154546 "2009-01-20T10:11:41Z")

</div>

Hello! I noticed that Ruby is refusing to load an extension in Mac OS X (Leopard, 2.5.5), unless it is a bundle. I used dtruss to confirm that Ruby is looking only for .rb and .bundle files to load. Is there a specia…

---

## [GivenScenario in cucumber](https://www.ruby-forum.com/t/givenscenario-in-cucumber/157847)

<div class="topic-metadata">

**Author:** [@bartz](https://www.ruby-forum.com/u/bartz)\
**Replies:** 2\
**Last updated:** [January 16, 2009, 2:47pm UTC](https://www.ruby-forum.com/t/givenscenario-in-cucumber/157847 "2009-01-16T14:47:20Z")

</div>

Hey all, I’ve read http://rspec.lighthouseapp.com/projects/16211-cucumber/tickets/3-%20%20create-givenscenario-dependency-accross-feature-file , and would like to share another idea about this. I’m building a blog at…

---

## [Using irb console in Swing app though BSF?](https://www.ruby-forum.com/t/using-irb-console-in-swing-app-though-bsf/150002)

<div class="topic-metadata">

**Author:** [@stepheneb](https://www.ruby-forum.com/u/stepheneb)\
**Replies:** 2\
**Last updated:** [October 2, 2008, 10:47am UTC](https://www.ruby-forum.com/t/using-irb-console-in-swing-app-though-bsf/150002 "2008-10-02T10:47:19Z")

</div>

I’d like to run an irb console via bsf in a swing application – has anyone done this? The code here: org/jruby/demo/IRBConsole.java directly accesses jruby from Java without bsf. I’m hoping to adapt it. I have jruby…

---

## [EOF in TreeTop?](https://www.ruby-forum.com/t/eof-in-treetop/129227)

<div class="topic-metadata">

**Author:** [@Day](https://www.ruby-forum.com/u/Day)\
**Replies:** 2\
**Last updated:** [February 15, 2008, 11:51pm UTC](https://www.ruby-forum.com/t/eof-in-treetop/129227 "2008-02-15T23:51:50Z")

</div>

I ran into a problem writing my praser: there’s a comment in the last line of my file and I’d defined comments to be ‘\*’ followed by anything that’s not a newline followed by a newline. The final comment isn’t followe…

---

## [ANN: Sequel 0.5 Released](https://www.ruby-forum.com/t/ann-sequel-0-5-released/124563)

<div class="topic-metadata">

**Author:** [@ciconia](https://www.ruby-forum.com/u/ciconia)\
**Replies:** 2\
**Last updated:** [January 1, 2008, 8:26pm UTC](https://www.ruby-forum.com/t/ann-sequel-0-5-released/124563 "2008-01-01T20:26:48Z")

</div>

Sequel version 0.5 has just been released. Sequel is a lightweight database access and ORM library for Ruby. Sequel provides thread safety, connection pooling and a simple and expressive API for constructing database …

---

## [3rdRail](https://www.ruby-forum.com/t/3rdrail/122293)

<div class="topic-metadata">

**Author:** [@fbm](https://www.ruby-forum.com/u/fbm)\
**Replies:** 2\
**Last updated:** [December 6, 2007, 11:52am UTC](https://www.ruby-forum.com/t/3rdrail/122293 "2007-12-06T11:52:29Z")

</div>

Bonjour à tous, Je viens de tomber par hasard sur ça : http://www.codegear.com/products/3rdrail Est-ce que quelqu’un utilise cet outils pour développer en Rails? Cordialement, fbm

---

## [Havin problem with set the flag in loop](https://www.ruby-forum.com/t/havin-problem-with-set-the-flag-in-loop/117358)

<div class="topic-metadata">

**Author:** [@vidyagayathri](https://www.ruby-forum.com/u/vidyagayathri)\
**Replies:** 2\
**Last updated:** [October 16, 2007, 12:49pm UTC](https://www.ruby-forum.com/t/havin-problem-with-set-the-flag-in-loop/117358 "2007-10-16T12:49:51Z")

</div>

Hi all, I am having problem with array while setting the flag, actaully when i get the array size should be all 44 other wise it should come to flag 0, now my array counts are 42 42 44, so it shows the flag = 0, but …

---

## [I cannot seem to find a simple way to install eruby on a cen](https://www.ruby-forum.com/t/i-cannot-seem-to-find-a-simple-way-to-install-eruby-on-a-cen/114380)

<div class="topic-metadata">

**Author:** [@Xeno\_C](https://www.ruby-forum.com/u/Xeno_C)\
**Replies:** 2\
**Last updated:** [September 12, 2007, 4:47am UTC](https://www.ruby-forum.com/t/i-cannot-seem-to-find-a-simple-way-to-install-eruby-on-a-cen/114380 "2007-09-12T04:47:00Z")

</div>

My box has a 2.6.9-55.0.6.EL kernel, but Centos only wants to give me a 1.8.1 ruby, and yum doesn’t see an eruby. Yum did get an erb, but it looks to me like that is old hat. Can I just treat the erb as eruby and pu…

---

## [Costanti in RAILS](https://www.ruby-forum.com/t/costanti-in-rails/113674)

<div class="topic-metadata">

**Author:** [@stratboy](https://www.ruby-forum.com/u/stratboy)\
**Replies:** 2\
**Last updated:** [September 5, 2007, 11:18am UTC](https://www.ruby-forum.com/t/costanti-in-rails/113674 "2007-09-05T11:18:39Z")

</div>

Salve a tutti! C’Ã¨ qualcuno che sa dirmi dove posso trovare un elenco completo delle costanti di RAILS (tipo RAILS\_ENV)? Grazie!

---

## [ActiveRecord.find :group option](https://www.ruby-forum.com/t/activerecord-find-group-option/110170)

<div class="topic-metadata">

**Author:** [@dnstevenson](https://www.ruby-forum.com/u/dnstevenson)\
**Replies:** 2\
**Last updated:** [July 23, 2007, 10:51pm UTC](https://www.ruby-forum.com/t/activerecord-find-group-option/110170 "2007-07-23T22:51:10Z")

</div>

I have a very simple find call… @assets = Asset.find(:all, :group =\> ‘asset\_type\_id’, :order =\> “name”) I have 3 Asset objects in my database, all of which have asset\_type\_id equal to 1. Why does this query only retu…

---

## [Re: elencare i dischi di sistema](https://www.ruby-forum.com/t/re-elencare-i-dischi-di-sistema/107059)

<div class="topic-metadata">

**Author:** [@biospank](https://www.ruby-forum.com/u/biospank)\
**Replies:** 2\
**Last updated:** [June 17, 2007, 3:25pm UTC](https://www.ruby-forum.com/t/re-elencare-i-dischi-di-sistema/107059 "2007-06-17T15:25:19Z")

</div>

grazie ragazzi, siete MITICI!! era proprio quello di cui avevo bisogno, il passo successivo sarebbe stato distinguere i dischi removibili da quelli fissi… non mi resta che fare delle prove :slight\_smile: p.s. …che c…

---

## [Gem install directory error](https://www.ruby-forum.com/t/gem-install-directory-error/105302)

<div class="topic-metadata">

**Author:** [@cpjolicoeur](https://www.ruby-forum.com/u/cpjolicoeur)\
**Replies:** 2\
**Last updated:** [May 28, 2007, 5:47pm UTC](https://www.ruby-forum.com/t/gem-install-directory-error/105302 "2007-05-28T17:47:13Z")

</div>

I updated my ruby/rails stack this morning on my mac os x 10.4.9 machine. Now I’m having a problem intalling gems. I get the following error while trying to install a gem ERROR: While executing gem … (ArgumentErro…

---

## [Newbie question - self.var OR @var in ActiveRecord](https://www.ruby-forum.com/t/newbie-question-self-var-or-var-in-activerecord/104617)

<div class="topic-metadata">

**Author:** [@itsnotvalid](https://www.ruby-forum.com/u/itsnotvalid)\
**Replies:** 2\
**Last updated:** [May 20, 2007, 9:22pm UTC](https://www.ruby-forum.com/t/newbie-question-self-var-or-var-in-activerecord/104617 "2007-05-20T21:22:12Z")

</div>

I started learning rails by following the agile way. It comes to the point where it puzzles me. class Puzzle \< ActiveRecord::Base virtual var, not existing in the database def var @var end def var=(foo) @var= foo …

---

## [Question about converting Python to Ruby - getopt](https://www.ruby-forum.com/t/question-about-converting-python-to-ruby-getopt/104152)

<div class="topic-metadata">

**Author:** [@mschwab](https://www.ruby-forum.com/u/mschwab)\
**Replies:** 2\
**Last updated:** [May 14, 2007, 8:40pm UTC](https://www.ruby-forum.com/t/question-about-converting-python-to-ruby-getopt/104152 "2007-05-14T20:40:48Z")

</div>

Is there an equivalent in Ruby of Python’s getopt (it parses command-line arguments)? Mike S.

---

## [RubyInline 3.6.3 Released](https://www.ruby-forum.com/t/rubyinline-3-6-3-released/93134)

<div class="topic-metadata">

**Author:** [@aguynamedryan](https://www.ruby-forum.com/u/aguynamedryan)\
**Replies:** 2\
**Last updated:** [April 28, 2007, 5:36am UTC](https://www.ruby-forum.com/t/rubyinline-3-6-3-released/93134 "2007-04-28T05:36:39Z")

</div>

RubyInline version 3.6.3 has been released! http://rubyforge.org/projects/rubyinline/ rubyinline | software projects | by ryan davis Ruby Inline is an analog to Perl’s Inline::C. Out of the box, it allows you to embe…

---

## [Help: How to write tests for a sms service interface](https://www.ruby-forum.com/t/help-how-to-write-tests-for-a-sms-service-interface/61588)

<div class="topic-metadata">

**Author:** [@gkogler](https://www.ruby-forum.com/u/gkogler)\
**Replies:** 2\
**Last updated:** [February 19, 2007, 11:23pm UTC](https://www.ruby-forum.com/t/help-how-to-write-tests-for-a-sms-service-interface/61588 "2007-02-19T23:23:06Z")

</div>

I’m working on a website that integrates sms services. When someone sends an sms to my service number, the sms provider posts an xml doc to an url specified by me. I have implemented the processing method like this: …

---

## [Using a variable to invoke a custom method within autocomple](https://www.ruby-forum.com/t/using-a-variable-to-invoke-a-custom-method-within-autocomple/85755)

<div class="topic-metadata">

**Author:** [@Dimmerswitch](https://www.ruby-forum.com/u/Dimmerswitch)\
**Replies:** 2\
**Last updated:** [February 16, 2007, 2:57pm UTC](https://www.ruby-forum.com/t/using-a-variable-to-invoke-a-custom-method-within-autocomple/85755 "2007-02-16T14:57:46Z")

</div>

I’m implementing a version of the autocompletion script found at http://ricardo.pacheco.name/blog/articles/2006/07/26/using- autocomplete-with-belongs\_to-fields and have run into a stumbling block. The issue involves…

---

## [How to do conditional operator?](https://www.ruby-forum.com/t/how-to-do-conditional-operator/85760)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [February 16, 2007, 3:53am UTC](https://www.ruby-forum.com/t/how-to-do-conditional-operator/85760 "2007-02-16T03:53:43Z")

</div>

If an operator is just syntactic sugar for a message send, how do I coose an operator based on an expression evaluation? For example: if a s += “text” else s = “text” end I should be able to write it something li…

---

## [How to get value of constants in Excel using WIN32OLE](https://www.ruby-forum.com/t/how-to-get-value-of-constants-in-excel-using-win32ole/77874)

<div class="topic-metadata">

**Author:** [@alex-osu3](https://www.ruby-forum.com/u/alex-osu3)\
**Replies:** 2\
**Last updated:** [December 1, 2006, 3:43pm UTC](https://www.ruby-forum.com/t/how-to-get-value-of-constants-in-excel-using-win32ole/77874 "2006-12-01T15:43:21Z")

</div>

Hi all, I have a script to store all Excel constants in an array. ButI can’t return the value for each constant. By using “inspect” method I think all the constants in the array are turn into a string. The only chance…

---

## [Making Ajax rerender in div](https://www.ruby-forum.com/t/making-ajax-rerender-in-div/75693)

<div class="topic-metadata">

**Author:** [@ike](https://www.ruby-forum.com/u/ike)\
**Replies:** 2\
**Last updated:** [November 12, 2006, 3:28pm UTC](https://www.ruby-forum.com/t/making-ajax-rerender-in-div/75693 "2006-11-12T15:28:12Z")

</div>

In Onlamp there is a wonderful introduction to Ajax under Rails in “Ajax on Rails,” ( Radar – O’Reilly ). I have taken the Author, Curt H.’ code from the example, and in looking at other examples, a common seeming pr…

---

## [Send\_file problem](https://www.ruby-forum.com/t/send-file-problem/72608)

<div class="topic-metadata">

**Author:** [@Lionel\_B](https://www.ruby-forum.com/u/Lionel_B)\
**Replies:** 2\
**Last updated:** [October 18, 2006, 10:44am UTC](https://www.ruby-forum.com/t/send-file-problem/72608 "2006-10-18T10:44:06Z")

</div>

I’m using Rails 1.1.6 and have a weird problem with send\_file both with Webrick and Mongrel\_rails. Even though the documentation explicitely tells that the file is streamed to the client, webrick or mongrel process si…

---

## [PDF::Writer memory error](https://www.ruby-forum.com/t/pdf-writer-memory-error/100218)

<div class="topic-metadata">

**Author:** [@john\_sikorski](https://www.ruby-forum.com/u/john_sikorski)\
**Replies:** 2\
**Last updated:** [July 29, 2006, 3:07am UTC](https://www.ruby-forum.com/t/pdf-writer-memory-error/100218 "2006-07-29T03:07:52Z")

</div>

I’m trying to use PDF::Writer to generate a PDF version of a phone list but I’m having out of memory problems. The document is formatted for 2 column output. I originally added all names (about 500) to a single fou…

---

## [Rails debugging - a (slightly) better approach?](https://www.ruby-forum.com/t/rails-debugging-a-slightly-better-approach/97150)

<div class="topic-metadata">

**Author:** [@fangheuschrecke](https://www.ruby-forum.com/u/fangheuschrecke)\
**Replies:** 2\
**Last updated:** [July 8, 2006, 10:57pm UTC](https://www.ruby-forum.com/t/rails-debugging-a-slightly-better-approach/97150 "2006-07-08T22:57:51Z")

</div>

Hi all, First up hello everybody, I’m new to this forum. I am also new to Ruby and Rails. One thing that struck me as very inconvenient for someone just learning the Rails ropes is that (apart from Arachno and Komod…

---

## [Validating a non-object attribute in a form via checkbox?](https://www.ruby-forum.com/t/validating-a-non-object-attribute-in-a-form-via-checkbox/63101)

<div class="topic-metadata">

**Author:** [@indigoi](https://www.ruby-forum.com/u/indigoi)\
**Replies:** 2\
**Last updated:** [June 14, 2006, 1:06am UTC](https://www.ruby-forum.com/t/validating-a-non-object-attribute-in-a-form-via-checkbox/63101 "2006-06-14T01:06:58Z")

</div>

Hi there A user can place an ad with various attributes via a form; however, I want the user to check a box signifying that they’ve read the terms and conditions for use of the site. So the ‘terms’ is not an attribu…

---

## [Problema wiki (scusa luca)](https://www.ruby-forum.com/t/problema-wiki-scusa-luca/63005)

<div class="topic-metadata">

**Author:** [@gabriele\_renzi](https://www.ruby-forum.com/u/gabriele_renzi)\
**Replies:** 2\
**Last updated:** [June 12, 2006, 3:38pm UTC](https://www.ruby-forum.com/t/problema-wiki-scusa-luca/63005 "2006-06-12T15:38:49Z")

</div>

Ciao gente, volevo aggiornare quelli che l’hanno notato (e che stanno facendo prove subdole :wink: sul simpatico bug per cui una pagina con un “.” nel titolo viene mostrata come testo. Il problema di fondo è che la p…

---

## [Display two columns using fixed width divs](https://www.ruby-forum.com/t/display-two-columns-using-fixed-width-divs/62780)

<div class="topic-metadata">

**Author:** [@Claus\_G](https://www.ruby-forum.com/u/Claus_G)\
**Replies:** 2\
**Last updated:** [June 8, 2006, 9:47pm UTC](https://www.ruby-forum.com/t/display-two-columns-using-fixed-width-divs/62780 "2006-06-08T21:47:46Z")

</div>

Hi. I want to display some related information in two columns. Originally I wanted to use frames and googling led me to http://lists.rubyonrails.org/pipermail/rails/2006-May/037972.html which suggest divs instead. I…

---

## [Page caching for urls with dots](https://www.ruby-forum.com/t/page-caching-for-urls-with-dots/62814)

<div class="topic-metadata">

**Author:** [@gabriele\_renzi](https://www.ruby-forum.com/u/gabriele_renzi)\
**Replies:** 2\
**Last updated:** [June 8, 2006, 2:15pm UTC](https://www.ruby-forum.com/t/page-caching-for-urls-with-dots/62814 "2006-06-08T14:15:27Z")

</div>

hi everyone, I have a pesky problem with page caching, sorry if it sounds dummy. Whenever I’m caching an url like /controller/argument.with.dots instead of getting a saved page like /public/controller/arguments.with…

---

## [URI parsing barfs on '^'](https://www.ruby-forum.com/t/uri-parsing-barfs-on/94547)

<div class="topic-metadata">

**Author:** [@regularfry](https://www.ruby-forum.com/u/regularfry)\
**Replies:** 2\
**Last updated:** [May 6, 2006, 1:07pm UTC](https://www.ruby-forum.com/t/uri-parsing-barfs-on/94547 "2006-05-06T13:07:42Z")

</div>

Hi there, I’ve got a URL that appears valid, but that URI.parse breaks on. I’m not sure what’s correct here. This URI parses, but is wrong: Symbol lookup from Yahoo Finance This URI doesn’t parse, and is correct: F…

---

## [File\_column with polymorphic table relationship?](https://www.ruby-forum.com/t/file-column-with-polymorphic-table-relationship/59142)

<div class="topic-metadata">

**Author:** [@Daniel\_Naab](https://www.ruby-forum.com/u/Daniel_Naab)\
**Replies:** 2\
**Last updated:** [May 3, 2006, 7:09pm UTC](https://www.ruby-forum.com/t/file-column-with-polymorphic-table-relationship/59142 "2006-05-03T19:09:53Z")

</div>

Hello, I’m just starting out with both Rails and Ruby, so I hope this isn’t too simple of a question - but I’ve been struggling to find a solution. I’m using the file\_column plugin to handle image uploads and thumbnai…

---

## [Re: Re: Rss Aggregator e Refactoring Game](https://www.ruby-forum.com/t/re-re-rss-aggregator-e-refactoring-game/94427)

<div class="topic-metadata">

**Author:** [@visitor1981](https://www.ruby-forum.com/u/visitor1981)\
**Replies:** 2\
**Last updated:** [May 3, 2006, 7:06pm UTC](https://www.ruby-forum.com/t/re-re-rss-aggregator-e-refactoring-game/94427 "2006-05-03T19:06:57Z")

</div>

ï»¿Ok, concordo, mi prudono le dita per scrivere dei test per essere piÃ¹ confidente nei refactoring e per evidenziarne altri, ma ho ripreso a lavorare (prima stavo aspettando che si liberasse il cliente) e non posso …

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

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