# Rails

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

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

---

## [Passenger and apache: worker or prefork](https://www.ruby-forum.com/t/passenger-and-apache-worker-or-prefork/188605)

<div class="topic-metadata">

**Author:** [@eugenio](https://www.ruby-forum.com/u/eugenio)\
**Replies:** 1\
**Last updated:** [May 15, 2010, 9:06pm UTC](https://www.ruby-forum.com/t/passenger-and-apache-worker-or-prefork/188605 "2010-05-15T21:06:17Z")

</div>

i’m going to install apache and passenger on a intel atom dual (dual core). is it better to install apache-worker or apache-prefork?

---

## [Rail3 beta3 require 'activesupport' - no such file to load](https://www.ruby-forum.com/t/rail3-beta3-require-activesupport-no-such-file-to-load/188659)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [May 15, 2010, 8:45pm UTC](https://www.ruby-forum.com/t/rail3-beta3-require-activesupport-no-such-file-to-load/188659 "2010-05-15T20:45:13Z")

</div>

If I go into irb in rails3 beta3 and type in require ‘activesupport’ it says: LoadError: no such file to load – activesupport What is the problem? Have I done something wrong? Bundle show activesupport works properly…

---

## [ActionController::UnknownHttpMethod: \*\*\*, accepted HTTP methods are get, head, put, post, delete, a](https://www.ruby-forum.com/t/actioncontroller-accepted-http-methods-are-get-head-put-post-delete-a/185897)

<div class="topic-metadata">

**Author:** [@jemminger](https://www.ruby-forum.com/u/jemminger)\
**Replies:** 3\
**Last updated:** [May 15, 2010, 5:06pm UTC](https://www.ruby-forum.com/t/actioncontroller-accepted-http-methods-are-get-head-put-post-delete-a/185897 "2010-05-15T17:06:53Z")

</div>

I’m occasionally getting exception notices with this error message: ActionController::UnknownHttpMethod: \*\*\*, accepted HTTP methods are get, head, put, post, delete, and options Anyone ever seen this or know what coul…

---

## [NameError when using acts\_as\_ferret](https://www.ruby-forum.com/t/nameerror-when-using-acts-as-ferret/197040)

<div class="topic-metadata">

**Author:** [@manish](https://www.ruby-forum.com/u/manish)\
**Replies:** 0\
**Last updated:** [May 15, 2010, 3:42pm UTC](https://www.ruby-forum.com/t/nameerror-when-using-acts-as-ferret/197040 "2010-05-15T15:42:30Z")

</div>

Hi all I am getting this error when I am using acts\_as\_ferret :fields =\>\[:competitor\], :remote =\> true NameError in PartController#index uninitialized constant PartController::Competitor My Model class Competitor \<…

---

## [WEBrick RequestTimeout occured](https://www.ruby-forum.com/t/webrick-requesttimeout-occured/188648)

<div class="topic-metadata">

**Author:** [@rajesh01](https://www.ruby-forum.com/u/rajesh01)\
**Replies:** 0\
**Last updated:** [May 15, 2010, 1:51pm UTC](https://www.ruby-forum.com/t/webrick-requesttimeout-occured/188648 "2010-05-15T13:51:12Z")

</div>

Hi there, I am trying to upload CSV file which hung the local server and says ERROR HTTPRequest#fixup: WEBrick::HTTPStatus::RequestTimeout occured. The file is exported CSV from outlook, which is of size 252kb(750 row…

---

## [Submit a form vs refresh a form](https://www.ruby-forum.com/t/submit-a-form-vs-refresh-a-form/188645)

<div class="topic-metadata">

**Author:** [@soesan01](https://www.ruby-forum.com/u/soesan01)\
**Replies:** 0\
**Last updated:** [May 15, 2010, 11:56am UTC](https://www.ruby-forum.com/t/submit-a-form-vs-refresh-a-form/188645 "2010-05-15T11:56:42Z")

</div>

Hi there, I am new with rails and html stuff. I have difficulty to understand the differences if I submit a form and refresh the same form, are they doing the same action? For example, I bought some books and then I…

---

## [Update a div at regular intervals in Rails 3 without Prototype\_Legacy\_Helper plugin?](https://www.ruby-forum.com/t/update-a-div-at-regular-intervals-in-rails-3-without-prototype-legacy-helper-plugin/188641)

<div class="topic-metadata">

**Author:** [@pconnordctt](https://www.ruby-forum.com/u/pconnordctt)\
**Replies:** 0\
**Last updated:** [May 15, 2010, 10:05am UTC](https://www.ruby-forum.com/t/update-a-div-at-regular-intervals-in-rails-3-without-prototype-legacy-helper-plugin/188641 "2010-05-15T10:05:22Z")

</div>

I am working through an exercise written for Rails 2.x and I am trying to adapt it to work in Rails 3. Rails \<3 Code: \<%=periodically\_call\_remote (:url =\> “/flights/#{@flight.id}/ seats”, :frequency =\> “10”, :update …

---

## [Can I play with Rails 3 without destroying my Rails 2 setup?](https://www.ruby-forum.com/t/can-i-play-with-rails-3-without-destroying-my-rails-2-setup/188622)

<div class="topic-metadata">

**Author:** [@comopasta](https://www.ruby-forum.com/u/comopasta)\
**Replies:** 2\
**Last updated:** [May 15, 2010, 9:12am UTC](https://www.ruby-forum.com/t/can-i-play-with-rails-3-without-destroying-my-rails-2-setup/188622 "2010-05-15T09:12:59Z")

</div>

Hi, I should start playing with Rails 3 but I don’t want to use a different machine for that. I am currently on Rails 2.3.5 and I’m not yet using RVM. I know the RVM will help on the Ruby side. But what about the Rai…

---

## [Memory issues](https://www.ruby-forum.com/t/memory-issues/188598)

<div class="topic-metadata">

**Author:** [@jmanivannancse](https://www.ruby-forum.com/u/jmanivannancse)\
**Replies:** 3\
**Last updated:** [May 15, 2010, 7:07am UTC](https://www.ruby-forum.com/t/memory-issues/188598 "2010-05-15T07:07:50Z")

</div>

Hi, I am really struggle with following result…i have to explain my situation. First, i have created small rails application which is only used to show data from table called products(nearly 11 lakhs of records in th…

---

## [Ruby Midwest Early Bird Ends Tomorrow](https://www.ruby-forum.com/t/ruby-midwest-early-bird-ends-tomorrow/197231)

<div class="topic-metadata">

**Author:** [@kule](https://www.ruby-forum.com/u/kule)\
**Replies:** 1\
**Last updated:** [May 15, 2010, 6:36am UTC](https://www.ruby-forum.com/t/ruby-midwest-early-bird-ends-tomorrow/197231 "2010-05-15T06:36:26Z")

</div>

The Ruby Midwest Conference Early Bird pricing ends tomorrow, Saturday, May 15. Don’t miss out on two full days of great talks, networking, and hacking for only $75! Attendees are also invited to the OMGWTFBBQ (htt…

---

## [Sqlite3 module not found](https://www.ruby-forum.com/t/sqlite3-module-not-found/188636)

<div class="topic-metadata">

**Author:** [@valke](https://www.ruby-forum.com/u/valke)\
**Replies:** 2\
**Last updated:** [May 15, 2010, 4:08am UTC](https://www.ruby-forum.com/t/sqlite3-module-not-found/188636 "2010-05-15T04:08:59Z")

</div>

Hi, I’m trying to follow the Rails tutorial found here, Getting Started with Rails — Ruby on Rails Guides and when I go to run $ rake db:create I get this wonderful error of sqlite3.dll missing. So, I just went to my …

---

## [Tricky model situatione](https://www.ruby-forum.com/t/tricky-model-situatione/188579)

<div class="topic-metadata">

**Author:** [@badnaam](https://www.ruby-forum.com/u/badnaam)\
**Replies:** 4\
**Last updated:** [May 15, 2010, 4:08am UTC](https://www.ruby-forum.com/t/tricky-model-situatione/188579 "2010-05-15T04:08:24Z")

</div>

I have two models Club and users. users are regular authenticated users and some of them might create a club. A club can also have members (essentially users) and there are attributes and models that apply to member …

---

## [Combining multiple finds into one result](https://www.ruby-forum.com/t/combining-multiple-finds-into-one-result/188620)

<div class="topic-metadata">

**Author:** [@cinderedmonkey](https://www.ruby-forum.com/u/cinderedmonkey)\
**Replies:** 7\
**Last updated:** [May 15, 2010, 4:05am UTC](https://www.ruby-forum.com/t/combining-multiple-finds-into-one-result/188620 "2010-05-15T04:05:28Z")

</div>

What I want to do is something like this: searchid = 4 while searchid != -1 @a += A.find\_by\_someid(searchid) @b = B.find\_by\_someid(searchid) searchid = @b.parentid end The problem being the line @a += A.find\_by\_s…

---

## [SOAP driver question](https://www.ruby-forum.com/t/soap-driver-question/188626)

<div class="topic-metadata">

**Author:** [@pepe](https://www.ruby-forum.com/u/pepe)\
**Replies:** 1\
**Last updated:** [May 15, 2010, 3:57am UTC](https://www.ruby-forum.com/t/soap-driver-question/188626 "2010-05-15T03:57:52Z")

</div>

Hi there, I’m consuming a couple of SOAP web services in my application. What would be the best method to create the RPC driver only once? Thank you.

---

## [New to cacheing](https://www.ruby-forum.com/t/new-to-cacheing/186116)

<div class="topic-metadata">

**Author:** [@nuby2ruby](https://www.ruby-forum.com/u/nuby2ruby)\
**Replies:** 7\
**Last updated:** [May 15, 2010, 2:25am UTC](https://www.ruby-forum.com/t/new-to-cacheing/186116 "2010-05-15T02:25:59Z")

</div>

Ok, So, I’m a bad developer and have never used any sort of cacheing before. I decided it’s time I step up and I threw in some memcached magic. I’m still pretty new to all this, so I’m confused on how some things work…

---

## [Workling/Starling: killing a background work from a controller](https://www.ruby-forum.com/t/workling-starling-killing-a-background-work-from-a-controller/188630)

<div class="topic-metadata">

**Author:** [@PierreW](https://www.ruby-forum.com/u/PierreW)\
**Replies:** 0\
**Last updated:** [May 15, 2010, 12:16am UTC](https://www.ruby-forum.com/t/workling-starling-killing-a-background-work-from-a-controller/188630 "2010-05-15T00:16:27Z")

</div>

Hello! There is something I don’t understand with Workling/Starling: it is easy to start a background work from a controller, but is it possible to stop this background work from a controller? Say for example: user …

---

## [Gem dev workflow?](https://www.ruby-forum.com/t/gem-dev-workflow/188623)

<div class="topic-metadata">

**Author:** [@elliottg](https://www.ruby-forum.com/u/elliottg)\
**Replies:** 0\
**Last updated:** [May 14, 2010, 10:54pm UTC](https://www.ruby-forum.com/t/gem-dev-workflow/188623 "2010-05-14T22:54:30Z")

</div>

I am beginning development of my first Gem for a Rails app. I am curious what some best practices are regarding development workflow. As the Gem will be Rails dependent, it seems as though it needs to be vendored so …

---

## [Can't connect to Sybase](https://www.ruby-forum.com/t/cant-connect-to-sybase/106914)

<div class="topic-metadata">

**Author:** [@purplehaze](https://www.ruby-forum.com/u/purplehaze)\
**Replies:** 2\
**Last updated:** [May 14, 2010, 10:38pm UTC](https://www.ruby-forum.com/t/cant-connect-to-sybase/106914 "2010-05-14T22:38:00Z")

</div>

I followed this tutorial for enable Sybase with Rails http://wiki.rubyonrails.com/rails/pages/SybaseASEonWin32 and get this error. RuntimeError in Catalog itemsController#index ctx\_init failed RAILS\_ROOT: ./script/……

---

## [Adding html markup to a blog post content field](https://www.ruby-forum.com/t/adding-html-markup-to-a-blog-post-content-field/188618)

<div class="topic-metadata">

**Author:** [@Norm](https://www.ruby-forum.com/u/Norm)\
**Replies:** 1\
**Last updated:** [May 14, 2010, 9:43pm UTC](https://www.ruby-forum.com/t/adding-html-markup-to-a-blog-post-content-field/188618 "2010-05-14T21:43:32Z")

</div>

Hello all, I have spent the better part of a day getting my “hello world!” application, aka. blog, done. I am so loving Rails. One thing that I am stumped on is how to enable html in my post. I have two fields for a …

---

## [HTML and CSS to PDF](https://www.ruby-forum.com/t/html-and-css-to-pdf/188535)

<div class="topic-metadata">

**Author:** [@flamingsole](https://www.ruby-forum.com/u/flamingsole)\
**Replies:** 20\
**Last updated:** [May 14, 2010, 9:42pm UTC](https://www.ruby-forum.com/t/html-and-css-to-pdf/188535 "2010-05-14T21:42:27Z")

</div>

I would like to take a rails page and convert it to a pdf. I don’t want to have to generate the code myself for making the pdf, so it should obey css. What is the best tool for doing this? Does the tool use the standa…

---

## [Rails 3 & Scope in routes](https://www.ruby-forum.com/t/rails-3-scope-in-routes/188619)

<div class="topic-metadata">

**Author:** [@marek\_j](https://www.ruby-forum.com/u/marek_j)\
**Replies:** 0\
**Last updated:** [May 14, 2010, 8:53pm UTC](https://www.ruby-forum.com/t/rails-3-scope-in-routes/188619 "2010-05-14T20:53:11Z")

</div>

Hi, I have something like this: scope :module =\> ‘xxxx’, :constraints =\> { :subdomain =\> ‘xxxx’ } do match ‘/’, :to =\> ‘welcome#index’, :as =\> :xxxx\_root end Is there a way to add to scope naming prefix. For example …

---

## [From string to field name](https://www.ruby-forum.com/t/from-string-to-field-name/188616)

<div class="topic-metadata">

**Author:** [@Viorel](https://www.ruby-forum.com/u/Viorel)\
**Replies:** 8\
**Last updated:** [May 14, 2010, 8:51pm UTC](https://www.ruby-forum.com/t/from-string-to-field-name/188616 "2010-05-14T20:51:33Z")

</div>

I have something like this: for xx in ‘01’…‘09’ field\_name=‘field’+xx puts ModelName.field\_name end My problem is that ModelName has no field named field\_name, it have fields like field01, field02,…,field09. So, ho…

---

## [Can't get the singleton of a Rails model](https://www.ruby-forum.com/t/cant-get-the-singleton-of-a-rails-model/188561)

<div class="topic-metadata">

**Author:** [@dewie](https://www.ruby-forum.com/u/dewie)\
**Replies:** 3\
**Last updated:** [May 14, 2010, 7:54pm UTC](https://www.ruby-forum.com/t/cant-get-the-singleton-of-a-rails-model/188561 "2010-05-14T19:54:23Z")

</div>

class Model \< ActiveRecord::Base def singleton class \<\< self self end end end m = Model.new m.singleton SystemStackError: stack level too deep… See the complete error. Why is this?

---

## [Error: "ActionController::InvalidAuthenticityToken"](https://www.ruby-forum.com/t/error-actioncontroller-invalidauthenticitytoken/183916)

<div class="topic-metadata">

**Author:** [@tharrisx](https://www.ruby-forum.com/u/tharrisx)\
**Replies:** 10\
**Last updated:** [May 14, 2010, 7:45pm UTC](https://www.ruby-forum.com/t/error-actioncontroller-invalidauthenticitytoken/183916 "2010-05-14T19:45:53Z")

</div>

Hi there, I have my first Rails app running and I regularly get the following “logged\_exception” error message: “ActionController::InvalidAuthenticityToken” Has anybody an idea what might cause this problem? Could it…

---

## [Rake clean; rake ; rake install](https://www.ruby-forum.com/t/rake-clean-rake-rake-install/188615)

<div class="topic-metadata">

**Author:** [@marcbey](https://www.ruby-forum.com/u/marcbey)\
**Replies:** 0\
**Last updated:** [May 14, 2010, 7:15pm UTC](https://www.ruby-forum.com/t/rake-clean-rake-rake-install/188615 "2010-05-14T19:15:16Z")

</div>

Feel like such a nube/dweeb for asking but… Background - I follow redis, redis-rb, and phpredis on github, bleeding edge, trunk. With redis I type make clean; make - then I’m good to go With phpredis i type make clea…

---

## [RESTful route for a form](https://www.ruby-forum.com/t/restful-route-for-a-form/188611)

<div class="topic-metadata">

**Author:** [@adam\_wead](https://www.ruby-forum.com/u/adam_wead)\
**Replies:** 0\
**Last updated:** [May 14, 2010, 6:42pm UTC](https://www.ruby-forum.com/t/restful-route-for-a-form/188611 "2010-05-14T18:42:21Z")

</div>

I’m trying to figure out what the route should be for a form I’m creating. I have 2 tables: rooms, teches. One room can have many teches (ie, computers), and I’ve created a form for moving a tech from one room to th…

---

## [Importing Source Code](https://www.ruby-forum.com/t/importing-source-code/188606)

<div class="topic-metadata">

**Author:** [@sporometricsdev](https://www.ruby-forum.com/u/sporometricsdev)\
**Replies:** 1\
**Last updated:** [May 14, 2010, 6:34pm UTC](https://www.ruby-forum.com/t/importing-source-code/188606 "2010-05-14T18:34:44Z")

</div>

Hi, New to RoR and have been assigned a pretty hefty task. I have to alter some source code for a company, the only problem is when I import the project (using Netbeans) and use terminal to start the server (same err…

---

## [\[ANN\] marnen-foreigner 0.5.2: MS SQL Server 2005 support](https://www.ruby-forum.com/t/ann-marnen-foreigner-0-5-2-ms-sql-server-2005-support/188603)

<div class="topic-metadata">

**Author:** [@marnen](https://www.ruby-forum.com/u/marnen)\
**Replies:** 0\
**Last updated:** [May 14, 2010, 5:18pm UTC](https://www.ruby-forum.com/t/ann-marnen-foreigner-0-5-2-ms-sql-server-2005-support/188603 "2010-05-14T17:18:28Z")

</div>

Hi everyone! I’m delighted to announce the release of marnen-foreigner 0.5.2. This is my fork of matthuhiggins-foreigner 0.5.0, and adds MS SQL Server 2005 foreign key constraint support to the MySQL and PostgreSQL s…

---

## [Garbage collection](https://www.ruby-forum.com/t/garbage-collection/188601)

<div class="topic-metadata">

**Author:** [@jmanivannancse](https://www.ruby-forum.com/u/jmanivannancse)\
**Replies:** 0\
**Last updated:** [May 14, 2010, 5:17pm UTC](https://www.ruby-forum.com/t/garbage-collection/188601 "2010-05-14T17:17:48Z")

</div>

We have developed rails reports and deployed in server, report have some hierarchy levels… Initially we have less volume of data in database table and report is running with fine performance… after few months,reports…

---

## [Freelance](https://www.ruby-forum.com/t/freelance/188501)

<div class="topic-metadata">

**Author:** [@davidz101](https://www.ruby-forum.com/u/davidz101)\
**Replies:** 3\
**Last updated:** [May 14, 2010, 4:38pm UTC](https://www.ruby-forum.com/t/freelance/188501 "2010-05-14T16:38:17Z")

</div>

Hey Do you guys even use rails for freelance work? Because most of the time other companies already have a website running on let say… go daddy. If you guys do freelance work with rails, usually whats the best appro…

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

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