# Top

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

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

---

## [Ask for some experience](https://www.ruby-forum.com/t/ask-for-some-experience/47966)

<div class="topic-metadata">

**Author:** [@joe-black](https://www.ruby-forum.com/u/joe-black)\
**Replies:** 4\
**Last updated:** [November 16, 2005, 10:08am UTC](https://www.ruby-forum.com/t/ask-for-some-experience/47966 "2005-11-16T10:08:01Z")

</div>

hello everyone. any one like to share some experience about ruby string just like java: trim(), split(), or indexOf() all regards

---

## [Mysql interface](https://www.ruby-forum.com/t/mysql-interface/237246)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 5\
**Last updated:** [November 1, 2013, 4:40pm UTC](https://www.ruby-forum.com/t/mysql-interface/237246 "2013-11-01T16:40:16Z")

</div>

hello - i see this topic was partially covered in an earlier post: https://www.ruby-forum.com/topic/4411532 specifically, i am using mysql and am coming from a php environment where i learned to love PDO. the most i…

---

## [Protect a specific php file](https://www.ruby-forum.com/t/protect-a-specific-php-file/215682)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 5\
**Last updated:** [January 13, 2012, 10:52pm UTC](https://www.ruby-forum.com/t/protect-a-specific-php-file/215682 "2012-01-13T22:52:27Z")

</div>

Hello, On my server I have a php app in a subfolder of my root, so basically I’ve made the following nginx configuration : server { listen 80; server\_name www.domain.fr; root /var/www/domain.fr; acc…

---

## [\[Feature #3627\] catch$B$N%V%m%C%/$r:F\<B9T$9$k%a%=%C%I(B](https://www.ruby-forum.com/t/feature-3627-catch-b-n-v-m-c-r-f-b9t-9-k-a-c-i-b/192376)

<div class="topic-metadata">

**Author:** [@Makoto\_K](https://www.ruby-forum.com/u/Makoto_K)\
**Replies:** 5\
**Last updated:** [August 27, 2010, 6:52am UTC](https://www.ruby-forum.com/t/feature-3627-catch-b-n-v-m-c-r-f-b9t-9-k-a-c-i-b/192376 "2010-08-27T06:52:34Z")

</div>

Feature #3627: catche$B$N%V%m%C%/$r:F\<B9T$9$k%a%=%C%Ie(B http://redmine.ruby-lang.org/issues/show/3627 e$B5/I\<\<Te(B: Makoto K. e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Low e$B%+%F%4%je(B: core, Target version: 2.0 catc…

---

## [Bug in waterfall window "Time scale" GUI control](https://www.ruby-forum.com/t/bug-in-waterfall-window-time-scale-gui-control/187773)

<div class="topic-metadata">

**Author:** [@Marcus\_DSLeech](https://www.ruby-forum.com/u/Marcus_DSLeech)\
**Replies:** 5\
**Last updated:** [April 29, 2010, 7:01pm UTC](https://www.ruby-forum.com/t/bug-in-waterfall-window-time-scale-gui-control/187773 "2010-04-29T19:01:31Z")

</div>

If you try to increase the timescale beyond what can be accomplished given the window geometry and input frame rate, it provokes a floating-point divide error, near line 307 in …waterfall\_window.py My naive attempt t…

---

## [Has anybody made actionmailer work with rails 2.3.5?](https://www.ruby-forum.com/t/has-anybody-made-actionmailer-work-with-rails-2-3-5/184571)

<div class="topic-metadata">

**Author:** [@bigos](https://www.ruby-forum.com/u/bigos)\
**Replies:** 5\
**Last updated:** [March 5, 2010, 8:08pm UTC](https://www.ruby-forum.com/t/has-anybody-made-actionmailer-work-with-rails-2-3-5/184571 "2010-03-05T20:08:42Z")

</div>

Hi, I have wasted few days and I’m not getting anywhere. I was trying to follow tutorial on Rails Guides and this one: Ruby on Rails - Send Emails | Tutorialspoint . All I need is to be able to send some text, nothin…

---

## [How do I base and IF off of a Nil array object](https://www.ruby-forum.com/t/how-do-i-base-and-if-off-of-a-nil-array-object/180211)

<div class="topic-metadata">

**Author:** [@stilgar71](https://www.ruby-forum.com/u/stilgar71)\
**Replies:** 5\
**Last updated:** [December 16, 2009, 3:19pm UTC](https://www.ruby-forum.com/t/how-do-i-base-and-if-off-of-a-nil-array-object/180211 "2009-12-16T15:19:43Z")

</div>

First please excuse the crudeness of my code but I need to understand how this works. This is code in a controller looking to output to a view. I have selected all the tasks from my module based on active status. In …

---

## [Uninitialized constant XmlEngine::Logger (NameError)](https://www.ruby-forum.com/t/uninitialized-constant-xmlengine-logger-nameerror/172522)

<div class="topic-metadata">

**Author:** [@spinhoo](https://www.ruby-forum.com/u/spinhoo)\
**Replies:** 5\
**Last updated:** [July 22, 2009, 11:36pm UTC](https://www.ruby-forum.com/t/uninitialized-constant-xmlengine-logger-nameerror/172522 "2009-07-22T23:36:45Z")

</div>

Hi I am trying to include the log4r gem but the interpreter doesn’t seem to find it it keeps throwing my the following error C:\\Users\\venkat\\Documents\\Projects\\RuBravo\\RubravoCore\\lib\\XmlEngine\>ruby -d XmlEngine.rb …

---

## [Ruby on embedded](https://www.ruby-forum.com/t/ruby-on-embedded/157329)

<div class="topic-metadata">

**Author:** [@nibble70](https://www.ruby-forum.com/u/nibble70)\
**Replies:** 5\
**Last updated:** [January 12, 2009, 3:12pm UTC](https://www.ruby-forum.com/t/ruby-on-embedded/157329 "2009-01-12T15:12:06Z")

</div>

Ciao a tutti, pur lurkando la lista da parecchio tempo, raramente intervengo, ma ci tenevo a segnale alcuni post di Doug Bradbury relativamente al porting di ruby su sistema embedded (beninteso si tratta di un sistema …

---

## [What triggers "./script/autospec" to kick in? when I change my model it doesn't always retest](https://www.ruby-forum.com/t/what-triggers-script-autospec-to-kick-in-when-i-change-my-model-it-doesnt-always-retest/153085)

<div class="topic-metadata">

**Author:** [@greg](https://www.ruby-forum.com/u/greg)\
**Replies:** 5\
**Last updated:** [November 12, 2008, 3:01am UTC](https://www.ruby-forum.com/t/what-triggers-script-autospec-to-kick-in-when-i-change-my-model-it-doesnt-always-retest/153085 "2008-11-12T03:01:19Z")

</div>

Hi, Does anyone know what exactly trigger autospec to rerun tests? I ask as I have a model file that has spec tests for it, but I’ve noticed when I fix the line in the model file it’s not automatically retriggering a…

---

## [Issues after removal of rpsec plugins and gem install](https://www.ruby-forum.com/t/issues-after-removal-of-rpsec-plugins-and-gem-install/152310)

<div class="topic-metadata">

**Author:** [@chrisolsen](https://www.ruby-forum.com/u/chrisolsen)\
**Replies:** 5\
**Last updated:** [November 1, 2008, 11:38pm UTC](https://www.ruby-forum.com/t/issues-after-removal-of-rpsec-plugins-and-gem-install/152310 "2008-11-01T23:38:09Z")

</div>

autotest will no longer run my tests after I installed the rpsec gem and removed the plugins. I did install the rspec-rails gem as well. Is anyone else having this issue?

---

## [Helper functions permanently altering variables](https://www.ruby-forum.com/t/helper-functions-permanently-altering-variables/143507)

<div class="topic-metadata">

**Author:** [@jpfeifer](https://www.ruby-forum.com/u/jpfeifer)\
**Replies:** 5\
**Last updated:** [July 19, 2008, 7:10pm UTC](https://www.ruby-forum.com/t/helper-functions-permanently-altering-variables/143507 "2008-07-19T19:10:21Z")

</div>

Greetings, I’m not sure if I’m maybe not understanding the helper functions correctly, but I’m having a weird problem that seems like it shouldn’t be. I’m sanitizing some book names for url’s using my application he…

---

## [Is there a way to call include for an object instance?](https://www.ruby-forum.com/t/is-there-a-way-to-call-include-for-an-object-instance/143188)

<div class="topic-metadata">

**Author:** [@chrisolsen](https://www.ruby-forum.com/u/chrisolsen)\
**Replies:** 5\
**Last updated:** [July 16, 2008, 5:04pm UTC](https://www.ruby-forum.com/t/is-there-a-way-to-call-include-for-an-object-instance/143188 "2008-07-16T17:04:54Z")

</div>

I need to be able to create an object and, based on the param that I pass in on the class create\_for\_sport method, create an object with the proper module included. It can be seen at the bottom by the comments I made …

---

## [Does anyone have any good 'phone' validation routines?](https://www.ruby-forum.com/t/does-anyone-have-any-good-phone-validation-routines/120790)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 5\
**Last updated:** [November 20, 2007, 11:06pm UTC](https://www.ruby-forum.com/t/does-anyone-have-any-good-phone-validation-routines/120790 "2007-11-20T23:06:33Z")

</div>

I’m on the final stages of a large project and am now going through all the model validations. I’ve got many of them and am happy to share if anyone’s in need. I’d like to find a good, practical PHONE validation if an…

---

## ["empty symbol string"](https://www.ruby-forum.com/t/empty-symbol-string/117361)

<div class="topic-metadata">

**Author:** [@emili](https://www.ruby-forum.com/u/emili)\
**Replies:** 5\
**Last updated:** [October 16, 2007, 3:53pm UTC](https://www.ruby-forum.com/t/empty-symbol-string/117361 "2007-10-16T15:53:08Z")

</div>

Cuando intento generar un scaffold me aparece el mensaje “empty symbol string”, he vuelto a crear la tabla, he creado otra tabla de prueba… pero nada. Le ha pasada a alguien antes? Gracias

---

## [Test/unit inconsistencies between 1.9 and 1.8](https://www.ruby-forum.com/t/test-unit-inconsistencies-between-1-9-and-1-8/92879)

<div class="topic-metadata">

**Author:** [@adambeazley](https://www.ruby-forum.com/u/adambeazley)\
**Replies:** 5\
**Last updated:** [April 26, 2007, 12:29pm UTC](https://www.ruby-forum.com/t/test-unit-inconsistencies-between-1-9-and-1-8/92879 "2007-04-26T12:29:37Z")

</div>

Hello, We’re having problems with ruby 1.9 and test/unit. It looks like when ObjectSpace is scanned that the methods we are defining aren’t being seen. Any suggestions? Thanks, -Adam % cat 19test.rb \[~/code/plan…

---

## [A\[\] += 1 $B$G(B SEGV](https://www.ruby-forum.com/t/a-1-b-g-b-segv/87239)

<div class="topic-metadata">

**Author:** [@Hiroki\_Motoyoshi](https://www.ruby-forum.com/u/Hiroki_Motoyoshi)\
**Replies:** 5\
**Last updated:** [March 2, 2007, 2:08pm UTC](https://www.ruby-forum.com/t/a-1-b-g-b-segv/87239 "2007-03-02T14:08:21Z")

</div>

e$BK\\5H$H?=$7$^$9!#e(B e$B0J2\<$N%9%/%j%W%H$,!"e(B ruby-1.8.4e$B$G$O@5\>o$KF0$/$N$G$9$,!"e(B ruby-1.8.5e$B$G$Oe(BSEGVe$B$7$^$9!#e(B class A def initialize (v) @value = v end def \[\] return @value end def \[\]= (v) …

---

## [Bug is ruby regexp](https://www.ruby-forum.com/t/bug-is-ruby-regexp/84232)

<div class="topic-metadata">

**Author:** [@nicken](https://www.ruby-forum.com/u/nicken)\
**Replies:** 5\
**Last updated:** [February 3, 2007, 5:55am UTC](https://www.ruby-forum.com/t/bug-is-ruby-regexp/84232 "2007-02-03T05:55:59Z")

</div>

Hello, I spotted this problem in ruby’s regexp today: $ irb(main):001:0\> num = “10” =\> “10” irb(main):002:0\> if num =~ /\[9-13\]/ irb(main):003:1\> puts “hello” irb(main):004:1\> end SyntaxError: compile error (irb):…

---

## [Help me design my exception classes](https://www.ruby-forum.com/t/help-me-design-my-exception-classes/77453)

<div class="topic-metadata">

**Author:** [@JSBSRainsberger](https://www.ruby-forum.com/u/JSBSRainsberger)\
**Replies:** 5\
**Last updated:** [November 28, 2006, 4:03pm UTC](https://www.ruby-forum.com/t/help-me-design-my-exception-classes/77453 "2006-11-28T16:03:15Z")

</div>

Everyone: Being a Java programmer learning Ruby, I don’t want my Java-based prejudices about design pollute my thinking as I make the transition to being a fluent Ruby speaker. Accordingly, I’d like you to suggest to …

---

## [Rubygettext ou globalize?](https://www.ruby-forum.com/t/rubygettext-ou-globalize/72645)

<div class="topic-metadata">

**Author:** [@patcito](https://www.ruby-forum.com/u/patcito)\
**Replies:** 5\
**Last updated:** [October 18, 2006, 10:44am UTC](https://www.ruby-forum.com/t/rubygettext-ou-globalize/72645 "2006-10-18T10:44:07Z")

</div>

Salut Ã tous, J’ai besoin de traduire mon appli. AprÃ¨s avoir cherchÃ© un peu sur le net, j’en ai conclu que rubygettext et globalize sont les deux meilleurs solutions mais je ne sais pas laquelle des deux choisir. …

---

## [Multiple values for the same key in a Hash](https://www.ruby-forum.com/t/multiple-values-for-the-same-key-in-a-hash/71954)

<div class="topic-metadata">

**Author:** [@eddiewould](https://www.ruby-forum.com/u/eddiewould)\
**Replies:** 5\
**Last updated:** [October 18, 2006, 10:44am UTC](https://www.ruby-forum.com/t/multiple-values-for-the-same-key-in-a-hash/71954 "2006-10-18T10:44:06Z")

</div>

Hi. There’s got to be an easy way to do this. I simply want multiple iteams (etc, price, quantity, and name) appended to a key… There’s got to be a simple way (…right?)

---

## [Re: R: dove sono finiti i creativi?](https://www.ruby-forum.com/t/re-r-dove-sono-finiti-i-creativi/98232)

<div class="topic-metadata">

**Author:** [@esox\_ch](https://www.ruby-forum.com/u/esox_ch)\
**Replies:** 5\
**Last updated:** [July 13, 2006, 1:58pm UTC](https://www.ruby-forum.com/t/re-r-dove-sono-finiti-i-creativi/98232 "2006-07-13T13:58:06Z")

</div>

scusa ma non so come si faccia su outlook. Lo farò a mano. Inoltre: posso postare messaggi in html e non in testo come nel 1986? Mi piace usare i colori soprattutto per i pezzi di codice… jeko -----Messaggio original…

---

## [CSS Effects? (javascript?)](https://www.ruby-forum.com/t/css-effects-javascript/61569)

<div class="topic-metadata">

**Author:** [@stickstone](https://www.ruby-forum.com/u/stickstone)\
**Replies:** 5\
**Last updated:** [May 26, 2006, 10:44pm UTC](https://www.ruby-forum.com/t/css-effects-javascript/61569 "2006-05-26T22:44:51Z")

</div>

Is there a way to assign a CSS style to an element I am not currently interacting with? For instance, if I have two TD elements of a table. I click on one of them, and I want to have a style change in the other elemen…

---

## [Before I write this myself, is there already an easier way?](https://www.ruby-forum.com/t/before-i-write-this-myself-is-there-already-an-easier-way/53164)

<div class="topic-metadata">

**Author:** [@jeff](https://www.ruby-forum.com/u/jeff)\
**Replies:** 5\
**Last updated:** [January 27, 2006, 6:45pm UTC](https://www.ruby-forum.com/t/before-i-write-this-myself-is-there-already-an-easier-way/53164 "2006-01-27T18:45:53Z")

</div>

Recently I’ve wanted to be able to take the data I’ve painstakingly defined in my fixture files and slurp it up into my development database so I can play with my website (locally, in development mode) with the same d…

---

## [Catenating two Java Strings in Ruby (SOLVED)](https://www.ruby-forum.com/t/catenating-two-java-strings-in-ruby-solved/243622)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 0\
**Last updated:** [December 11, 2015, 3:50pm UTC](https://www.ruby-forum.com/t/catenating-two-java-strings-in-ruby-solved/243622 "2015-12-11T15:50:33Z")

</div>

This is a question more out of curiosity than necessity, but I think it could get me some insights in the interoperability of JRuby and Java: Say - just for the sake of discussion - that I have created on the JRuby si…

---

## [Calling SOAP based Web Services over SSL](https://www.ruby-forum.com/t/calling-soap-based-web-services-over-ssl/96277)

<div class="topic-metadata">

**Author:** [@Tom\_Healey](https://www.ruby-forum.com/u/Tom_Healey)\
**Replies:** 0\
**Last updated:** [June 27, 2006, 9:33pm UTC](https://www.ruby-forum.com/t/calling-soap-based-web-services-over-ssl/96277 "2006-06-27T21:33:45Z")

</div>

Ok, here we go. I am trying to talk to a soap web service @ the url https://rsvcstage.e2ma.net/emmaTestCalls I can talk to the web service in plain ruby if I: 2.1) disable site ruby (by renaming the site\_ruby direct…

---

## [Debugging between JRuby and Java](https://www.ruby-forum.com/t/debugging-between-jruby-and-java/234469)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 1\
**Last updated:** [March 7, 2015, 9:09am UTC](https://www.ruby-forum.com/t/debugging-between-jruby-and-java/234469 "2015-03-07T09:09:33Z")

</div>

I have a large Java project that uses some Ruby scripts (primarily because of Ruby’s support for “yield”). The Ruby code calls Java code which calls more Ruby code. It’s very interleaved, but everything is driven fr…

---

## [Is activeresource broken in rails 3.2.4?](https://www.ruby-forum.com/t/is-activeresource-broken-in-rails-3-2-4/220733)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 7\
**Last updated:** [June 20, 2012, 1:49pm UTC](https://www.ruby-forum.com/t/is-activeresource-broken-in-rails-3-2-4/220733 "2012-06-20T13:49:22Z")

</div>

Hi, I see that Person.find(:all) and Person.find(:all, :params =\> {id =\> ‘2’}) returns all records irrespective of conditions. Is activeresource broken? PS: Im using rails 3.2.4

---

## [110.years.ago.to\_datetime returns wrong date](https://www.ruby-forum.com/t/110-years-ago-to-datetime-returns-wrong-date/217814)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 7\
**Last updated:** [March 15, 2012, 4:43pm UTC](https://www.ruby-forum.com/t/110-years-ago-to-datetime-returns-wrong-date/217814 "2012-03-15T16:43:57Z")

</div>

I run this in console: 110.years.ago.to\_datetime =\> Fri, 14 Mar 1902 01:20:12 +0000 Today is the 13th of march. So why is it returning 14th?

---

## [FastCGI backend issue](https://www.ruby-forum.com/t/fastcgi-backend-issue/202252)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 7\
**Last updated:** [January 27, 2011, 6:26pm UTC](https://www.ruby-forum.com/t/fastcgi-backend-issue/202252 "2011-01-27T18:26:06Z")

</div>

I’ve got a self-written FastCGI backend. It works with Lighttpd, but not with Nginx. Nginx connects to the backend, sends the request, receives the response, but then appears to wait on something else. The backend wri…

---

## [New user profile and permission option](https://www.ruby-forum.com/t/new-user-profile-and-permission-option/198707)

<div class="topic-metadata">

**Author:** [@okkezSS](https://www.ruby-forum.com/u/okkezSS)\
**Replies:** 1\
**Last updated:** [November 28, 2010, 12:03pm UTC](https://www.ruby-forum.com/t/new-user-profile-and-permission-option/198707 "2010-11-28T12:03:04Z")

</div>

Hi, we are planning to add to Typo a new user profile role plus a permission option. Basically, the role is called “Moderator” and all the articles posted by this kind of user needs to be approved by the admin before…

---

## [Modelling parent/child accounts with other models](https://www.ruby-forum.com/t/modelling-parent-child-accounts-with-other-models/196351)

<div class="topic-metadata">

**Author:** [@davidjrice](https://www.ruby-forum.com/u/davidjrice)\
**Replies:** 7\
**Last updated:** [October 13, 2010, 5:36am UTC](https://www.ruby-forum.com/t/modelling-parent-child-accounts-with-other-models/196351 "2010-10-13T05:36:02Z")

</div>

I am creating an application that involves: Accounts People (Many people belong to one account) …and various other models… Companies Projects Services … I’m trying to find what the best way is to denote that any …

---

## [Ajax submit: Clicking 'Submit' vs. hitting ENTER](https://www.ruby-forum.com/t/ajax-submit-clicking-submit-vs-hitting-enter/189268)

<div class="topic-metadata">

**Author:** [@tharrisx](https://www.ruby-forum.com/u/tharrisx)\
**Replies:** 7\
**Last updated:** [May 28, 2010, 4:40pm UTC](https://www.ruby-forum.com/t/ajax-submit-clicking-submit-vs-hitting-enter/189268 "2010-05-28T16:40:11Z")

</div>

Hi there, Has anyone an idea why the below form submits correctly when I click the ‘Submit’ button but does call the ‘new’ action instead of ‘create’ when I hit ENTER? \<% form\_remote\_tag :html =\> { :action =\> url\_for…

---

## [Best approach to pass hash type data in string form from Rails/Ruby to a C# app?](https://www.ruby-forum.com/t/best-approach-to-pass-hash-type-data-in-string-form-from-rails-ruby-to-a-c-app/180827)

<div class="topic-metadata">

**Author:** [@greghauptmann](https://www.ruby-forum.com/u/greghauptmann)\
**Replies:** 7\
**Last updated:** [December 30, 2009, 3:12am UTC](https://www.ruby-forum.com/t/best-approach-to-pass-hash-type-data-in-string-form-from-rails-ruby-to-a-c-app/180827 "2009-12-30T03:12:32Z")

</div>

Hi, I need to pass (via string content of a HTTP request/response body) name value pairs of data (like a hash) back from a Ruby on Rails server to a C# client. Anyone happen to know offhand what would be the best for…

---

## [Remove\_const vs. Object.remove\_const vs. Object.instance\_eval { remove\_const }](https://www.ruby-forum.com/t/remove-const-vs-object-remove-const-vs-object-instance-eval-remove-const/175919)

<div class="topic-metadata">

**Author:** [@jko170](https://www.ruby-forum.com/u/jko170)\
**Replies:** 1\
**Last updated:** [September 22, 2009, 10:10pm UTC](https://www.ruby-forum.com/t/remove-const-vs-object-remove-const-vs-object-instance-eval-remove-const/175919 "2009-09-22T22:10:30Z")

</div>

In order to remove a class, I have to use Object.instance\_eval { remove\_const } Why couldn’t I just use remove\_const or Object.remove\_const ?

---

## [Can you please tell me that how much high traffic can the nginx server running at?](https://www.ruby-forum.com/t/can-you-please-tell-me-that-how-much-high-traffic-can-the-nginx-server-running-at/150951)

<div class="topic-metadata">

**Author:** [@yong\_xue](https://www.ruby-forum.com/u/yong_xue)\
**Replies:** 7\
**Last updated:** [October 15, 2008, 11:40am UTC](https://www.ruby-forum.com/t/can-you-please-tell-me-that-how-much-high-traffic-can-the-nginx-server-running-at/150951 "2008-10-15T11:40:01Z")

</div>

I am fresh to nginx. Can you please tell me that how much high traffic can the nginx server running at? I am not mean the peak point, but the steady throughout. – Best Regards, Ñ¦ ÓÂ QQ:312200 e-mail:removed\_ema…

---

## [Local variable in loop affects callcc](https://www.ruby-forum.com/t/local-variable-in-loop-affects-callcc/148145)

<div class="topic-metadata">

**Author:** [@Pinku\_S](https://www.ruby-forum.com/u/Pinku_S)\
**Replies:** 7\
**Last updated:** [September 12, 2008, 5:40pm UTC](https://www.ruby-forum.com/t/local-variable-in-loop-affects-callcc/148145 "2008-09-12T17:40:10Z")

</div>

I was trying to do some simple backtracking, but it kept failing for some reason. In the simplified version below, I use continuations to return either a 1 or 2 from interval. testcc assigns a value to the array, prin…

---

## [Simple, array question!](https://www.ruby-forum.com/t/simple-array-question/147335)

<div class="topic-metadata">

**Author:** [@his2000x](https://www.ruby-forum.com/u/his2000x)\
**Replies:** 7\
**Last updated:** [September 4, 2008, 3:45pm UTC](https://www.ruby-forum.com/t/simple-array-question/147335 "2008-09-04T15:45:00Z")

</div>

hi! Gentlemen i don’t understand array declaration… c languages, array declaration is… char str\[100\]; but, how do i declaration an array for ruby… oo is difficult… plz teach me …

---

## [Basic Rails 2.0 scaffold and commands question](https://www.ruby-forum.com/t/basic-rails-2-0-scaffold-and-commands-question/135107)

<div class="topic-metadata">

**Author:** [@kellygreer1](https://www.ruby-forum.com/u/kellygreer1)\
**Replies:** 7\
**Last updated:** [April 18, 2008, 12:48am UTC](https://www.ruby-forum.com/t/basic-rails-2-0-scaffold-and-commands-question/135107 "2008-04-18T00:48:40Z")

</div>

Sorry if this a supper newb question… I’m trying to figure out how when I write: ruby script/generate scaffold post name:string description:text this generates model, controller, views, etc… But when I try to back …

---

## [Is there any standard package to dump to ruby data structures](https://www.ruby-forum.com/t/is-there-any-standard-package-to-dump-to-ruby-data-structures/133856)

<div class="topic-metadata">

**Author:** [@adm](https://www.ruby-forum.com/u/adm)\
**Replies:** 7\
**Last updated:** [April 4, 2008, 8:57pm UTC](https://www.ruby-forum.com/t/is-there-any-standard-package-to-dump-to-ruby-data-structures/133856 "2008-04-04T20:57:05Z")

</div>

Is there any standard package to dump ruby data structures into a string/stream? which can be eval’d back in ruby script. something like perl’s Data::Dumper?

---

## [REST bug with form\_for](https://www.ruby-forum.com/t/rest-bug-with-form-for/122036)

<div class="topic-metadata">

**Author:** [@dangermoose](https://www.ruby-forum.com/u/dangermoose)\
**Replies:** 7\
**Last updated:** [December 5, 2007, 11:29pm UTC](https://www.ruby-forum.com/t/rest-bug-with-form-for/122036 "2007-12-05T23:29:10Z")

</div>

Hi all, I am running on Windows XP sp2 with ruby 1.8.6, and rails 1.2.3 I am using REST, and have this in my view \<% form\_for(:project, :url =\> project\_path(:user\_id =\> @project.my\_user, :id =\> @project), :html =\> …

---

## [Very strange activerecord behavior](https://www.ruby-forum.com/t/very-strange-activerecord-behavior/108900)

<div class="topic-metadata">

**Author:** [@gcnovus](https://www.ruby-forum.com/u/gcnovus)\
**Replies:** 7\
**Last updated:** [July 10, 2007, 4:27am UTC](https://www.ruby-forum.com/t/very-strange-activerecord-behavior/108900 "2007-07-10T04:27:22Z")

</div>

I have the following class: class Question \< ActiveRecord::Base table has quiz\_id, text, created\_at, updated\_at belongs\_to :quiz has\_many :options validates\_presence\_of :text validates\_length\_of :text,…

---

## [Problems with alias\_method](https://www.ruby-forum.com/t/problems-with-alias-method/88189)

<div class="topic-metadata">

**Author:** [@pratik](https://www.ruby-forum.com/u/pratik)\
**Replies:** 1\
**Last updated:** [March 8, 2007, 11:24pm UTC](https://www.ruby-forum.com/t/problems-with-alias-method/88189 "2007-03-08T23:24:26Z")

</div>

Hi Guys, I’m trying to alias\_method in a bit different way. Here’s what I’m trying to do : http://pastie.caboo.se/45668 Any help would be great. Thanks for your time, Pratik

---

## [Getting (var = false) to return true?](https://www.ruby-forum.com/t/getting-var-false-to-return-true/73817)

<div class="topic-metadata">

**Author:** [@joe](https://www.ruby-forum.com/u/joe)\
**Replies:** 7\
**Last updated:** [October 27, 2006, 7:06pm UTC](https://www.ruby-forum.com/t/getting-var-false-to-return-true/73817 "2006-10-27T19:06:04Z")

</div>

In Rails (it’s more of a Ruby question though :wink: ), I have: def before\_update @var = get\_old\_var\_value end and if get\_old\_var\_value returns a false value it causes the update to cancel. Is there some function th…

---

## [Re: testing for nil or empty and then](https://www.ruby-forum.com/t/re-testing-for-nil-or-empty-and-then/72687)

<div class="topic-metadata">

**Author:** [@badelatng](https://www.ruby-forum.com/u/badelatng)\
**Replies:** 7\
**Last updated:** [October 18, 2006, 10:44am UTC](https://www.ruby-forum.com/t/re-testing-for-nil-or-empty-and-then/72687 "2006-10-18T10:44:02Z")

</div>

Try If !params\[:category\_id\] || params\[:category\_id\].empty? If the first part of the conditional is true, Ruby will ignore the next for speed. (Careful of this if you use a function as a conditional and rely on it …

---

## [Lettura file di testo](https://www.ruby-forum.com/t/lettura-file-di-testo/67737)

<div class="topic-metadata">

**Author:** [@maximo](https://www.ruby-forum.com/u/maximo)\
**Replies:** 7\
**Last updated:** [September 6, 2006, 3:01pm UTC](https://www.ruby-forum.com/t/lettura-file-di-testo/67737 "2006-09-06T15:01:57Z")

</div>

salve a tutti, l’argomento e’ gia’ stato trattato qualche post fa ma ho ancora dei dubbi. Premetto che sto muovendo i primi passi in ruby e sto cercando di scrivere semplici programmi senza l’utilizzo di classi o fun…

---

## [Install\_qtruby\_on\_mac](https://www.ruby-forum.com/t/install-qtruby-on-mac/53245)

<div class="topic-metadata">

**Author:** [@SSSBE7LnSSB\_SSBN5BS](https://www.ruby-forum.com/u/SSSBE7LnSSB_SSBN5BS)\
**Replies:** 7\
**Last updated:** [February 1, 2006, 11:03pm UTC](https://www.ruby-forum.com/t/install-qtruby-on-mac/53245 "2006-02-01T23:03:44Z")

</div>

Hi, I am Ryutaro Amano. I am using ruby-1.8.4 on Mac 10.4.4 with XCode-2.2 I have installed qtruby-1.0.10 the following steps after archiving qt-mac-free-3.3.6-snapshot-20060127.tar.bz2, mv / Developer/qt export QT…

---

## [Hosting with email accounts?](https://www.ruby-forum.com/t/hosting-with-email-accounts/224773)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 6\
**Last updated:** [November 26, 2012, 6:29pm UTC](https://www.ruby-forum.com/t/hosting-with-email-accounts/224773 "2012-11-26T18:29:58Z")

</div>

Heroku seems to have pretty much become the standard for Rails apps just starting out. Any time anyone asks which is the best host, the answer always seems to be Heroku. But, correct me if I’m wrong, Heroku does not i…

---

## [Controller validation and duck trading! How would you do it?](https://www.ruby-forum.com/t/controller-validation-and-duck-trading-how-would-you-do-it/216149)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 6\
**Last updated:** [January 27, 2012, 9:11pm UTC](https://www.ruby-forum.com/t/controller-validation-and-duck-trading-how-would-you-do-it/216149 "2012-01-27T21:11:27Z")

</div>

For the sake of example let’s say you have an application where users list their ducks for sale. The services offers two Plans: Bronze, which allows you to list 3 ducks at a time; and Platinum, which allows you to li…

---

## [Ruby on Rails ebook](https://www.ruby-forum.com/t/ruby-on-rails-ebook/90934)

<div class="topic-metadata">

**Author:** [@bita\_hedayatian](https://www.ruby-forum.com/u/bita_hedayatian)\
**Replies:** 6\
**Last updated:** [August 9, 2011, 11:00am UTC](https://www.ruby-forum.com/t/ruby-on-rails-ebook/90934 "2011-08-09T11:00:29Z")

</div>

Hi everybody I am new to this group,it looks like a very active and great group. I need your suggestions to get a beginner-professional Ruby on Rails tutorial. Does anybody have an ebook? Thanks Your Space. Your F…

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

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