# Top

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

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

---

## [Changing the controller and action before that will be loaded](https://www.ruby-forum.com/t/changing-the-controller-and-action-before-that-will-be-loaded/211628)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 4\
**Last updated:** [September 9, 2011, 10:52am UTC](https://www.ruby-forum.com/t/changing-the-controller-and-action-before-that-will-be-loaded/211628 "2011-09-09T10:52:14Z")

</div>

Hi, guys. My problem is when i touch the route like ‘/book/ruby’ that will loads the ApplicationController first, and then loads the action ruby of the controller book, the loading order as the following, First lo…

---

## [Methods generated for an AR field: what do they do?](https://www.ruby-forum.com/t/methods-generated-for-an-ar-field-what-do-they-do/210926)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 4\
**Last updated:** [August 21, 2011, 10:14pm UTC](https://www.ruby-forum.com/t/methods-generated-for-an-ar-field-what-do-they-do/210926 "2011-08-21T22:14:13Z")

</div>

If my table reads like this: create\_table(:pet\_owners, :force =\> true) do |t| t.boolean :has\_allergies end … then ActiveRecord::Base generates the following methods: :has\_allergies :has\_allergies= :has\_allergies? …

---

## [Problems rake db:create](https://www.ruby-forum.com/t/problems-rake-db-create/195008)

<div class="topic-metadata">

**Author:** [@mark](https://www.ruby-forum.com/u/mark)\
**Replies:** 4\
**Last updated:** [September 24, 2010, 3:34pm UTC](https://www.ruby-forum.com/t/problems-rake-db-create/195008 "2010-09-24T15:34:07Z")

</div>

Hi, i have some problems by type in rake db:create It always says: rake aborted! can’t activate rails (= 2.3.5, runtime) for \[\], already activated rails-3.0.0 for \[\] I have set Rails version to 2.3.5 but the proble…

---

## [Need help to detect error](https://www.ruby-forum.com/t/need-help-to-detect-error/178782)

<div class="topic-metadata">

**Author:** [@VSSS\_ctor\_AdriSSSSn](https://www.ruby-forum.com/u/VSSS_ctor_AdriSSSSn)\
**Replies:** 4\
**Last updated:** [November 16, 2009, 9:00pm UTC](https://www.ruby-forum.com/t/need-help-to-detect-error/178782 "2009-11-16T21:00:52Z")

</div>

I don’t know what am I doing wrong, can anyone help me? These two programs look very similar, but they yield different results. Can anyone confirm this “error”? ========================================================…

---

## [Ruby beginner](https://www.ruby-forum.com/t/ruby-beginner/177118)

<div class="topic-metadata">

**Author:** [@lgas](https://www.ruby-forum.com/u/lgas)\
**Replies:** 4\
**Last updated:** [October 12, 2009, 5:55am UTC](https://www.ruby-forum.com/t/ruby-beginner/177118 "2009-10-12T05:55:32Z")

</div>

hi guys reading here seems like everyone is a whole lot smarter at this than i am…which is good “right”! I really am a beginner at this stuff…i downloaded ruby…good news…but how does it work…what kind of programs can …

---

## [Pseudo random](https://www.ruby-forum.com/t/pseudo-random/172696)

<div class="topic-metadata">

**Author:** [@Kless](https://www.ruby-forum.com/u/Kless)\
**Replies:** 4\
**Last updated:** [July 28, 2009, 2:37am UTC](https://www.ruby-forum.com/t/pseudo-random/172696 "2009-07-28T02:37:45Z")

</div>

Is safe to use Kernel#rand to get pseudo-random integers?

---

## [Production and cache](https://www.ruby-forum.com/t/production-and-cache/172447)

<div class="topic-metadata">

**Author:** [@alesc](https://www.ruby-forum.com/u/alesc)\
**Replies:** 4\
**Last updated:** [July 22, 2009, 2:37pm UTC](https://www.ruby-forum.com/t/production-and-cache/172447 "2009-07-22T14:37:14Z")

</div>

Hello! i have made a multisite system. Depending on the url of the request (www.clerk.it / www.fastshare.it / …) it generate a different website, this is the fron-end, each sites have a different back-end too where t…

---

## [I guess my configurations is fabar?](https://www.ruby-forum.com/t/i-guess-my-configurations-is-fabar/169525)

<div class="topic-metadata">

**Author:** [@rickm](https://www.ruby-forum.com/u/rickm)\
**Replies:** 4\
**Last updated:** [June 5, 2009, 3:43pm UTC](https://www.ruby-forum.com/t/i-guess-my-configurations-is-fabar/169525 "2009-06-05T15:43:13Z")

</div>

I am trying to put my development env on a new Ubuntu box. I use NetBeans as my IDE. When I attempt to launch the initial migration I get the following error: rake aborted! no such file to load – net/https Since I h…

---

## [Cycle(...) - is there some sort of only\_first\_time(...)?](https://www.ruby-forum.com/t/cycle-is-there-some-sort-of-only-first-time/165926)

<div class="topic-metadata">

**Author:** [@josh](https://www.ruby-forum.com/u/josh)\
**Replies:** 4\
**Last updated:** [April 20, 2009, 2:28am UTC](https://www.ruby-forum.com/t/cycle-is-there-some-sort-of-only-first-time/165926 "2009-04-20T02:28:48Z")

</div>

Hi all The cycle() method is very handy in views. But is there some sort of only\_first\_time() that returns the passed value only the first time it is invoked within a view? Thanks for help :slight\_smile: Josh

---

## [Can't find table with ActiveRecord in different thread](https://www.ruby-forum.com/t/cant-find-table-with-activerecord-in-different-thread/164659)

<div class="topic-metadata">

**Author:** [@juan\_zanos](https://www.ruby-forum.com/u/juan_zanos)\
**Replies:** 4\
**Last updated:** [April 8, 2009, 7:24am UTC](https://www.ruby-forum.com/t/cant-find-table-with-activerecord-in-different-thread/164659 "2009-04-08T07:24:47Z")

</div>

Hi, I’m not sure if this is a ruby question or a rails question. If I create an ActiveRecord table in one thread I can’t find it in another thread, which I’d like to be able to do. Interestingly, this behavior seem…

---

## [Attribute error DTD](https://www.ruby-forum.com/t/attribute-error-dtd/159429)

<div class="topic-metadata">

**Author:** [@feldmaus](https://www.ruby-forum.com/u/feldmaus)\
**Replies:** 4\
**Last updated:** [February 4, 2009, 5:41pm UTC](https://www.ruby-forum.com/t/attribute-error-dtd/159429 "2009-02-04T17:41:37Z")

</div>

Hi, i am trying to compile gnuradio on my Suse 11.1 PC. For compiling and i am using my normal user . For i am using the user . I downloaded and installed SDCC from Source. Then i downloaded and compiled the gnura…

---

## [RbFind 1.1](https://www.ruby-forum.com/t/rbfind-1-1/155984)

<div class="topic-metadata">

**Author:** [@Bertram\_S](https://www.ruby-forum.com/u/Bertram_S)\
**Replies:** 4\
**Last updated:** [December 22, 2008, 3:08pm UTC](https://www.ruby-forum.com/t/rbfind-1-1/155984 "2008-12-22T15:08:57Z")

</div>

Hi, yet another find tool: http://raa.ruby-lang.org/project/rbfind. Hope you enjoy it. Seek and ye shall find. Bertram

---

## [Hopefully simple regex](https://www.ruby-forum.com/t/hopefully-simple-regex/155891)

<div class="topic-metadata">

**Author:** [@stephen\_OSD](https://www.ruby-forum.com/u/stephen_OSD)\
**Replies:** 4\
**Last updated:** [December 17, 2008, 11:45pm UTC](https://www.ruby-forum.com/t/hopefully-simple-regex/155891 "2008-12-17T23:45:44Z")

</div>

Hi, I am trying to make a regex that will capture strings that look like ‘@string’ surrounded by whitespace or at the start or end of a line - here is the spec: require ‘test/unit’ class RegexTest \< Test::Unit::Test…

---

## [RJS and :visual\_effect](https://www.ruby-forum.com/t/rjs-and-visual-effect/149119)

<div class="topic-metadata">

**Author:** [@rvork](https://www.ruby-forum.com/u/rvork)\
**Replies:** 4\
**Last updated:** [October 1, 2008, 7:30am UTC](https://www.ruby-forum.com/t/rjs-and-visual-effect/149119 "2008-10-01T07:30:09Z")

</div>

Hi everyone, I’m working with rails 2.1.1 and i’m in trouble with the scriptaculous helper. I have something like : \<%= link\_to\_function “Details” do |page| page\[‘toto’\].visual\_effect(:toggle\_blind) end %\> …

---

## [WIN32OLE Question](https://www.ruby-forum.com/t/win32ole-question/148770)

<div class="topic-metadata">

**Author:** [@roxah](https://www.ruby-forum.com/u/roxah)\
**Replies:** 4\
**Last updated:** [September 18, 2008, 8:36pm UTC](https://www.ruby-forum.com/t/win32ole-question/148770 "2008-09-18T20:36:07Z")

</div>

Hello all, I’m currently using the win32ole api to access an application on a Windows machine using the application’s COM interface. I noticed when reading through the documents for the api that the win32ole construc…

---

## [Equation Graphing (#176)](https://www.ruby-forum.com/t/equation-graphing-176/147804)

<div class="topic-metadata">

**Author:** [@mansfiem](https://www.ruby-forum.com/u/mansfiem)\
**Replies:** 4\
**Last updated:** [September 11, 2008, 9:57am UTC](https://www.ruby-forum.com/t/equation-graphing-176/147804 "2008-09-11T09:57:41Z")

</div>

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

---

## [Confused by scope in ruby](https://www.ruby-forum.com/t/confused-by-scope-in-ruby/147089)

<div class="topic-metadata">

**Author:** [@mischa](https://www.ruby-forum.com/u/mischa)\
**Replies:** 4\
**Last updated:** [August 28, 2008, 10:42pm UTC](https://www.ruby-forum.com/t/confused-by-scope-in-ruby/147089 "2008-08-28T22:42:43Z")

</div>

Hello, I’ve been writing in ruby for a bit, but ran into something while working on a project that struck me as weird, and could not find a ready explanation. Sorry if this is something super basic… Here is a simpli…

---

## [Problemm using ruby classes](https://www.ruby-forum.com/t/problemm-using-ruby-classes/147008)

<div class="topic-metadata">

**Author:** [@toospoiled](https://www.ruby-forum.com/u/toospoiled)\
**Replies:** 4\
**Last updated:** [August 28, 2008, 3:36pm UTC](https://www.ruby-forum.com/t/problemm-using-ruby-classes/147008 "2008-08-28T15:36:19Z")

</div>

I’m new on ruby so probably my question is stupid. I’ve created some ruby classes, but when I try to use them with the operator .new from another program file, it gives me this error: uninitializad constant SQLite\_Uti…

---

## [About time compare](https://www.ruby-forum.com/t/about-time-compare/146542)

<div class="topic-metadata">

**Author:** [@daociyiyou](https://www.ruby-forum.com/u/daociyiyou)\
**Replies:** 4\
**Last updated:** [August 22, 2008, 4:13pm UTC](https://www.ruby-forum.com/t/about-time-compare/146542 "2008-08-22T16:13:35Z")

</div>

I have a submmited date param whose data type is date and want to use the Time object and the date param to judge if the date param passes the today. I use the following codes judging: ######### date.yday-Time.now.yd…

---

## [Rails & mysql](https://www.ruby-forum.com/t/rails-mysql/146258)

<div class="topic-metadata">

**Author:** [@blueshadow](https://www.ruby-forum.com/u/blueshadow)\
**Replies:** 4\
**Last updated:** [August 19, 2008, 5:03pm UTC](https://www.ruby-forum.com/t/rails-mysql/146258 "2008-08-19T17:03:50Z")

</div>

Hello! It’s possible to run mySql whit rails this days? Pleas tel me all process on windows xp!

---

## [Regular expresson isue](https://www.ruby-forum.com/t/regular-expresson-isue/145702)

<div class="topic-metadata">

**Author:** [@dorelal](https://www.ruby-forum.com/u/dorelal)\
**Replies:** 4\
**Last updated:** [August 13, 2008, 11:43am UTC](https://www.ruby-forum.com/t/regular-expresson-isue/145702 "2008-08-13T11:43:40Z")

</div>

I have following regular expression to parse time. (\[0-9\]|0\[0-9\]|1\[012\]):(\[0-9\]|0\[0-9\]|\[1-5\]\[0-9\])\\s\*(am|pm) I don’t want this regext to match 13:45 PM because the the numerical value before the colon should be limite…

---

## [MySQL/Ruby Module](https://www.ruby-forum.com/t/mysql-ruby-module/142247)

<div class="topic-metadata">

**Author:** [@jturney](https://www.ruby-forum.com/u/jturney)\
**Replies:** 4\
**Last updated:** [July 7, 2008, 9:45am UTC](https://www.ruby-forum.com/t/mysql-ruby-module/142247 "2008-07-07T09:45:32Z")

</div>

After downloading the mysql-ruby-2.8pre4 from \[http://tmtm.org/downloads/mysql/ruby/\]…I stuck it into C:\\ruby\\lib\\mysql-ruby-2.8pre4. The instructions on MySQL/Ruby says I need to run the command % ruby extconf.rb: c…

---

## [Problem in using: dqpsk\_mod() with gr.top\_block](https://www.ruby-forum.com/t/problem-in-using-dqpsk-mod-with-gr-top-block/140521)

<div class="topic-metadata">

**Author:** [@tttv](https://www.ruby-forum.com/u/tttv)\
**Replies:** 4\
**Last updated:** [June 15, 2008, 10:59pm UTC](https://www.ruby-forum.com/t/problem-in-using-dqpsk-mod-with-gr-top-block/140521 "2008-06-15T22:59:44Z")

</div>

Hi, I am new in using GNURadio. I try to test the dqpsk\_mod() function and have always this error: ValueError: unable to coerce endpoint Could anyone tell me what wrong I have made? Thanks so much. Program: #no GU…

---

## [Uninitialized constant](https://www.ruby-forum.com/t/uninitialized-constant/134658)

<div class="topic-metadata">

**Author:** [@lfeistel](https://www.ruby-forum.com/u/lfeistel)\
**Replies:** 4\
**Last updated:** [April 13, 2008, 5:30pm UTC](https://www.ruby-forum.com/t/uninitialized-constant/134658 "2008-04-13T17:30:41Z")

</div>

Hi guys, I’m part way through a RoR application, for some reason whenever I add new controllers (using scaffold) I get an uninitialized constant \[name of controller\] error. The first few controllers work fine, the onl…

---

## [Why my posts appear twice?](https://www.ruby-forum.com/t/why-my-posts-appear-twice/133427)

<div class="topic-metadata">

**Author:** [@ribes](https://www.ruby-forum.com/u/ribes)\
**Replies:** 4\
**Last updated:** [March 31, 2008, 11:15pm UTC](https://www.ruby-forum.com/t/why-my-posts-appear-twice/133427 "2008-03-31T23:15:15Z")

</div>

Team, Somehow all my posts appears twice. Do anyone knows why and how I can prevent that annoying side effect? Thank you Victor

---

## [Making all my Ruby files pretty](https://www.ruby-forum.com/t/making-all-my-ruby-files-pretty/132234)

<div class="topic-metadata">

**Author:** [@Kyrre\_NygSSSSrd](https://www.ruby-forum.com/u/Kyrre_NygSSSSrd)\
**Replies:** 4\
**Last updated:** [March 19, 2008, 5:33pm UTC](https://www.ruby-forum.com/t/making-all-my-ruby-files-pretty/132234 "2008-03-19T17:33:35Z")

</div>

Hello! I’m trying to make a simple Ruby code beautifier to set me at ease. I know there’s already rbeautify: But I need to do some more: Like making, comments like these Into, Comments like these. E.g. making…

---

## [Getting a field value in a form with ruby](https://www.ruby-forum.com/t/getting-a-field-value-in-a-form-with-ruby/130851)

<div class="topic-metadata">

**Author:** [@pimeamark](https://www.ruby-forum.com/u/pimeamark)\
**Replies:** 4\
**Last updated:** [March 3, 2008, 11:51pm UTC](https://www.ruby-forum.com/t/getting-a-field-value-in-a-form-with-ruby/130851 "2008-03-03T23:51:24Z")

</div>

Hi guys. I have a form to submit an assessment for one of my web apps. The model contains a datetime field called ends\_at which is when the assessment is supposed to end. Before, I had a datetime\_select field for this…

---

## [Sobre formularios+ajax](https://www.ruby-forum.com/t/sobre-formularios-ajax/126234)

<div class="topic-metadata">

**Author:** [@Lleir\_Borras\_M](https://www.ruby-forum.com/u/Lleir_Borras_M)\
**Replies:** 4\
**Last updated:** [January 16, 2008, 5:25pm UTC](https://www.ruby-forum.com/t/sobre-formularios-ajax/126234 "2008-01-16T17:25:17Z")

</div>

AÃ±adiendo campos en un formulario dinamicamente con ajax, al acer el submit no me aparecen en la lista de parametros que llegan al servidor, algun consejo para solucionar el problema?

---

## [Rails deployment](https://www.ruby-forum.com/t/rails-deployment/125554)

<div class="topic-metadata">

**Author:** [@Henry\_Addo](https://www.ruby-forum.com/u/Henry_Addo)\
**Replies:** 4\
**Last updated:** [January 10, 2008, 1:32pm UTC](https://www.ruby-forum.com/t/rails-deployment/125554 "2008-01-10T13:32:46Z")

</div>

Currently, I have Apache2 as my frontend and Mongrel as the rails application server. All request comes into apache but requests for the Rails app are proxied ( mod\_proxy ) to an instance of the Mongrel web server…

---

## [Making an child before the parent is commited to DB](https://www.ruby-forum.com/t/making-an-child-before-the-parent-is-commited-to-db/124965)

<div class="topic-metadata">

**Author:** [@galeal](https://www.ruby-forum.com/u/galeal)\
**Replies:** 4\
**Last updated:** [January 4, 2008, 9:21pm UTC](https://www.ruby-forum.com/t/making-an-child-before-the-parent-is-commited-to-db/124965 "2008-01-04T21:21:36Z")

</div>

Say I have a model something like this Parent has\_many kids Kid belongs\_to Parent. Now I have view for say a new Parent. I also have provided an AJAX form so that they can fill in all the children they have as well. …

---

## [Adding plugins to svn](https://www.ruby-forum.com/t/adding-plugins-to-svn/124061)

<div class="topic-metadata">

**Author:** [@chrisolsen](https://www.ruby-forum.com/u/chrisolsen)\
**Replies:** 4\
**Last updated:** [December 24, 2007, 8:45am UTC](https://www.ruby-forum.com/t/adding-plugins-to-svn/124061 "2007-12-24T08:45:48Z")

</div>

Since many of the plugins that I have are from an svn repository and contain .svn folders, what is the proper way to add the plugins to my svn repository without getting errors thrown? Thanks.

---

## [Public folder simple question](https://www.ruby-forum.com/t/public-folder-simple-question/120077)

<div class="topic-metadata">

**Author:** [@gianluca\_t](https://www.ruby-forum.com/u/gianluca_t)\
**Replies:** 4\
**Last updated:** [November 16, 2007, 11:18pm UTC](https://www.ruby-forum.com/t/public-folder-simple-question/120077 "2007-11-16T23:18:25Z")

</div>

Hi to all, I’ve a simple question: does it possible to change the public folder address based on database value into application controller ? This because I must handle a multidomain rails application and I must sep…

---

## [Tests doesn't clear my tables?](https://www.ruby-forum.com/t/tests-doesnt-clear-my-tables/120173)

<div class="topic-metadata">

**Author:** [@Davi](https://www.ruby-forum.com/u/Davi)\
**Replies:** 4\
**Last updated:** [November 14, 2007, 3:16pm UTC](https://www.ruby-forum.com/t/tests-doesnt-clear-my-tables/120173 "2007-11-14T15:16:25Z")

</div>

Hi all. I’m using the following test: \[category\_test.rb\] require File.dirname(FILE) + ‘/…/test\_helper’ class CategoryTest \< Test::Unit::TestCase fixtures :categories def aequal(expected, got, message=’’) assert\_equ…

---

## [Seg fault when building ruby 1.8.6-p111 on MacOS X 10.5](https://www.ruby-forum.com/t/seg-fault-when-building-ruby-1-8-6-p111-on-macos-x-10-5/118987)

<div class="topic-metadata">

**Author:** [@mslagell](https://www.ruby-forum.com/u/mslagell)\
**Replies:** 4\
**Last updated:** [November 2, 2007, 2:06am UTC](https://www.ruby-forum.com/t/seg-fault-when-building-ruby-1-8-6-p111-on-macos-x-10-5/118987 "2007-11-02T02:06:42Z")

</div>

I’m getting a segmentation fault when building ruby 1.8.6-p111 (from source and by itself, not as part of a larger distribution). I’m running on a clean version of MacOS X 10.5 and a new build of readline 5.2 installe…

---

## [Bindings/wrapper: how to?](https://www.ruby-forum.com/t/bindings-wrapper-how-to/115973)

<div class="topic-metadata">

**Author:** [@john\_old](https://www.ruby-forum.com/u/john_old)\
**Replies:** 4\
**Last updated:** [October 1, 2007, 6:35am UTC](https://www.ruby-forum.com/t/bindings-wrapper-how-to/115973 "2007-10-01T06:35:26Z")

</div>

Any tips or resources for creating a wrapper or bindings in Ruby to an existing C library? How does one go about this correctly?

---

## [How can I create array of strings or a hash from ActiveRecord result set?](https://www.ruby-forum.com/t/how-can-i-create-array-of-strings-or-a-hash-from-activerecord-result-set/115548)

<div class="topic-metadata">

**Author:** [@eafonsof](https://www.ruby-forum.com/u/eafonsof)\
**Replies:** 4\
**Last updated:** [September 26, 2007, 3:27pm UTC](https://www.ruby-forum.com/t/how-can-i-create-array-of-strings-or-a-hash-from-activerecord-result-set/115548 "2007-09-26T15:27:44Z")

</div>

Is there a way to do that in a single shot? Or what’s the most efficient way of doing that? I’ve researched a lot but did not find out how to do it yet. Any help will be much appreciated. Example (the syntax is not c…

---

## [Eclipse ruby plugin](https://www.ruby-forum.com/t/eclipse-ruby-plugin/113446)

<div class="topic-metadata">

**Author:** [@coolgeng\_coolgeng](https://www.ruby-forum.com/u/coolgeng_coolgeng)\
**Replies:** 4\
**Last updated:** [September 5, 2007, 9:02am UTC](https://www.ruby-forum.com/t/eclipse-ruby-plugin/113446 "2007-09-05T09:02:29Z")

</div>

How to user ruby-plugin in eclipse 3.2 to build a project?

---

## [Keeping track of gems](https://www.ruby-forum.com/t/keeping-track-of-gems/104266)

<div class="topic-metadata">

**Author:** [@Tim\_U](https://www.ruby-forum.com/u/Tim_U)\
**Replies:** 4\
**Last updated:** [May 16, 2007, 9:52am UTC](https://www.ruby-forum.com/t/keeping-track-of-gems/104266 "2007-05-16T09:52:04Z")

</div>

Is there a tool to keep track of gems and the deploy them to servers? I have lots of gems installed but I only need a subset of them on the production machines. It’s a bit of a mess but here is the situation. I d…

---

## [Problems with replacing text](https://www.ruby-forum.com/t/problems-with-replacing-text/83023)

<div class="topic-metadata">

**Author:** [@samckayak](https://www.ruby-forum.com/u/samckayak)\
**Replies:** 4\
**Last updated:** [January 23, 2007, 4:09am UTC](https://www.ruby-forum.com/t/problems-with-replacing-text/83023 "2007-01-23T04:09:42Z")

</div>

I am creating a small chatbot program in Ruby, and I need it to be able to change the word “I” to “You” when it is reading the user input. this is the code I am using: uinput\[‘I’\] = ‘you’ The problem is, whenever I e…

---

## [Newby Question](https://www.ruby-forum.com/t/newby-question/75939)

<div class="topic-metadata">

**Author:** [@Willem\_H](https://www.ruby-forum.com/u/Willem_H)\
**Replies:** 4\
**Last updated:** [November 15, 2006, 7:35am UTC](https://www.ruby-forum.com/t/newby-question/75939 "2006-11-15T07:35:01Z")

</div>

I am following the Depot tutorial in Agile Web D. with Rail, I am getting the following error, NoMethodError in StoreController#empty\_cart undefined method \`empty!’ for #Cart:0x5012250 Here is my call in store\_contro…

---

## [Inserting multiple rows](https://www.ruby-forum.com/t/inserting-multiple-rows/73175)

<div class="topic-metadata">

**Author:** [@zanoni](https://www.ruby-forum.com/u/zanoni)\
**Replies:** 4\
**Last updated:** [October 22, 2006, 8:44pm UTC](https://www.ruby-forum.com/t/inserting-multiple-rows/73175 "2006-10-22T20:44:53Z")

</div>

Form collects multiple parameters from a select list (multiple enabled) what kind of code do i need in the controller ? Stuart –

---

## [Pdf writer not finding public directory](https://www.ruby-forum.com/t/pdf-writer-not-finding-public-directory/67653)

<div class="topic-metadata">

**Author:** [@jazzlover2002](https://www.ruby-forum.com/u/jazzlover2002)\
**Replies:** 4\
**Last updated:** [September 11, 2006, 5:58pm UTC](https://www.ruby-forum.com/t/pdf-writer-not-finding-public-directory/67653 "2006-09-11T17:58:36Z")

</div>

Hi all, I’m attempting to learn about PDF::Writer. I’ve written a brief test program to play with the concepts. Here is the code: pdf = PDF::Writer.new pdf.select\_font "Times-Roman" pdf.text "Hello, Ruby.", :font\_s…

---

## [How many ways can I execute ruby program?](https://www.ruby-forum.com/t/how-many-ways-can-i-execute-ruby-program/101992)

<div class="topic-metadata">

**Author:** [@vijaypatel](https://www.ruby-forum.com/u/vijaypatel)\
**Replies:** 4\
**Last updated:** [August 9, 2006, 5:25pm UTC](https://www.ruby-forum.com/t/how-many-ways-can-i-execute-ruby-program/101992 "2006-08-09T17:25:55Z")

</div>

Hi all, I have to admit this is great language and good people to support it. I am newbie, and learning. I have this question for now. How many ways can I execute ruby program? 1) I know one is IRB (Interactive Ruby).…

---

## [Sending Email](https://www.ruby-forum.com/t/sending-email/96074)

<div class="topic-metadata">

**Author:** [@davidstokar](https://www.ruby-forum.com/u/davidstokar)\
**Replies:** 4\
**Last updated:** [June 26, 2006, 6:24am UTC](https://www.ruby-forum.com/t/sending-email/96074 "2006-06-26T06:24:49Z")

</div>

Hi, I want users of my application to send emails using a feedback form to other users of my application. I don’t want to publish their email addresses, but I have them in my application. I have an ActionMailer model…

---

## [Net-Ping Timeout Error](https://www.ruby-forum.com/t/net-ping-timeout-error/63470)

<div class="topic-metadata">

**Author:** [@Anoop\_Chandran](https://www.ruby-forum.com/u/Anoop_Chandran)\
**Replies:** 4\
**Last updated:** [June 16, 2006, 7:16pm UTC](https://www.ruby-forum.com/t/net-ping-timeout-error/63470 "2006-06-16T19:16:56Z")

</div>

Hi all, I am getting the following error /usr/lib/ruby/site\_ruby/1.8/net/ping.rb:83:in ping?': undefined methodclose’ for #\<Timeout::Error: execution expired\> (NoMethodError) I get this error while trying to ping mult…

---

## [Order.products \<\< product w/out persisting](https://www.ruby-forum.com/t/order-products-product-w-out-persisting/78761)

<div class="topic-metadata">

**Author:** [@ben](https://www.ruby-forum.com/u/ben)\
**Replies:** 4\
**Last updated:** [March 9, 2006, 2:34am UTC](https://www.ruby-forum.com/t/order-products-product-w-out-persisting/78761 "2006-03-09T02:34:29Z")

</div>

Hi, I have a one-to-many relationship. I want to be able to add objects to the collection w/out persisting them. How do I do this? The only thing I can’t think of is to use a transaction and roll it back. In other…

---

## [Continuations](https://www.ruby-forum.com/t/continuations/100757)

<div class="topic-metadata">

**Author:** [@anders.janmyr](https://www.ruby-forum.com/u/anders.janmyr)\
**Replies:** 4\
**Last updated:** [November 23, 2005, 9:13pm UTC](https://www.ruby-forum.com/t/continuations/100757 "2005-11-23T21:13:14Z")

</div>

Hello Everyone, I am trying to come to terms with continuations and I am failing miserably. I have a method “traverse” which basically is a traversal algorithm for a sudoko game. To learn more about continuations I …

---

## [Downloading Image](https://www.ruby-forum.com/t/downloading-image/63691)

<div class="topic-metadata">

**Author:** [@ashiro](https://www.ruby-forum.com/u/ashiro)\
**Replies:** 5\
**Last updated:** [April 20, 2009, 11:54am UTC](https://www.ruby-forum.com/t/downloading-image/63691 "2009-04-20T11:54:21Z")

</div>

Hello again As an extension on my previous image problem I can’t even successfully download images from a URL location. I though tthe following simple GET request along with writing the result to a file would work bu…

---

## [Logger.info request.headers in production does nothing?](https://www.ruby-forum.com/t/logger-info-request-headers-in-production-does-nothing/148125)

<div class="topic-metadata">

**Author:** [@comopasta](https://www.ruby-forum.com/u/comopasta)\
**Replies:** 5\
**Last updated:** [September 9, 2008, 10:30pm UTC](https://www.ruby-forum.com/t/logger-info-request-headers-in-production-does-nothing/148125 "2008-09-09T22:30:22Z")

</div>

Hi, logger.info request.headers is giving me the headers of the request in development mode. However I can’t get the same on production mode. Any hints? Thanks

---

## [RegExp problem](https://www.ruby-forum.com/t/regexp-problem/138116)

<div class="topic-metadata">

**Author:** [@jef](https://www.ruby-forum.com/u/jef)\
**Replies:** 5\
**Last updated:** [May 20, 2008, 5:43pm UTC](https://www.ruby-forum.com/t/regexp-problem/138116 "2008-05-20T17:43:44Z")

</div>

Hi, I’ve got a string “foo(n\_characters)”. ex: foo(bar) . I would like to extract bar. What RegExp can do that? thanks

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

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