# Top

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

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

---

## [Question about some code in the agile book](https://www.ruby-forum.com/t/question-about-some-code-in-the-agile-book/87588)

<div class="topic-metadata">

**Author:** [@Kristen](https://www.ruby-forum.com/u/Kristen)\
**Replies:** 5\
**Last updated:** [March 4, 2007, 2:02pm UTC](https://www.ruby-forum.com/t/question-about-some-code-in-the-agile-book/87588 "2007-03-04T14:02:56Z")

</div>

Hello, My question is based on the following code form the 2ed agile book: File: depot\_g/app/models/cart\_item.rb class CartItem attr\_reader :product, :quantity def initialize(product) @product = product @quantity …

---

## [Handling new form entries with relational tables](https://www.ruby-forum.com/t/handling-new-form-entries-with-relational-tables/72359)

<div class="topic-metadata">

**Author:** [@Grasshoppa](https://www.ruby-forum.com/u/Grasshoppa)\
**Replies:** 5\
**Last updated:** [October 19, 2006, 1:47am UTC](https://www.ruby-forum.com/t/handling-new-form-entries-with-relational-tables/72359 "2006-10-19T01:47:54Z")

</div>

Ok. I’m new at this, but let me try and explain my problem. I hope some generous soul will be kind enough to offer some guidance… Let’s say I have a form that accepts new input from an applicant. I want to collect the…

---

## [What's going on here? (Newbie question)](https://www.ruby-forum.com/t/whats-going-on-here-newbie-question/62664)

<div class="topic-metadata">

**Author:** [@MBMBMB](https://www.ruby-forum.com/u/MBMBMB)\
**Replies:** 5\
**Last updated:** [June 7, 2006, 3:13pm UTC](https://www.ruby-forum.com/t/whats-going-on-here-newbie-question/62664 "2006-06-07T15:13:14Z")

</div>

In irb: f = File.new(‘numbers.txt’) =\> #\<File:numbers.txt\> f.each {|line| puts line} 123 456 789 =\> #\<File:numbers.txt\> f.each {|line| puts line} =\> #\<File:numbers.txt\> Why doesn’t the second f.each work?

---

## [Installing hieraki help](https://www.ruby-forum.com/t/installing-hieraki-help/58402)

<div class="topic-metadata">

**Author:** [@wjessup](https://www.ruby-forum.com/u/wjessup)\
**Replies:** 5\
**Last updated:** [April 26, 2006, 3:30pm UTC](https://www.ruby-forum.com/t/installing-hieraki-help/58402 "2006-04-26T15:30:37Z")

</div>

Ahoy, I tried to install hieraki and it was a big mess. upload\_progress module needed to be installed no test/development server configured in the config file so i had to add those no log directory, had to add that h…

---

## [PostgreSQL and unit tests](https://www.ruby-forum.com/t/postgresql-and-unit-tests/93431)

<div class="topic-metadata">

**Author:** [@pergesu](https://www.ruby-forum.com/u/pergesu)\
**Replies:** 5\
**Last updated:** [April 3, 2006, 2:39am UTC](https://www.ruby-forum.com/t/postgresql-and-unit-tests/93431 "2006-04-03T02:39:02Z")

</div>

After upgrading to 1.1, I can’t run any unit tests. Apparently when I run rake test\_units, it uses a migration to set up the database. Unfortunately when it runs the migration, it’s adding not null constraints to eve…

---

## [Return code of process from IO](https://www.ruby-forum.com/t/return-code-of-process-from-io/55661)

<div class="topic-metadata">

**Author:** [@Farrel\_L](https://www.ruby-forum.com/u/Farrel_L)\
**Replies:** 5\
**Last updated:** [March 22, 2006, 10:24pm UTC](https://www.ruby-forum.com/t/return-code-of-process-from-io/55661 "2006-03-22T22:24:05Z")

</div>

Hi folks, I’m using IO.popen to communicate with an external process. At some point the external process will exit either with a true or false condition. It uses shell return codes (0 for true, 1 for false) to indica…

---

## [\[Half-OT\] PDA Clients and Rails](https://www.ruby-forum.com/t/half-ot-pda-clients-and-rails/73189)

<div class="topic-metadata">

**Author:** [@Daniel\_VSSSSlkerts](https://www.ruby-forum.com/u/Daniel_VSSSSlkerts)\
**Replies:** 5\
**Last updated:** [February 27, 2006, 8:01pm UTC](https://www.ruby-forum.com/t/half-ot-pda-clients-and-rails/73189 "2006-02-27T20:01:13Z")

</div>

Hello! I’d like to gather some points about running a rails application on a PDA. As a condition I’d like to use Palm and Windows Mobile based PDA to target a huge user audience (this could be become difficult I know, …

---

## [Reload controller with FCGI](https://www.ruby-forum.com/t/reload-controller-with-fcgi/63214)

<div class="topic-metadata">

**Author:** [@adamdorsey](https://www.ruby-forum.com/u/adamdorsey)\
**Replies:** 5\
**Last updated:** [January 20, 2006, 12:45am UTC](https://www.ruby-forum.com/t/reload-controller-with-fcgi/63214 "2006-01-20T00:45:19Z")

</div>

since webrick does not need to run with FCGI how do you get a rails app in FCGI mode to reload the controller (since it caches in production). Is it simply a restart of apache ? adam

---

## [Nginx-1.11.1](https://www.ruby-forum.com/t/nginx-1-11-1/244711)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 1\
**Last updated:** [June 1, 2016, 1:15pm UTC](https://www.ruby-forum.com/t/nginx-1-11-1/244711 "2016-06-01T13:15:21Z")

</div>

Changes with nginx 1.11.1 31 May 2016 \*) Security: a segmentation fault might occur in a worker process while writing a specially crafted request body to a temporary file (CVE…

---

## [Rescue\_from method in application controller](https://www.ruby-forum.com/t/rescue-from-method-in-application-controller/230467)

<div class="topic-metadata">

**Author:** [@jason\_sam](https://www.ruby-forum.com/u/jason_sam)\
**Replies:** 1\
**Last updated:** [June 19, 2014, 9:09pm UTC](https://www.ruby-forum.com/t/rescue-from-method-in-application-controller/230467 "2014-06-19T21:09:23Z")

</div>

What exception cannot be handled with rescue\_from method in application controller? e.g class ApplicationController \< ActionController::Base rescue\_from Exception, with: error\_handler . . . . . . . . . . end 1). s…

---

## [Why do i get "no module named wxgui" error](https://www.ruby-forum.com/t/why-do-i-get-no-module-named-wxgui-error/235945)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 1\
**Last updated:** [July 26, 2013, 4:19pm UTC](https://www.ruby-forum.com/t/why-do-i-get-no-module-named-wxgui-error/235945 "2013-07-26T16:19:34Z")

</div>

Hello, I am pretty new to gnu radio, trying to learn it asap and start developing apps. I am very interested in it. When i try to execute the usrp wfm receive python file i get the following error. Traceback (most r…

---

## [Upgrading to Ruby 1.9 - Should I? Is it painful?](https://www.ruby-forum.com/t/upgrading-to-ruby-1-9-should-i-is-it-painful/218799)

<div class="topic-metadata">

**Author:** [@Gurdipe\_D](https://www.ruby-forum.com/u/Gurdipe_D)\
**Replies:** 7\
**Last updated:** [April 18, 2012, 12:46am UTC](https://www.ruby-forum.com/t/upgrading-to-ruby-1-9-should-i-is-it-painful/218799 "2012-04-18T00:46:46Z")

</div>

Hi All, I recently encountered a problem while trying to install the Nesta CMS gem, and the only answer I found so far to a similar problem is, “upgrade to Ruby 1.9”. Now since upgrading to 1.9 is something I wanted …

---

## [Attrs\_accessible](https://www.ruby-forum.com/t/attrs-accessible/203758)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 7\
**Last updated:** [February 28, 2011, 5:03am UTC](https://www.ruby-forum.com/t/attrs-accessible/203758 "2011-02-28T05:03:18Z")

</div>

I know it’s a good practice setting attr\_accesible for models. As an example if I have a model with admin: boolean attribute and if I don’t set attr\_accessible, a user can do: put /users/17?admin=1 making user 17 an a…

---

## [When using system(), how do I redirect Exception msgs?](https://www.ruby-forum.com/t/when-using-system-how-do-i-redirect-exception-msgs/199820)

<div class="topic-metadata">

**Author:** [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Replies:** 7\
**Last updated:** [November 29, 2010, 10:01pm UTC](https://www.ruby-forum.com/t/when-using-system-how-do-i-redirect-exception-msgs/199820 "2010-11-29T22:01:23Z")

</div>

So from my console, I execute the Ruby script via: ruby TestSuite.rb \> /Users/dave/Desktop/outputtext.xml Within my script I have several begin system(‘ruby /Users/dave/Desktop/testruby.rb’); system(‘ruby /Users/dave…

---

## [RubyGems and ruby versions](https://www.ruby-forum.com/t/rubygems-and-ruby-versions/197472)

<div class="topic-metadata">

**Author:** [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Replies:** 7\
**Last updated:** [October 18, 2010, 5:22am UTC](https://www.ruby-forum.com/t/rubygems-and-ruby-versions/197472 "2010-10-18T05:22:38Z")

</div>

Hello, I am running Ruby 1.92 on Mac OSX, but for some reason rubygems is not using the correct ruby version. ruby -v ruby 1.9.2p0 (2010-08-18 revision 29036) \[x86\_64-darwin10.4.0\] which ruby /usr/local/bin/ruby g…

---

## [Need Help on "Virtual Timer Expired" issue](https://www.ruby-forum.com/t/need-help-on-virtual-timer-expired-issue/187961)

<div class="topic-metadata">

**Author:** [@v4\_forums](https://www.ruby-forum.com/u/v4_forums)\
**Replies:** 1\
**Last updated:** [May 3, 2010, 6:12pm UTC](https://www.ruby-forum.com/t/need-help-on-virtual-timer-expired-issue/187961 "2010-05-03T18:12:46Z")

</div>

Hi Everyone, I am new to RoR and in the past couple of years, I was mostly involved in Java/J2EE programming. I’ve just started learning ruby and rails from the last few days. Programming in Ruby on Rails is fun, th…

---

## [Class Function call vs Normal Function call](https://www.ruby-forum.com/t/class-function-call-vs-normal-function-call/184181)

<div class="topic-metadata">

**Author:** [@THAKUR\_PRASHANT\_SIN](https://www.ruby-forum.com/u/THAKUR_PRASHANT_SIN)\
**Replies:** 7\
**Last updated:** [February 27, 2010, 8:04am UTC](https://www.ruby-forum.com/t/class-function-call-vs-normal-function-call/184181 "2010-02-27T08:04:41Z")

</div>

I am creating zip file using ruby zip there are two versions of creating the zip file 1st version part of class and in 2nd version running it alone. The kmz file created with 1st version doesn’t contain complete text …

---

## [An elegant way to modify all lines from file by using map() function?](https://www.ruby-forum.com/t/an-elegant-way-to-modify-all-lines-from-file-by-using-map-function/182044)

<div class="topic-metadata">

**Author:** [@RobertGawron](https://www.ruby-forum.com/u/RobertGawron)\
**Replies:** 7\
**Last updated:** [January 22, 2010, 3:55pm UTC](https://www.ruby-forum.com/t/an-elegant-way-to-modify-all-lines-from-file-by-using-map-function/182044 "2010-01-22T15:55:31Z")

</div>

Hi all, I’m new in ruby and I just have a question: in python when I want to read all lines from file, do something with all of them and then use them in my program I use map function + lambda function, sth like that…

---

## [Rails and JRuby](https://www.ruby-forum.com/t/rails-and-jruby/170608)

<div class="topic-metadata">

**Author:** [@sjames](https://www.ruby-forum.com/u/sjames)\
**Replies:** 7\
**Last updated:** [June 26, 2009, 2:05pm UTC](https://www.ruby-forum.com/t/rails-and-jruby/170608 "2009-06-26T14:05:12Z")

</div>

Hello friends. I’m investigating building a Rails stack with JRuby as the interpreter. I’m a little confused by the choice of Tomcat and Glassfish. Which is being used most frequently for greenfield set ups? Also, f…

---

## [MinGW $B$K$\*$1$k3HD%%i%$%V%i%j:n@.$H(B Ruby 1.8/1.9 $B6&B8$K$D$$$F(B](https://www.ruby-forum.com/t/mingw-b-k-1-k3hd-i-v-i-j-n-h-b-ruby-1-8-1-9-b6-b8-k-d-f-b/164450)

<div class="topic-metadata">

**Author:** [@Hajime\_H](https://www.ruby-forum.com/u/Hajime_H)\
**Replies:** 7\
**Last updated:** [April 10, 2009, 8:17am UTC](https://www.ruby-forum.com/t/mingw-b-k-1-k3hd-i-v-i-j-n-h-b-ruby-1-8-1-9-b6-b8-k-d-f-b/164450 "2009-04-10T08:17:37Z")

</div>

e$B@1$H?=$7$^$9!#e(B e$B;d$Oe(B MinGW e$B$Ge(B Ruby e$B3HD%%i%$%V%i%j$r:n@.$7$F$$$^$9!#e(B e$B$=$N:\]$Ke(B Ruby 1.8 e$BMQ$He(B Ruby 1.9 e$BMQ$N3HD%%i%$%V%i%j$rJL!9$K:n$j$?$$$N$G$9$,!"e(B MinGW e$B$K$\*$$$Fe(B Ruby 1…

---

## [Typo on Dreamhost problems](https://www.ruby-forum.com/t/typo-on-dreamhost-problems/163855)

<div class="topic-metadata">

**Author:** [@Emil\_Jensen](https://www.ruby-forum.com/u/Emil_Jensen)\
**Replies:** 1\
**Last updated:** [March 25, 2009, 4:26pm UTC](https://www.ruby-forum.com/t/typo-on-dreamhost-problems/163855 "2009-03-25T16:26:09Z")

</div>

Hi, I’m fairly new to Rails apps, but I’ve successfully hosted Redmine and Instiki on Dreamhost subdomains without any problems. I’m trying Typo, and I’ve tried 5.2 and 5.2.98 and I just cannot get either to work. A…

---

## [Cannot start Mongrel](https://www.ruby-forum.com/t/cannot-start-mongrel/149362)

<div class="topic-metadata">

**Author:** [@crazybass](https://www.ruby-forum.com/u/crazybass)\
**Replies:** 7\
**Last updated:** [September 24, 2008, 9:09am UTC](https://www.ruby-forum.com/t/cannot-start-mongrel/149362 "2008-09-24T09:09:55Z")

</div>

Hi, I’m trying to start Mongrel, but the system cannot do it and show me this message: $ ruby script/server =\> Booting Mongrel (use ‘script/server webrick’ to force WEBrick) =\> Rails 2.1.1 application starting on h…

---

## [Newbie, needs help, can someone explain](https://www.ruby-forum.com/t/newbie-needs-help-can-someone-explain/145963)

<div class="topic-metadata">

**Author:** [@brads](https://www.ruby-forum.com/u/brads)\
**Replies:** 7\
**Last updated:** [August 15, 2008, 4:24pm UTC](https://www.ruby-forum.com/t/newbie-needs-help-can-someone-explain/145963 "2008-08-15T16:24:28Z")

</div>

Sometimes when i am trying to use an instance variable in my view, which is created in my controller, the value for the :id when passing as part of the URL, just appears as an obscure number 23743276 is there a standa…

---

## [Mongrel\_cluster on FreeBSD](https://www.ruby-forum.com/t/mongrel-cluster-on-freebsd/144452)

<div class="topic-metadata">

**Author:** [@reddvinylene](https://www.ruby-forum.com/u/reddvinylene)\
**Replies:** 1\
**Last updated:** [July 29, 2008, 8:11pm UTC](https://www.ruby-forum.com/t/mongrel-cluster-on-freebsd/144452 "2008-07-29T20:11:57Z")

</div>

hello, im attempting a mongrel\_cluster + nginx + rails. i’ve just installed mongrel\_cluster on my FreeBSD server, but there are no rc.d startup scripts so im not sure what to do… this is how i plan to set up my mongre…

---

## [Has anyone pulled from the repo recently, but not on/after 4/16?](https://www.ruby-forum.com/t/has-anyone-pulled-from-the-repo-recently-but-not-on-after-4-16/134976)

<div class="topic-metadata">

**Author:** [@pergesu](https://www.ruby-forum.com/u/pergesu)\
**Replies:** 7\
**Last updated:** [April 16, 2008, 9:47pm UTC](https://www.ruby-forum.com/t/has-anyone-pulled-from-the-repo-recently-but-not-on-after-4-16/134976 "2008-04-16T21:47:33Z")

</div>

I screwed up the repo on github and a bunch of commits are missing. So I’m hoping that there are a couple people out there that have pulled fairly recently (ideally on 4/15), but not today. If so, can you please tar …

---

## [Gem error on Vista](https://www.ruby-forum.com/t/gem-error-on-vista/134363)

<div class="topic-metadata">

**Author:** [@Davo](https://www.ruby-forum.com/u/Davo)\
**Replies:** 7\
**Last updated:** [April 11, 2008, 1:58am UTC](https://www.ruby-forum.com/t/gem-error-on-vista/134363 "2008-04-11T01:58:21Z")

</div>

Hi All, I have to install a RoR development system on a new Vista notebook. When I get to ‘gem install anything’ I get the following error. c:\\ruby\>gem install mysql ERROR: While executing gem … (Gem::RemoteFetcher…

---

## [Rewrite](https://www.ruby-forum.com/t/rewrite/132981)

<div class="topic-metadata">

**Author:** [@Yordan\_G](https://www.ruby-forum.com/u/Yordan_G)\
**Replies:** 7\
**Last updated:** [March 26, 2008, 4:04pm UTC](https://www.ruby-forum.com/t/rewrite/132981 "2008-03-26T16:04:22Z")

</div>

Hello all, How should I proceed "RewriteRule ^(.)/$ index.php?page=$1", because when I replace this rule with if ($host ~ “www.domain.tld” ) { rewrite ^/(\[^/\]+)/ /index.php?page=$1; break; } But my directory in…

---

## [Ngx\_http\_get\_module\_loc\_conf not returning the right configuration (long)?](https://www.ruby-forum.com/t/ngx-http-get-module-loc-conf-not-returning-the-right-configuration-long/115983)

<div class="topic-metadata">

**Author:** [@Brice\_F](https://www.ruby-forum.com/u/Brice_F)\
**Replies:** 1\
**Last updated:** [October 1, 2007, 10:54am UTC](https://www.ruby-forum.com/t/ngx-http-get-module-loc-conf-not-returning-the-right-configuration-long/115983 "2007-10-01T10:54:46Z")

</div>

Hi, While debugging my upload progress hack module, I’m stumbling accross the issue that: lzcf = ngx\_http\_get\_module\_loc\_conf(r, ngx\_http\_uploadprogress\_module); called in an NGX\_HTTP\_POST\_READ\_PHASE handler doesn’t…

---

## [NoMethodError in partial driving me mad](https://www.ruby-forum.com/t/nomethoderror-in-partial-driving-me-mad/109839)

<div class="topic-metadata">

**Author:** [@Pascal\_F](https://www.ruby-forum.com/u/Pascal_F)\
**Replies:** 7\
**Last updated:** [July 23, 2007, 10:57am UTC](https://www.ruby-forum.com/t/nomethoderror-in-partial-driving-me-mad/109839 "2007-07-23T10:57:48Z")

</div>

Hello, i simplified have a news model, a news category model and a news controller. my \_news.rhtml partial renders a single news entry. in my controller there are the actions show and show\_category. if the “show” ac…

---

## [Best way to upload an image and make a thumbnail](https://www.ruby-forum.com/t/best-way-to-upload-an-image-and-make-a-thumbnail/109142)

<div class="topic-metadata">

**Author:** [@mix](https://www.ruby-forum.com/u/mix)\
**Replies:** 7\
**Last updated:** [July 15, 2007, 12:59pm UTC](https://www.ruby-forum.com/t/best-way-to-upload-an-image-and-make-a-thumbnail/109142 "2007-07-15T12:59:41Z")

</div>

Hi, which is the best way to upload an image, keep that and also make a thumbnail? The images should not be stored in the database, but as normal image files in a specific directory. I think that for the thumbnail i …

---

## [Method constant arguments](https://www.ruby-forum.com/t/method-constant-arguments/91351)

<div class="topic-metadata">

**Author:** [@airmind](https://www.ruby-forum.com/u/airmind)\
**Replies:** 7\
**Last updated:** [April 7, 2007, 10:31pm UTC](https://www.ruby-forum.com/t/method-constant-arguments/91351 "2007-04-07T22:31:27Z")

</div>

Hi, I’m new to ruby, and I’m loving it so far. I want to call a method with some parameters that would indicate a state, so most of them would be only a true or false value, however that’s not very good to read when c…

---

## [How-to: one form, two submit button, two validates-presence\_](https://www.ruby-forum.com/t/how-to-one-form-two-submit-button-two-validates-presence/88944)

<div class="topic-metadata">

**Author:** [@zhiyong](https://www.ruby-forum.com/u/zhiyong)\
**Replies:** 7\
**Last updated:** [March 29, 2007, 11:40pm UTC](https://www.ruby-forum.com/t/how-to-one-form-two-submit-button-two-validates-presence/88944 "2007-03-29T23:40:40Z")

</div>

Hi, everybody; The following question blocked my way for a couple days. I appreciate any help in advance. I have one form that adds text entry to the database. There are two ways to add the entry: User fills all t…

---

## [Ruby's book list is out of date](https://www.ruby-forum.com/t/rubys-book-list-is-out-of-date/73842)

<div class="topic-metadata">

**Author:** [@Jeremy\_McAnally](https://www.ruby-forum.com/u/Jeremy_McAnally)\
**Replies:** 7\
**Last updated:** [October 28, 2006, 4:46am UTC](https://www.ruby-forum.com/t/rubys-book-list-is-out-of-date/73842 "2006-10-28T04:46:57Z")

</div>

Hello all, I was snooping about the Ruby site the other day (OK, like two weeks ago) when I got bored, and I noticed the book page is out of date. I e-mailed the webmaster e-mail address, but nothing has changed. F…

---

## [GET parameters and behaviors](https://www.ruby-forum.com/t/get-parameters-and-behaviors/68136)

<div class="topic-metadata">

**Author:** [@david](https://www.ruby-forum.com/u/david)\
**Replies:** 7\
**Last updated:** [September 10, 2006, 9:24am UTC](https://www.ruby-forum.com/t/get-parameters-and-behaviors/68136 "2006-09-10T09:24:21Z")

</div>

Is there away to access GET parameters in a behaviour? site.com/something/1 translates in the behaviour to parameters\[:id\] â?? it dosent have to be like this, just an exampleâ?¦ Of cause at the moment when I punch in …

---

## [Convert datetime\_select to Time object?](https://www.ruby-forum.com/t/convert-datetime-select-to-time-object/64572)

<div class="topic-metadata">

**Author:** [@benjohnson](https://www.ruby-forum.com/u/benjohnson)\
**Replies:** 1\
**Last updated:** [August 10, 2006, 7:46pm UTC](https://www.ruby-forum.com/t/convert-datetime-select-to-time-object/64572 "2006-08-10T19:46:23Z")

</div>

Question 1 I am dealing with a database that holds products and it has a datetime field called “active\_at”. so I have the following for active\_at: \<%= f.datetime\_select :active\_at %\> It gives me 5 different params: p…

---

## [Newbie question---](https://www.ruby-forum.com/t/newbie-question/100239)

<div class="topic-metadata">

**Author:** [@ricardo](https://www.ruby-forum.com/u/ricardo)\
**Replies:** 7\
**Last updated:** [July 29, 2006, 12:43am UTC](https://www.ruby-forum.com/t/newbie-question/100239 "2006-07-29T00:43:32Z")

</div>

I wrote a ruby script that parses a file into key-values like so: class Parser table = { } IO.foreach(‘Localizable.strings’) { |line| if line =~ /^ \\s\* " (.?) " \\s = \\s\* " (.\*?) "/x table\[ $1 \] = $2 end } end I …

---

## [Is possible to return after exec cmd?](https://www.ruby-forum.com/t/is-possible-to-return-after-exec-cmd/97915)

<div class="topic-metadata">

**Author:** [@ollin](https://www.ruby-forum.com/u/ollin)\
**Replies:** 7\
**Last updated:** [July 11, 2006, 2:37pm UTC](https://www.ruby-forum.com/t/is-possible-to-return-after-exec-cmd/97915 "2006-07-11T14:37:36Z")

</div>

Hi folks, why doesn’t work command 5.times{exec “pwd”} like this 5.times{puts “Hello”} ? ollin

---

## [Re: Ruby's role in future operating systems](https://www.ruby-forum.com/t/re-rubys-role-in-future-operating-systems/62967)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 7\
**Last updated:** [June 11, 2006, 10:34pm UTC](https://www.ruby-forum.com/t/re-rubys-role-in-future-operating-systems/62967 "2006-06-11T22:34:49Z")

</div>

In an inspired moment the other night, I thought it would be soooo cooool to have a command shell with ruby syntax. The I started getting even crazier, and thought, what about a ruby interpreter as an o/s kernel… I…

---

## [Join table not being populated](https://www.ruby-forum.com/t/join-table-not-being-populated/61823)

<div class="topic-metadata">

**Author:** [@kublai](https://www.ruby-forum.com/u/kublai)\
**Replies:** 7\
**Last updated:** [May 28, 2006, 7:36pm UTC](https://www.ruby-forum.com/t/join-table-not-being-populated/61823 "2006-05-28T19:36:04Z")

</div>

Hello, I have the usual Categories and Products table scenario, mediated by a Categories\_Products join table. When I create a new Product and into a given Category, I notice that my join table is not being populated. …

---

## [Self-referencial habtm relationship](https://www.ruby-forum.com/t/self-referencial-habtm-relationship/71436)

<div class="topic-metadata">

**Author:** [@randy\_s](https://www.ruby-forum.com/u/randy_s)\
**Replies:** 7\
**Last updated:** [February 24, 2006, 4:13am UTC](https://www.ruby-forum.com/t/self-referencial-habtm-relationship/71436 "2006-02-24T04:13:49Z")

</div>

Heyo! I am setting up a self-referencial habtm relationship with the users of my app. I am using Chad F.'s “Rails Recipes” to get me started, and everything works great with the join table “people\_friends”. I add fri…

---

## [8-channel receiver](https://www.ruby-forum.com/t/8-channel-receiver/223242)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 8\
**Last updated:** [September 29, 2012, 6:47pm UTC](https://www.ruby-forum.com/t/8-channel-receiver/223242 "2012-09-29T18:47:47Z")

</div>

I have a quick theoretical question. Is there any way to construct an 8-channel receiver using 4 USRPS without data going through the host computer? Basically some kind of way to daisy chain mimo cables (though I kno…

---

## [Need some help with regular expression](https://www.ruby-forum.com/t/need-some-help-with-regular-expression/210636)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 8\
**Last updated:** [August 12, 2011, 5:47pm UTC](https://www.ruby-forum.com/t/need-some-help-with-regular-expression/210636 "2011-08-12T17:47:36Z")

</div>

I need to validate a string from a user (a location for use with geotagging) that is. I want to make sure that the user specify a city and a country in my inp … So i wrote this =\> validates :usri\_location, :presence …

---

## [Is this an executable code?](https://www.ruby-forum.com/t/is-this-an-executable-code/197572)

<div class="topic-metadata">

**Author:** [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Replies:** 8\
**Last updated:** [October 16, 2010, 1:54pm UTC](https://www.ruby-forum.com/t/is-this-an-executable-code/197572 "2010-10-16T13:54:34Z")

</div>

Time.local(year, month, day, hour, min, sec, msec) I typed this in IRB and it was “undefined local variable or method ‘year’…” Is ‘local’ a method for the Time class? Thanks guys

---

## [Rewrite server responses](https://www.ruby-forum.com/t/rewrite-server-responses/195899)

<div class="topic-metadata">

**Author:** [@Julien\_Vehent](https://www.ruby-forum.com/u/Julien_Vehent)\
**Replies:** 8\
**Last updated:** [October 5, 2010, 2:00pm UTC](https://www.ruby-forum.com/t/rewrite-server-responses/195899 "2010-10-05T14:00:08Z")

</div>

Hello list, I have a nginx server that runs on 127.0.0.1:5004 (behind a load balancer) and I’m having difficulties with HTTP responses. It seems that the application (in PHP5, Dotclear) sends a 302 when I try to conn…

---

## [Function appends same value to string based on number of function calls](https://www.ruby-forum.com/t/function-appends-same-value-to-string-based-on-number-of-function-calls/135768)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 8\
**Last updated:** [April 24, 2008, 9:05pm UTC](https://www.ruby-forum.com/t/function-appends-same-value-to-string-based-on-number-of-function-calls/135768 "2008-04-24T21:05:46Z")

</div>

Hi Guys, Is this default ruby behaviour or is this a bug? Based on the number of call to Testappend::get\_some\_value, the string “-New Value” is appended x number of times. If you first assign value = ‘’ instead of va…

---

## [Capturing textbox data in the same page](https://www.ruby-forum.com/t/capturing-textbox-data-in-the-same-page/131797)

<div class="topic-metadata">

**Author:** [@dibyendu](https://www.ruby-forum.com/u/dibyendu)\
**Replies:** 8\
**Last updated:** [March 17, 2008, 1:45pm UTC](https://www.ruby-forum.com/t/capturing-textbox-data-in-the-same-page/131797 "2008-03-17T13:45:23Z")

</div>

Hi, I am new to ruby. Can anyone help me with a simple code snippet where a user types in some date in any textbox and on submission, the same page opens with expects set of recorset in an HTML table. very urgent !

---

## [Route inesistenti](https://www.ruby-forum.com/t/route-inesistenti/121889)

<div class="topic-metadata">

**Author:** [@axle988](https://www.ruby-forum.com/u/axle988)\
**Replies:** 8\
**Last updated:** [December 4, 2007, 11:45pm UTC](https://www.ruby-forum.com/t/route-inesistenti/121889 "2007-12-04T23:45:09Z")

</div>

Ml mailing list removed\_email\_address@domain.invalid http://lists.ruby-it.org/mailman/listinfo/ml

---

## [How change records w/o loading them?](https://www.ruby-forum.com/t/how-change-records-w-o-loading-them/121131)

<div class="topic-metadata">

**Author:** [@S-gw](https://www.ruby-forum.com/u/S-gw)\
**Replies:** 8\
**Last updated:** [November 24, 2007, 7:42pm UTC](https://www.ruby-forum.com/t/how-change-records-w-o-loading-them/121131 "2007-11-24T19:42:24Z")

</div>

It’s not clear to me how ActiveRecord is supposed to be used to update a batch of records w/o actually loading them. IOW I want to execute an UPDATE statement something like this: UPDATE database.table SET rcrd\_status…

---

## [Strange Segfault](https://www.ruby-forum.com/t/strange-segfault/109368)

<div class="topic-metadata">

**Author:** [@Glen\_H](https://www.ruby-forum.com/u/Glen_H)\
**Replies:** 8\
**Last updated:** [July 16, 2007, 6:08pm UTC](https://www.ruby-forum.com/t/strange-segfault/109368 "2007-07-16T18:08:39Z")

</div>

I have an interesting problem. I have a script that I wish to use to check a database and then map drives based on who is logging on and the info in the database. When I run the script on any of the machines in the…

---

## [Array#modified](https://www.ruby-forum.com/t/array-modified/81824)

<div class="topic-metadata">

**Author:** [@juozas](https://www.ruby-forum.com/u/juozas)\
**Replies:** 8\
**Last updated:** [January 19, 2007, 4:31pm UTC](https://www.ruby-forum.com/t/array-modified/81824 "2007-01-19T16:31:46Z")

</div>

I’m looking for a simple and short solution/library that does this: a = \[\] def a.modified puts “Array a changed” end a \<\< ‘x’ puts a a\[0\] = ‘y’ puts a ----OUTPUT---- Array a changed x Array a changed y

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

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