# Top

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

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

---

## [Make it faster](https://www.ruby-forum.com/t/make-it-faster/87688)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 4\
**Last updated:** [March 7, 2007, 7:54pm UTC](https://www.ruby-forum.com/t/make-it-faster/87688 "2007-03-07T19:54:40Z")

</div>

you know those threads where someone posts a bit of slow ruby code, then people rework it until it’s orders of magnitude faster? what’s the BEST one you can remember? thanks. -a

---

## [Subversion : ignorar ficheros?](https://www.ruby-forum.com/t/subversion-ignorar-ficheros/87973)

<div class="topic-metadata">

**Author:** [@vilec](https://www.ruby-forum.com/u/vilec)\
**Replies:** 4\
**Last updated:** [March 7, 2007, 1:23pm UTC](https://www.ruby-forum.com/t/subversion-ignorar-ficheros/87973 "2007-03-07T13:23:16Z")

</div>

Buenas. Tengo un repositorio con mi proyecto en rubyforge y me gustarÃ­a que no se subiesen los directorios tmp ni log. Se que es algo asÃ­ como svnignore, pero no encuentro la opciÃ³n. Â¿CÃ³mo se harÃ­a?

---

## [Do not understand this](https://www.ruby-forum.com/t/do-not-understand-this/85160)

<div class="topic-metadata">

**Author:** [@bruparel](https://www.ruby-forum.com/u/bruparel)\
**Replies:** 4\
**Last updated:** [February 10, 2007, 9:42pm UTC](https://www.ruby-forum.com/t/do-not-understand-this/85160 "2007-02-10T21:42:26Z")

</div>

I am going through Dave T.'s Programming Ruby Second Edition book. I am trying to execute the code given on page 89 of the book which is as follows: Sample code from Programing Ruby, page 83 alias old\_backquote def(cm…

---

## [Quick DIV alignment question - for putting a "\<remaining ses](https://www.ruby-forum.com/t/quick-div-alignment-question-for-putting-a-remaining-ses/77301)

<div class="topic-metadata">

**Author:** [@greg](https://www.ruby-forum.com/u/greg)\
**Replies:** 4\
**Last updated:** [November 26, 2006, 2:59pm UTC](https://www.ruby-forum.com/t/quick-div-alignment-question-for-putting-a-remaining-ses/77301 "2006-11-26T14:59:04Z")

</div>

Hi, Can anyone suggest how to get a simple horizontal alignment of DIVs in my header? horizontally align DIVs which will contain text so that they are seemless output would be " session remaining time = …

---

## [How to represent price?](https://www.ruby-forum.com/t/how-to-represent-price/76298)

<div class="topic-metadata">

**Author:** [@Thushan](https://www.ruby-forum.com/u/Thushan)\
**Replies:** 4\
**Last updated:** [November 17, 2006, 8:03pm UTC](https://www.ruby-forum.com/t/how-to-represent-price/76298 "2006-11-17T20:03:13Z")

</div>

As recomended by AWDWR (pg 85), is everyone using integer to store decimal values? Or is there a better way to do this? Thanks in advance Thushan

---

## [How can i do 'foreach (reverse sort { $hasref-\>{$a} \<=\> $has](https://www.ruby-forum.com/t/how-can-i-do-foreach-reverse-sort-hasref-a-has/74055)

<div class="topic-metadata">

**Author:** [@Aleksandar\_L](https://www.ruby-forum.com/u/Aleksandar_L)\
**Replies:** 4\
**Last updated:** [November 7, 2006, 10:46am UTC](https://www.ruby-forum.com/t/how-can-i-do-foreach-reverse-sort-hasref-a-has/74055 "2006-11-07T10:46:13Z")

</div>

Hi, I’am new with ruby and want to migrate some of my perlscripts to ruby ;-). I have a problem with the ‘reverse sort’ of values of a hashref and hope that sombody can help me or point me to the right way :wink: I …

---

## [Capistrano getaddrinfo error?](https://www.ruby-forum.com/t/capistrano-getaddrinfo-error/68789)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 4\
**Last updated:** [September 15, 2006, 4:14pm UTC](https://www.ruby-forum.com/t/capistrano-getaddrinfo-error/68789 "2006-09-15T16:14:36Z")

</div>

I’m having troubles setting up Capistrano on Dreamhost … here’s the EXACT steps I took, almost following the guide from nubyonrails.com: On server: cd svn/ mkdir rails.bechbox.dk svnadmin create ~/svn/rails.bechbox.…

---

## [Pp with array](https://www.ruby-forum.com/t/pp-with-array/96014)

<div class="topic-metadata">

**Author:** [@Nebata](https://www.ruby-forum.com/u/Nebata)\
**Replies:** 4\
**Last updated:** [June 24, 2006, 1:09am UTC](https://www.ruby-forum.com/t/pp-with-array/96014 "2006-06-24T01:09:45Z")

</div>

e$B$M$P$?$G$9!#e(B pp ( pretty print ) e$B$NF0:n$N%P%0Js9p$G$9!#e(B require ‘pp’ a=\[\[0, 1, 2, 3, 4\], \[1, 2, 3, 4, 5\], \[2, 3, 4, 5, 6\], \[3, 4, 5, 6, 7\]\] e$BK\>$\`7k2L$O!"e(B pp a =\> \[\[0, 1, 2, 3, 4\], \[1, 2, 3, 4, 5\], \[…

---

## [Searching messages](https://www.ruby-forum.com/t/searching-messages/95981)

<div class="topic-metadata">

**Author:** [@rrwhite](https://www.ruby-forum.com/u/rrwhite)\
**Replies:** 4\
**Last updated:** [June 21, 2006, 6:53pm UTC](https://www.ruby-forum.com/t/searching-messages/95981 "2006-06-21T18:53:27Z")

</div>

Is there some way (using Google for example) to search all the prior messages? The search function in devlist is not very useful. Richard RogueWaveMarine.com

---

## [Simple pattern matching](https://www.ruby-forum.com/t/simple-pattern-matching/56053)

<div class="topic-metadata">

**Author:** [@pool007](https://www.ruby-forum.com/u/pool007)\
**Replies:** 4\
**Last updated:** [March 27, 2006, 7:25pm UTC](https://www.ruby-forum.com/t/simple-pattern-matching/56053 "2006-03-27T19:25:39Z")

</div>

Hi group. Sorry for newbie question. Given the line like node: { title: “15597629” label: “up\[0,18 p:-2270.125\]” } How can I parse the above string into “15597629” and “up\[0,18 p:-2270.125\]”? There are numbers in the…

---

## [Authorization framework?](https://www.ruby-forum.com/t/authorization-framework/54428)

<div class="topic-metadata">

**Author:** [@larrywright](https://www.ruby-forum.com/u/larrywright)\
**Replies:** 4\
**Last updated:** [March 4, 2006, 6:39pm UTC](https://www.ruby-forum.com/t/authorization-framework/54428 "2006-03-04T18:39:27Z")

</div>

There are a number of good authentication frameworks for rails - has anyone developed a generic authorization framework? I’m thinking of something that included the concept of roles, mapped roles to both actions and…

---

## [Problems with Hieraki 2](https://www.ruby-forum.com/t/problems-with-hieraki-2/56153)

<div class="topic-metadata">

**Author:** [@maksym](https://www.ruby-forum.com/u/maksym)\
**Replies:** 4\
**Last updated:** [February 15, 2006, 3:37pm UTC](https://www.ruby-forum.com/t/problems-with-hieraki-2/56153 "2006-02-15T15:37:53Z")

</div>

hi, I’ve already set up hieraki2 (database.yml: configured, schema.mysql.sql: imported). I noticed that there is no user (table “users” is empty) and I can’t login. So what should I do to use hieraki2? :slight\_smile: …

---

## [Ruby and C network interaction](https://www.ruby-forum.com/t/ruby-and-c-network-interaction/49120)

<div class="topic-metadata">

**Author:** [@cilphex](https://www.ruby-forum.com/u/cilphex)\
**Replies:** 4\
**Last updated:** [November 30, 2005, 7:35am UTC](https://www.ruby-forum.com/t/ruby-and-c-network-interaction/49120 "2005-11-30T07:35:05Z")

</div>

Hi, I’m working on a small client/server application in my spare time, using C and win32 for the client and Ruby for the server. I’m having an interaction issue and was wondering if anyone could help. I’m not an ex…

---

## [Unknown node type 0](https://www.ruby-forum.com/t/unknown-node-type-0/49062)

<div class="topic-metadata">

**Author:** [@wybo](https://www.ruby-forum.com/u/wybo)\
**Replies:** 4\
**Last updated:** [November 29, 2005, 1:11pm UTC](https://www.ruby-forum.com/t/unknown-node-type-0/49062 "2005-11-29T13:11:24Z")

</div>

I’m getting the error message; /usr/local/lib/ruby/1.8/date/format.rb:598: \[BUG\] unknown node type 0 ruby 1.8.3 (2005-09-21) \[i686-linux\] Aborted This has been reported earlier: http://rubyforge.org/tracker/index.ph…

---

## [I & Q channels in source module](https://www.ruby-forum.com/t/i-q-channels-in-source-module/241690)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 2\
**Last updated:** [April 24, 2015, 3:24pm UTC](https://www.ruby-forum.com/t/i-q-channels-in-source-module/241690 "2015-04-24T15:24:32Z")

</div>

I am writing a source module/block and I generate 16 bit signed I and Q values. There is first a 16 bit I value then a 16 bit Q value repeated 1024 times. In my source module I have: usbradio\_impl::usbradio\_impl() …

---

## [Allow access to certain client addresses or use auth\_basic](https://www.ruby-forum.com/t/allow-access-to-certain-client-addresses-or-use-auth-basic/241330)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 2\
**Last updated:** [April 1, 2015, 9:07am UTC](https://www.ruby-forum.com/t/allow-access-to-certain-client-addresses-or-use-auth-basic/241330 "2015-04-01T09:07:37Z")

</div>

Hello Mailing list, is there a way to do following in nginx server or location config. allow access to certain client addresses if the ip is not in the list, allow access by ngx\_http\_auth\_basic\_module Thanks for any…

---

## [Anyone kowns an eruby language reference?](https://www.ruby-forum.com/t/anyone-kowns-an-eruby-language-reference/232169)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 2\
**Last updated:** [September 23, 2014, 4:49pm UTC](https://www.ruby-forum.com/t/anyone-kowns-an-eruby-language-reference/232169 "2014-09-23T16:49:19Z")

</div>

Hi All, I could only found some introduction on eruby, but not a complete language reference. Could anyone provide some help? Thanks.

---

## [$ rails --version : Output checking](https://www.ruby-forum.com/t/rails-version-output-checking/232055)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 2\
**Last updated:** [September 17, 2014, 8:09am UTC](https://www.ruby-forum.com/t/rails-version-output-checking/232055 "2014-09-17T08:09:31Z")

</div>

I had a query and thank you for helping me in installing Rails. $ gem install rails Command is running correctly and installed Rails. Now I execute command: cd bin Output is: C:\\Ruby200\\bin Executed command: $ ra…

---

## [Question about headr\_payload\_demux module](https://www.ruby-forum.com/t/question-about-headr-payload-demux-module/231475)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 2\
**Last updated:** [August 10, 2014, 5:13pm UTC](https://www.ruby-forum.com/t/question-about-headr-payload-demux-module/231475 "2014-08-10T17:13:04Z")

</div>

Hi all, I am reading “header\_payload\_demux” module, I have some questions about it. 1, in “header\_payload\_demux\_impl.cc” line 235, seems need update nread’s value nread += trigger\_offset; I think without this upda…

---

## [How to convert from message to complex/float](https://www.ruby-forum.com/t/how-to-convert-from-message-to-complex-float/240753)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 2\
**Last updated:** [May 7, 2014, 3:50pm UTC](https://www.ruby-forum.com/t/how-to-convert-from-message-to-complex-float/240753 "2014-05-07T15:50:44Z")

</div>

Dear List, I’m beginning with gr-mac. (https://github.com/jmalsbury/gr-mac). I need complex/float data to process but some blocks give message as output (Tagged Stream to PDU). I did try using Message Source to conve…

---

## [Active Record from an existing PostgreSQL database](https://www.ruby-forum.com/t/active-record-from-an-existing-postgresql-database/239151)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 2\
**Last updated:** [February 14, 2014, 12:41pm UTC](https://www.ruby-forum.com/t/active-record-from-an-existing-postgresql-database/239151 "2014-02-14T12:41:25Z")

</div>

I have generated a model and a controller in rails 4,Client and ClientsController, and configure the database.yml with the postgres adapater and the database name, and i want that rails get the table attributes from t…

---

## [String interpolation](https://www.ruby-forum.com/t/string-interpolation/237074)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 2\
**Last updated:** [October 23, 2013, 4:35pm UTC](https://www.ruby-forum.com/t/string-interpolation/237074 "2013-10-23T16:35:29Z")

</div>

Hi! I’m confronted with some problems in strings. If I create string like this one: junk = “You junked %{item}” Then I can put text into it like this: junk % { :item =\> ‘some item’ } But if I get this string: …

---

## [Delayed 503 limit\_req response - feature request](https://www.ruby-forum.com/t/delayed-503-limit-req-response-feature-request/229617)

<div class="topic-metadata">

**Author:** [@CM\_Fields](https://www.ruby-forum.com/u/CM_Fields)\
**Replies:** 2\
**Last updated:** [January 28, 2013, 9:09pm UTC](https://www.ruby-forum.com/t/delayed-503-limit-req-response-feature-request/229617 "2013-01-28T21:09:12Z")

</div>

Nginx Feature Request: Delay 503 limit\_req responses We would like to delay the 503 response to clients which exceed the limit\_req value rather then send an immediate 503. The delay would be in milliseconds or in tent…

---

## [Initialization of new model objects in Rails](https://www.ruby-forum.com/t/initialization-of-new-model-objects-in-rails/225194)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 2\
**Last updated:** [December 20, 2012, 2:35am UTC](https://www.ruby-forum.com/t/initialization-of-new-model-objects-in-rails/225194 "2012-12-20T02:35:07Z")

</div>

Hey guys… having an issue that hopefully someone can help with. I have a ActiveRecord model called WebPage, it has two fields - url and title. I want the title to be determined by parsing the html (I’m using Nokogiri…

---

## [Any is plugin available to support rhtml and rxml in rails 3.x](https://www.ruby-forum.com/t/any-is-plugin-available-to-support-rhtml-and-rxml-in-rails-3-x/224162)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 2\
**Last updated:** [November 2, 2012, 4:32pm UTC](https://www.ruby-forum.com/t/any-is-plugin-available-to-support-rhtml-and-rxml-in-rails-3-x/224162 "2012-11-02T16:32:53Z")

</div>

Any plugin is available to support rxml or rhtml files in Rails 3.x. Thanks, Rak

---

## [Link to the latest stable release of nginx](https://www.ruby-forum.com/t/link-to-the-latest-stable-release-of-nginx/223302)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 2\
**Last updated:** [October 2, 2012, 7:13pm UTC](https://www.ruby-forum.com/t/link-to-the-latest-stable-release-of-nginx/223302 "2012-10-02T19:13:29Z")

</div>

Hi, Can you put a symbolic link in Index of /download/ that would point to the latest stable release of nginx and that would be updated with each release? Something like: http://nginx.org/download/nginx-current.tar.g…

---

## [Complex square wave source](https://www.ruby-forum.com/t/complex-square-wave-source/220780)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 2\
**Last updated:** [June 21, 2012, 4:21am UTC](https://www.ruby-forum.com/t/complex-square-wave-source/220780 "2012-06-21T04:21:58Z")

</div>

This is probably a Tom question, but I’m of course open to suggestions from anyone. This is a restatement of Mario R.'s question on 6/8 after additional conversation on the IRC channel. I think it didn’t get much res…

---

## [How to call an array from one ruby script to another](https://www.ruby-forum.com/t/how-to-call-an-array-from-one-ruby-script-to-another/214299)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 2\
**Last updated:** [November 29, 2011, 12:34am UTC](https://www.ruby-forum.com/t/how-to-call-an-array-from-one-ruby-script-to-another/214299 "2011-11-29T00:34:50Z")

</div>

Can we call an array from one ruby script to another and access array elements.? for example : my first rb file 1.rb $joe = “one” $po = “two” $so = “three” names = \[ $joe, $po, $so \] second rb file 2.rb requir…

---

## [\[Ruby 1.9 - Bug #4826\]\[Assigned\] Date fails RubySpec](https://www.ruby-forum.com/t/ruby-1-9-bug-4826-assigned-date-fails-rubyspec/207864)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 2\
**Last updated:** [June 6, 2011, 3:21am UTC](https://www.ruby-forum.com/t/ruby-1-9-bug-4826-assigned-date-fails-rubyspec/207864 "2011-06-06T03:21:53Z")

</div>

Issue #4826 has been reported by Yui NARUSE. Bug #4826: Date fails RubySpec Author: Yui NARUSE Status: Assigned Priority: Normal Assignee: tadayoshi funaba Category: Target version: ruby -v: ruby 1.9.3dev (2011…

---

## [Rails 3 Forces HTML Escape of Forms](https://www.ruby-forum.com/t/rails-3-forces-html-escape-of-forms/206921)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 2\
**Last updated:** [May 14, 2011, 5:28am UTC](https://www.ruby-forum.com/t/rails-3-forces-html-escape-of-forms/206921 "2011-05-14T05:28:39Z")

</div>

I have a legacy application I ported from Rails 2.x. I found that the escaping was occurring where it shouldn’t, like in creation of forms, and I couldn’t turn it off. I found two mechanisms that should have disabled …

---

## [Please help me run hello world in net bean ide](https://www.ruby-forum.com/t/please-help-me-run-hello-world-in-net-bean-ide/204890)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 2\
**Last updated:** [March 24, 2011, 7:07am UTC](https://www.ruby-forum.com/t/please-help-me-run-hello-world-in-net-bean-ide/204890 "2011-03-24T07:07:18Z")

</div>

– am really frustrated now Rahul

---

## [Ettus Gnu Radio USRP with TVRX & DBSRX modules on Ebay](https://www.ruby-forum.com/t/ettus-gnu-radio-usrp-with-tvrx-dbsrx-modules-on-ebay/191683)

<div class="topic-metadata">

**Author:** [@tomrobinson](https://www.ruby-forum.com/u/tomrobinson)\
**Replies:** 2\
**Last updated:** [July 27, 2010, 5:57pm UTC](https://www.ruby-forum.com/t/ettus-gnu-radio-usrp-with-tvrx-dbsrx-modules-on-ebay/191683 "2010-07-27T17:57:45Z")

</div>

http://cgi.ebay.com/ws/eBayISAPI.dll?ViewItem&item=190417199270

---

## [Configuring GIT repository on dreamhost - novice](https://www.ruby-forum.com/t/configuring-git-repository-on-dreamhost-novice/192017)

<div class="topic-metadata">

**Author:** [@sachin](https://www.ruby-forum.com/u/sachin)\
**Replies:** 2\
**Last updated:** [July 22, 2010, 5:54pm UTC](https://www.ruby-forum.com/t/configuring-git-repository-on-dreamhost-novice/192017 "2010-07-22T17:54:20Z")

</div>

Hello Experts, I am trying to host a git repository in dreamhost, have a pre installed git version 1.5.4.1 on the server. I have referred to many sites on which a lot of information given. http://www.winstonyw.com/2…

---

## [Very Simple Swing GUI does not work](https://www.ruby-forum.com/t/very-simple-swing-gui-does-not-work/188040)

<div class="topic-metadata">

**Author:** [@nerdplusplus](https://www.ruby-forum.com/u/nerdplusplus)\
**Replies:** 2\
**Last updated:** [May 4, 2010, 8:00pm UTC](https://www.ruby-forum.com/t/very-simple-swing-gui-does-not-work/188040 "2010-05-04T20:00:09Z")

</div>

I try to build a very simple GUI, in fact a JFrame which only contains a button which is clickable, but it doesnt work properly. The GUI is visible, but when I try to click the button, an error occurs. My code: #Just …

---

## [Uninitialized constant ActiveRecord (NameError)](https://www.ruby-forum.com/t/uninitialized-constant-activerecord-nameerror/187726)

<div class="topic-metadata">

**Author:** [@hemantborole](https://www.ruby-forum.com/u/hemantborole)\
**Replies:** 2\
**Last updated:** [April 28, 2010, 11:59am UTC](https://www.ruby-forum.com/t/uninitialized-constant-activerecord-nameerror/187726 "2010-04-28T11:59:47Z")

</div>

Hi All, I am running a script from console line with command as ruby script/abc.rb. But i am getting error “uninitialized constant ActiveRecord (NameError)”. Why so … ? My first line of the script is class- CronJobs…

---

## [Belongs\_to :through](https://www.ruby-forum.com/t/belongs-to-through/184934)

<div class="topic-metadata">

**Author:** [@joahking](https://www.ruby-forum.com/u/joahking)\
**Replies:** 2\
**Last updated:** [March 10, 2010, 6:14pm UTC](https://www.ruby-forum.com/t/belongs-to-through/184934 "2010-03-10T18:14:56Z")

</div>

hi there, lets say you have: A that belongs\_to :b, and B belongs\_to :c how do you normally go about saying A belongs\_to :c, :through =\> :b ?? searching I found two solutions: method: class A def c b.c end end …

---

## [Two level Navigational menus](https://www.ruby-forum.com/t/two-level-navigational-menus/164160)

<div class="topic-metadata">

**Author:** [@bruparel](https://www.ruby-forum.com/u/bruparel)\
**Replies:** 2\
**Last updated:** [May 12, 2009, 5:10pm UTC](https://www.ruby-forum.com/t/two-level-navigational-menus/164160 "2009-05-12T17:10:56Z")

</div>

This has turned out to be a bit more difficult than I anticipated. I thought that creating two levels of generic navigational menus should not be that difficult. May be I am missing something. I have done it by bor…

---

## [Finding Quiz Responses (#200)](https://www.ruby-forum.com/t/finding-quiz-responses-200/165249)

<div class="topic-metadata">

**Author:** [@danmcb](https://www.ruby-forum.com/u/danmcb)\
**Replies:** 2\
**Last updated:** [April 25, 2009, 2:40am UTC](https://www.ruby-forum.com/t/finding-quiz-responses-200/165249 "2009-04-25T02:40:28Z")

</div>

\-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- The three rules of Ruby Q.: Please do not post any solutions or spoiler discussion for this quiz until 48 hours have elapsed from the time this m…

---

## [Storing Active record validation code in the database](https://www.ruby-forum.com/t/storing-active-record-validation-code-in-the-database/165756)

<div class="topic-metadata">

**Author:** [@interactivenyc](https://www.ruby-forum.com/u/interactivenyc)\
**Replies:** 2\
**Last updated:** [April 17, 2009, 11:54pm UTC](https://www.ruby-forum.com/t/storing-active-record-validation-code-in-the-database/165756 "2009-04-17T23:54:01Z")

</div>

In the book ‘The Rails Way’, Obie F. discusses keeping active- record validation code within a database and then applying those validations conditionally based upon certain attributes of the model. I had a similar req…

---

## [Cucumber et i18n.translate](https://www.ruby-forum.com/t/cucumber-et-i18n-translate/165375)

<div class="topic-metadata">

**Author:** [@tranquiliste](https://www.ruby-forum.com/u/tranquiliste)\
**Replies:** 2\
**Last updated:** [April 16, 2009, 8:45am UTC](https://www.ruby-forum.com/t/cucumber-et-i18n-translate/165375 "2009-04-16T08:45:40Z")

</div>

Bonjour, Je me met à Cucumber pour mes tests. Tous mes messages sont dans les fichiers de traduction et et je me demandais comment faire pour utiliser translate dans les features pour éviter des erreurs lors des test…

---

## [Changes in specs for routes in rspec 1.1.99.x](https://www.ruby-forum.com/t/changes-in-specs-for-routes-in-rspec-1-1-99-x/161776)

<div class="topic-metadata">

**Author:** [@jmcervera](https://www.ruby-forum.com/u/jmcervera)\
**Replies:** 2\
**Last updated:** [March 3, 2009, 3:48pm UTC](https://www.ruby-forum.com/t/changes-in-specs-for-routes-in-rspec-1-1-99-x/161776 "2009-03-03T15:48:18Z")

</div>

Trying the next release of rspec, I have had to make changes in the existing specs for routing. I have written an script with sed that makes this automatically (two files) spec/upgrade.sed /route\_for/s/id =\> 1/id =\> …

---

## [Undefined method 'each'](https://www.ruby-forum.com/t/undefined-method-each/153475)

<div class="topic-metadata">

**Author:** [@jballanc](https://www.ruby-forum.com/u/jballanc)\
**Replies:** 2\
**Last updated:** [November 17, 2008, 8:12pm UTC](https://www.ruby-forum.com/t/undefined-method-each/153475 "2008-11-17T20:12:54Z")

</div>

I am following along in Ben Scofield’s book (Practical REST on Rails 2 Projects). As I was building the MovieList application, I ran into an undefined method for each, which I can’t figure out how to debug (I am new t…

---

## [Route\_for()](https://www.ruby-forum.com/t/route-for/150473)

<div class="topic-metadata">

**Author:** [@anita](https://www.ruby-forum.com/u/anita)\
**Replies:** 2\
**Last updated:** [October 8, 2008, 11:47pm UTC](https://www.ruby-forum.com/t/route-for/150473 "2008-10-08T23:47:54Z")

</div>

Hello, Can I test in the spec the route taken by the redirect\_to from the controller? The URL is not controller/action. I tried: route\_for(:controller =\> “signup”, :action =\> “confirmation”).should == “/my/set/URL” …

---

## [Hi There](https://www.ruby-forum.com/t/hi-there/146619)

<div class="topic-metadata">

**Author:** [@hendra\_kusuma](https://www.ruby-forum.com/u/hendra_kusuma)\
**Replies:** 2\
**Last updated:** [August 23, 2008, 3:48pm UTC](https://www.ruby-forum.com/t/hi-there/146619 "2008-08-23T15:48:37Z")

</div>

Hi there I’m new member of this mailing-list Is this milist for asking about program-development using ruby-gnome2 or for developing ruby-gnome2? Since I have some questions to ask about And I don’t wanna to bother …

---

## [Where is rubyforge gem?](https://www.ruby-forum.com/t/where-is-rubyforge-gem/144760)

<div class="topic-metadata">

**Author:** [@asetzler](https://www.ruby-forum.com/u/asetzler)\
**Replies:** 2\
**Last updated:** [August 1, 2008, 10:16pm UTC](https://www.ruby-forum.com/t/where-is-rubyforge-gem/144760 "2008-08-01T22:16:20Z")

</div>

At the moment, I’m behind a firewall which doesn’t allow gem install to reach the repository. But I can go to rubyforge and download gems manually and do a gem install -l. I was trying to update hoe, and I got this e…

---

## [Marshal version problem](https://www.ruby-forum.com/t/marshal-version-problem/144220)

<div class="topic-metadata">

**Author:** [@S-gw](https://www.ruby-forum.com/u/S-gw)\
**Replies:** 2\
**Last updated:** [July 27, 2008, 4:20am UTC](https://www.ruby-forum.com/t/marshal-version-problem/144220 "2008-07-27T04:20:22Z")

</div>

I have a script that generates a serialized file of native data structures (hash of hashes & arrays and such). In a short spike script I wanted to load up a particular file, and got a version error: incompatible mars…

---

## [Pasar variable. Es MUY basico, pero no me sale](https://www.ruby-forum.com/t/pasar-variable-es-muy-basico-pero-no-me-sale/139881)

<div class="topic-metadata">

**Author:** [@forever](https://www.ruby-forum.com/u/forever)\
**Replies:** 2\
**Last updated:** [June 8, 2008, 5:23pm UTC](https://www.ruby-forum.com/t/pasar-variable-es-muy-basico-pero-no-me-sale/139881 "2008-06-08T17:23:56Z")

</div>

\---------------CONTROLADOR---------------------------------------- def crear @current\_user = Usuario.authenticate(params\[:login\], params\[:password\]) if @current\_user @nota = Nota.new(:fecha =\> params\[:fecha\], :descr…

---

## [Undefined method \`table\_name' for REXML::Comment:Class](https://www.ruby-forum.com/t/undefined-method-table-name-for-rexml-class/137498)

<div class="topic-metadata">

**Author:** [@johan-vm](https://www.ruby-forum.com/u/johan-vm)\
**Replies:** 2\
**Last updated:** [May 14, 2008, 9:48am UTC](https://www.ruby-forum.com/t/undefined-method-table-name-for-rexml-class/137498 "2008-05-14T09:48:37Z")

</div>

Hi, I just got into polymorphic relations. It works very nice, but I ran into a strange problem that can be reproduced easily. I don’t have another workaround than to uncomment an include, but thats lame. Here it is: …

---

## [Encabezados con PDF writer](https://www.ruby-forum.com/t/encabezados-con-pdf-writer/118790)

<div class="topic-metadata">

**Author:** [@Angel\_Mauricio\_Pino](https://www.ruby-forum.com/u/Angel_Mauricio_Pino)\
**Replies:** 2\
**Last updated:** [April 2, 2008, 5:17pm UTC](https://www.ruby-forum.com/t/encabezados-con-pdf-writer/118790 "2008-04-02T17:17:48Z")

</div>

Mi tema es con PDF::Writer. Ya solucione lo de las columnas , resulto muy fÃ¡cil, ahora me estoy en poner el encabezado, lineas que puse en la primera pÃ¡gina, necesito que estÃ©n en cada una de las siguientes pÃ¡gi…

---

## [Sftp.put\_file problems on Linux](https://www.ruby-forum.com/t/sftp-put-file-problems-on-linux/131497)

<div class="topic-metadata">

**Author:** [@milo](https://www.ruby-forum.com/u/milo)\
**Replies:** 2\
**Last updated:** [March 11, 2008, 10:36am UTC](https://www.ruby-forum.com/t/sftp-put-file-problems-on-linux/131497 "2008-03-11T10:36:59Z")

</div>

I have written a simple script to locate particular files on a server and copy them elsewhere with sftp. There is one particular part of the script that gives me some trouble: begin sftp.put\_file("#{ramdisk}/#{file…

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

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