# Rails

**URL:** https://www.ruby-forum.com/c/ruby-on-rails/6.md?page=1658

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

---

## [Undefined method \`each' for #\<Mysql:0x3874b20\>](https://www.ruby-forum.com/t/undefined-method-each-for-mysql-0x3874b20/102237)

<div class="topic-metadata">

**Author:** [@paul](https://www.ruby-forum.com/u/paul)\
**Replies:** 12\
**Last updated:** [October 21, 2007, 1:12pm UTC](https://www.ruby-forum.com/t/undefined-method-each-for-mysql-0x3874b20/102237 "2007-10-21T13:12:24Z")

</div>

Running on XP, Rails v1.1.6, Ruby 1.8.4, mysql 5.0.24, WEBrick 1.3.1 just doing a basic ‘scaffold’ against a table in mysql, I originally got the “undefined method ‘each’” error at all times then saw something advisin…

---

## [Is it possible to start a response before action is fully executed?](https://www.ruby-forum.com/t/is-it-possible-to-start-a-response-before-action-is-fully-executed/117840)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [October 21, 2007, 11:48am UTC](https://www.ruby-forum.com/t/is-it-possible-to-start-a-response-before-action-is-fully-executed/117840 "2007-10-21T11:48:19Z")

</div>

Hello Rails experts: I have a Facebook application that is suffering from the 8-second timeout issue in Facebook. The problem is that facebook takes a long time to respond to my api calls and in the meanwhile, my appl…

---

## [Deploying with capistrano - web site responds much faster](https://www.ruby-forum.com/t/deploying-with-capistrano-web-site-responds-much-faster/117823)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 4\
**Last updated:** [October 21, 2007, 9:10am UTC](https://www.ruby-forum.com/t/deploying-with-capistrano-web-site-responds-much-faster/117823 "2007-10-21T09:10:24Z")

</div>

Hi, just out of curiosity: I have a RoR website, and till now I used to deploy it by hand. Now I’ve deployed it automatically, and after this the web site response is much faster. I don’t know if capistrano did somet…

---

## ["can't activate rails", "already activated rails", and "no such file to load -- breakpoint"](https://www.ruby-forum.com/t/cant-activate-rails-already-activated-rails-and-no-such-file-to-load-breakpoint/117668)

<div class="topic-metadata">

**Author:** [@sven](https://www.ruby-forum.com/u/sven)\
**Replies:** 2\
**Last updated:** [October 21, 2007, 8:40am UTC](https://www.ruby-forum.com/t/cant-activate-rails-already-activated-rails-and-no-such-file-to-load-breakpoint/117668 "2007-10-21T08:40:35Z")

</div>

I’ve already asked about this on but am bringing my troubles here as Jeremy K. requested today. After upgrading my gem rails to the 2.0 preview release (1.2.4.7794 was the first one I got) I tried creating a new proj…

---

## [Approaches to scaling](https://www.ruby-forum.com/t/approaches-to-scaling/117827)

<div class="topic-metadata">

**Author:** [@snacktime](https://www.ruby-forum.com/u/snacktime)\
**Replies:** 6\
**Last updated:** [October 21, 2007, 6:57am UTC](https://www.ruby-forum.com/t/approaches-to-scaling/117827 "2007-10-21T06:57:44Z")

</div>

I started to title this as ‘approaches to scaling rails’, but realized it’s not really a rails specific problem. I’m currently working with a small team designing the architecture for our application. A previous…

---

## [How do you use Observers?](https://www.ruby-forum.com/t/how-do-you-use-observers/117763)

<div class="topic-metadata">

**Author:** [@dewie](https://www.ruby-forum.com/u/dewie)\
**Replies:** 5\
**Last updated:** [October 21, 2007, 6:06am UTC](https://www.ruby-forum.com/t/how-do-you-use-observers/117763 "2007-10-21T06:06:18Z")

</div>

Clarification: I’m asking how YOU use them, not how TO use them. I ask because after reading a post over at Pivotal Blabs (a very good blog, btw), it appears the Observer isn’t quite meant to do what I thought it was.…

---

## [\[ANN\] Rails/Informix 1.0.0 released](https://www.ruby-forum.com/t/ann-rails-informix-1-0-0-released/117829)

<div class="topic-metadata">

**Author:** [@Gerardo\_S](https://www.ruby-forum.com/u/Gerardo_S)\
**Replies:** 0\
**Last updated:** [October 21, 2007, 2:25am UTC](https://www.ruby-forum.com/t/ann-rails-informix-1-0-0-released/117829 "2007-10-21T02:25:55Z")

</div>

This is the last release for Ruby on Rails 1.x. The next one will be released as a rubygem named activerecord-informix-adapter alongside Ruby on Rails 2.0 when it reaches final. Thanks to Jeremy K. for including it in…

---

## [\[ANN\] Ruby/Informix 0.6.2 released](https://www.ruby-forum.com/t/ann-ruby-informix-0-6-2-released/196495)

<div class="topic-metadata">

**Author:** [@Gerardo\_S](https://www.ruby-forum.com/u/Gerardo_S)\
**Replies:** 0\
**Last updated:** [October 20, 2007, 11:35pm UTC](https://www.ruby-forum.com/t/ann-ruby-informix-0-6-2-released/196495 "2007-10-20T23:35:51Z")

</div>

This is a maintenance release that fixes a compilation error on the Microsoft Windows platform. Thanks to Joe Lanotte \<joe.lanotte at comcast dot net\> for his report. A precompiled binary gem for Windows is also provi…

---

## [Correct way to display index](https://www.ruby-forum.com/t/correct-way-to-display-index/117757)

<div class="topic-metadata">

**Author:** [@snantz](https://www.ruby-forum.com/u/snantz)\
**Replies:** 5\
**Last updated:** [October 20, 2007, 9:30pm UTC](https://www.ruby-forum.com/t/correct-way-to-display-index/117757 "2007-10-20T21:30:42Z")

</div>

I have this app that I have put on my GoDaddy account and while I can get the rails welcome page to display, I can’t get the intro page to my app to display. this is the site: http://www.cottoncandyleague.com/league/ …

---

## [Source code for AWDWR (first edition)](https://www.ruby-forum.com/t/source-code-for-awdwr-first-edition/117780)

<div class="topic-metadata">

**Author:** [@aaaaaa](https://www.ruby-forum.com/u/aaaaaa)\
**Replies:** 5\
**Last updated:** [October 20, 2007, 8:29pm UTC](https://www.ruby-forum.com/t/source-code-for-awdwr-first-edition/117780 "2007-10-20T20:29:50Z")

</div>

I’m looking for the source code of AWDWR, first edition. The PragProg site has the second edition now and I’m not able to find the sources for the first edition anymore. Anybody knows where I can find them? Thanks A…

---

## [Nested Resources not working for me](https://www.ruby-forum.com/t/nested-resources-not-working-for-me/117759)

<div class="topic-metadata">

**Author:** [@pedz](https://www.ruby-forum.com/u/pedz)\
**Replies:** 5\
**Last updated:** [October 20, 2007, 8:26pm UTC](https://www.ruby-forum.com/t/nested-resources-not-working-for-me/117759 "2007-10-20T20:26:11Z")

</div>

This code works: map.resources :feedbacks map.resources :feedback\_notes, :path\_prefix =\> ‘/feedbacks/:feedback\_id’ (this is in my config.rb file). But this code does not: map.resources :feedbacks do |feedback| fee…

---

## [Husteon I've got a problem](https://www.ruby-forum.com/t/husteon-ive-got-a-problem/117767)

<div class="topic-metadata">

**Author:** [@marcelo](https://www.ruby-forum.com/u/marcelo)\
**Replies:** 3\
**Last updated:** [October 20, 2007, 7:34pm UTC](https://www.ruby-forum.com/t/husteon-ive-got-a-problem/117767 "2007-10-20T19:34:14Z")

</div>

Hello This is my first contact with Ruby on Rails, and I am dissapointed of it I installed: ruby186-25 rails-1.2.5 and the last version of APTANA When I try to run the server I get the following error: Cannot fin…

---

## [Application stops working over night: (Errno::EPIPE (Broken](https://www.ruby-forum.com/t/application-stops-working-over-night-errno-epipe-broken/61600)

<div class="topic-metadata">

**Author:** [@beachguy82](https://www.ruby-forum.com/u/beachguy82)\
**Replies:** 5\
**Last updated:** [October 20, 2007, 6:04pm UTC](https://www.ruby-forum.com/t/application-stops-working-over-night-errno-epipe-broken/61600 "2007-10-20T18:04:39Z")

</div>

I know this question gets asked a lot but I can’t seem to find the answer when I search through the mailing list. First off here’s my set up. Cent OS 4.3 Apache 2.0 Fast CGI 2.4.0 Rails 1.1 Mysql 5.0 The app st…

---

## [With\_scope issue](https://www.ruby-forum.com/t/with-scope-issue/117664)

<div class="topic-metadata">

**Author:** [@sp00nyg](https://www.ruby-forum.com/u/sp00nyg)\
**Replies:** 9\
**Last updated:** [October 20, 2007, 3:29pm UTC](https://www.ruby-forum.com/t/with-scope-issue/117664 "2007-10-20T15:29:01Z")

</div>

I have the following code: class User \< ActiveRecord::Base has\_many :requests do def find\_active(options = {}) with\_scope :find =\> { :conditions =\> \[“requests.active = ?”, true\] } do find(:all, options) end end …

---

## [What is different "@"?](https://www.ruby-forum.com/t/what-is-different/117733)

<div class="topic-metadata">

**Author:** [@OnRails](https://www.ruby-forum.com/u/OnRails)\
**Replies:** 9\
**Last updated:** [October 20, 2007, 3:04pm UTC](https://www.ruby-forum.com/t/what-is-different/117733 "2007-10-20T15:04:24Z")

</div>

what is a different? @name and name on ruby? sometime I confuse these…

---

## [\[ANN\] Ruby/Informix 0.6.2 released](https://www.ruby-forum.com/t/ann-ruby-informix-0-6-2-released/117803)

<div class="topic-metadata">

**Author:** [@Gerardo\_S](https://www.ruby-forum.com/u/Gerardo_S)\
**Replies:** 0\
**Last updated:** [October 20, 2007, 2:36pm UTC](https://www.ruby-forum.com/t/ann-ruby-informix-0-6-2-released/117803 "2007-10-20T14:36:20Z")

</div>

This is a maintenance release that fixes a compilation error on the Microsoft Windows platform. Thanks to Joe Lanotte \<joe.lanotte at comcast dot net\> for his report. A precompiled binary gem for Windows is also provi…

---

## [Proper timestamps in callbacks](https://www.ruby-forum.com/t/proper-timestamps-in-callbacks/117799)

<div class="topic-metadata">

**Author:** [@leethal](https://www.ruby-forum.com/u/leethal)\
**Replies:** 0\
**Last updated:** [October 20, 2007, 1:58pm UTC](https://www.ruby-forum.com/t/proper-timestamps-in-callbacks/117799 "2007-10-20T13:58:54Z")

</div>

Yay, another Task model: the model class Task \< ActiveRecord::Base attr\_accessible :lots, :of, :stuff, :but, :not, :finished\_at, :and, :finished before\_save do @before\_save.call if @before\_save end def finish se…

---

## [Generate SVG image](https://www.ruby-forum.com/t/generate-svg-image/117798)

<div class="topic-metadata">

**Author:** [@shafi](https://www.ruby-forum.com/u/shafi)\
**Replies:** 0\
**Last updated:** [October 20, 2007, 12:43pm UTC](https://www.ruby-forum.com/t/generate-svg-image/117798 "2007-10-20T12:43:52Z")

</div>

Hello all, does anyone now how to generate SVG image from rails? thanks

---

## [Restful\_authentication "uninitialized constant UserObserver" during generate authenticated](https://www.ruby-forum.com/t/restful-authentication-uninitialized-constant-userobserver-during-generate-authenticated/116942)

<div class="topic-metadata">

**Author:** [@Paul\_Adams](https://www.ruby-forum.com/u/Paul_Adams)\
**Replies:** 2\
**Last updated:** [October 20, 2007, 12:16pm UTC](https://www.ruby-forum.com/t/restful-authentication-uninitialized-constant-userobserver-during-generate-authenticated/116942 "2007-10-20T12:16:33Z")

</div>

Hi, I’ve installed restful\_authentication, added the line: config.active\_record.observers = :user\_observer and run: script/generate authenticated user session --include-activation but I get the following error: /us…

---

## [Date validation using pattern. Why?](https://www.ruby-forum.com/t/date-validation-using-pattern-why/117329)

<div class="topic-metadata">

**Author:** [@kirizoid](https://www.ruby-forum.com/u/kirizoid)\
**Replies:** 14\
**Last updated:** [October 20, 2007, 11:17am UTC](https://www.ruby-forum.com/t/date-validation-using-pattern-why/117329 "2007-10-20T11:17:02Z")

</div>

Hello, I’m new to this forum and also I’m new to programming, to Ruby and to Ruby on Rails. I’m from Russia and started learingn RoR with book “Agile Web D. with Rails”. Right now I’m trying to practice in building we…

---

## [Rails 2.0 - autocomplete](https://www.ruby-forum.com/t/rails-2-0-autocomplete/117787)

<div class="topic-metadata">

**Author:** [@Luzzy](https://www.ruby-forum.com/u/Luzzy)\
**Replies:** 1\
**Last updated:** [October 20, 2007, 9:37am UTC](https://www.ruby-forum.com/t/rails-2-0-autocomplete/117787 "2007-10-20T09:37:32Z")

</div>

Hi Throughout the documentation for rails, the autocomplete parts have the comment “DEPRECATION WARNING: This method will become a separate plugin when Rails 2.0 ships.” Does this plugin exist yet? Any tips or tutor…

---

## [Occasionally hanging requests](https://www.ruby-forum.com/t/occasionally-hanging-requests/117775)

<div class="topic-metadata">

**Author:** [@famoseagle](https://www.ruby-forum.com/u/famoseagle)\
**Replies:** 2\
**Last updated:** [October 20, 2007, 9:05am UTC](https://www.ruby-forum.com/t/occasionally-hanging-requests/117775 "2007-10-20T09:05:54Z")

</div>

this is almost the easiest bug in the world to reproduce. set up 3 mongrels behind ngnix. add ‘sleep 20’ to one controller action open up 1 browser window and hit the sleep action open up another browser window and hit…

---

## [Agile Web Development Book, need a bit of help](https://www.ruby-forum.com/t/agile-web-development-book-need-a-bit-of-help/117718)

<div class="topic-metadata">

**Author:** [@mslagell](https://www.ruby-forum.com/u/mslagell)\
**Replies:** 14\
**Last updated:** [October 20, 2007, 7:50am UTC](https://www.ruby-forum.com/t/agile-web-development-book-need-a-bit-of-help/117718 "2007-10-20T07:50:39Z")

</div>

I’m working my way through the book Agile Web D. with Rails, and I am in the section where the book has me creating a display\_cart method and the associated view. When I copied the code from the book into the view, it…

---

## [Rake task and custom code](https://www.ruby-forum.com/t/rake-task-and-custom-code/117782)

<div class="topic-metadata">

**Author:** [@jeannibee](https://www.ruby-forum.com/u/jeannibee)\
**Replies:** 1\
**Last updated:** [October 20, 2007, 7:16am UTC](https://www.ruby-forum.com/t/rake-task-and-custom-code/117782 "2007-10-20T07:16:04Z")

</div>

Hi I have some classes I’ve created to perform some work on my site. I’d like them to be usable in my Controllers, and MORE specifically in my Rake Tasks. Where should they be used so when I require / load them they …

---

## [Multiple deletions using check boxes](https://www.ruby-forum.com/t/multiple-deletions-using-check-boxes/117677)

<div class="topic-metadata">

**Author:** [@ruchita](https://www.ruby-forum.com/u/ruchita)\
**Replies:** 4\
**Last updated:** [October 20, 2007, 6:15am UTC](https://www.ruby-forum.com/t/multiple-deletions-using-check-boxes/117677 "2007-10-20T06:15:31Z")

</div>

Hi, I am trying to delete multiple products by using check boxes… but not able to do it. Can anyone tell me how to use checkboxes to delete multiple products on clicking of a button. Any help would be greatly appreci…

---

## [Travel to Vietnam](https://www.ruby-forum.com/t/travel-to-vietnam/117783)

<div class="topic-metadata">

**Author:** [@virtualofficevietna](https://www.ruby-forum.com/u/virtualofficevietna)\
**Replies:** 0\
**Last updated:** [October 20, 2007, 5:49am UTC](https://www.ruby-forum.com/t/travel-to-vietnam/117783 "2007-10-20T05:49:33Z")

</div>

Specializing in custom-made Vietnam tours & Vietnam travel. We shall endeavor to make your Vietnam holiday a memorable one. Good quality and competitive prices is our motto, Join us and find out for yourself. We’ll re…

---

## [Template location not default](https://www.ruby-forum.com/t/template-location-not-default/117770)

<div class="topic-metadata">

**Author:** [@doug](https://www.ruby-forum.com/u/doug)\
**Replies:** 3\
**Last updated:** [October 20, 2007, 5:09am UTC](https://www.ruby-forum.com/t/template-location-not-default/117770 "2007-10-20T05:09:50Z")

</div>

By default, Rails associates an action with a template having the same name as the name of the action and residing in a directory with the same name as the name of the controller. Is there some way from within the a…

---

## [How can I get instance variable return from ajax on ruby](https://www.ruby-forum.com/t/how-can-i-get-instance-variable-return-from-ajax-on-ruby/117752)

<div class="topic-metadata">

**Author:** [@OnRails](https://www.ruby-forum.com/u/OnRails)\
**Replies:** 2\
**Last updated:** [October 20, 2007, 1:54am UTC](https://www.ruby-forum.com/t/how-can-i-get-instance-variable-return-from-ajax-on-ruby/117752 "2007-10-20T01:54:32Z")

</div>

in AJAX, there is responseText, responseBody, responseXML, responseStream, so I don’t know what I can use to get instance variable return from ajax on ruby… who can tell me, how can I do. Thanks!!

---

## [XMLHttpRequest on select index change](https://www.ruby-forum.com/t/xmlhttprequest-on-select-index-change/117625)

<div class="topic-metadata">

**Author:** [@metrix](https://www.ruby-forum.com/u/metrix)\
**Replies:** 7\
**Last updated:** [October 20, 2007, 12:52am UTC](https://www.ruby-forum.com/t/xmlhttprequest-on-select-index-change/117625 "2007-10-20T00:52:55Z")

</div>

Hi I want to trigger a XMLHttpRequest when the selected index change of a drop down box. What’s the best way to handle this? I’m sure I could figure out what javascript call link\_to\_remote is making and just wire tha…

---

## [Multiple submits with remote forms](https://www.ruby-forum.com/t/multiple-submits-with-remote-forms/117768)

<div class="topic-metadata">

**Author:** [@William\_P](https://www.ruby-forum.com/u/William_P)\
**Replies:** 0\
**Last updated:** [October 20, 2007, 12:47am UTC](https://www.ruby-forum.com/t/multiple-submits-with-remote-forms/117768 "2007-10-20T00:47:13Z")

</div>

I’m sure many of you have run across this one. Using ajax forms in rails with multiple submits always sends the value of the first defined submit tag rather than the one that is clicked. This is actually against rfc a…

[Previous page](https://www.ruby-forum.com/c/ruby-on-rails/6.md?page=1657)

[Next page](https://www.ruby-forum.com/c/ruby-on-rails/6.md?page=1659)
