# Rails

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

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

---

## [What is the best editor for Ruby?](https://www.ruby-forum.com/t/what-is-the-best-editor-for-ruby/103895)

<div class="topic-metadata">

**Author:** [@ibn\_tachfine](https://www.ruby-forum.com/u/ibn_tachfine)\
**Replies:** 27\
**Last updated:** [May 15, 2007, 11:00pm UTC](https://www.ruby-forum.com/t/what-is-the-best-editor-for-ruby/103895 "2007-05-15T23:00:51Z")

</div>

Hi i m new in Ruby on Rails, i want to use an editor to practise it, so what editor should i use ? Regards

---

## [Render :layout =\> false still renders](https://www.ruby-forum.com/t/render-layout-false-still-renders/104244)

<div class="topic-metadata">

**Author:** [@d2kagw](https://www.ruby-forum.com/u/d2kagw)\
**Replies:** 3\
**Last updated:** [May 15, 2007, 10:46pm UTC](https://www.ruby-forum.com/t/render-layout-false-still-renders/104244 "2007-05-15T22:46:51Z")

</div>

Are there some exceptions to this command? I was having problems with an ajax form still rendering the layout, then copy-pasted this code from an ebook to test it and it gives a “template is missing” error as though …

---

## [How make this migration:](https://www.ruby-forum.com/t/how-make-this-migration/104245)

<div class="topic-metadata">

**Author:** [@mr\_brownstone](https://www.ruby-forum.com/u/mr_brownstone)\
**Replies:** 2\
**Last updated:** [May 15, 2007, 10:34pm UTC](https://www.ruby-forum.com/t/how-make-this-migration/104245 "2007-05-15T22:34:50Z")

</div>

How make this table with migraition: CREATE TABLE Protutos ( empresa\_id BIGINT NOT NULL, codigo BIGINT NOT NULL AUTO\_INCREMENT, descricao VARCHAR (50) NOT NULL, PRIMARY KEY(empresa\_id,codigo) ) TYPE = MyISAM Without f…

---

## [Soapfaults in ActionWebService](https://www.ruby-forum.com/t/soapfaults-in-actionwebservice/104243)

<div class="topic-metadata">

**Author:** [@tmendo](https://www.ruby-forum.com/u/tmendo)\
**Replies:** 1\
**Last updated:** [May 15, 2007, 9:51pm UTC](https://www.ruby-forum.com/t/soapfaults-in-actionwebservice/104243 "2007-05-15T21:51:44Z")

</div>

Hey, Does anyone know of a way to throw soapexceptions/soapfaults from an actionwebservice on rails ? I thought the correct way to do this would be returning an Exception, but that will throw a cast error (due to not…

---

## [\[VAPOUR\] Dr Nic's Magic Models](https://www.ruby-forum.com/t/vapour-dr-nics-magic-models/100328)

<div class="topic-metadata">

**Author:** [@nicwilliams](https://www.ruby-forum.com/u/nicwilliams)\
**Replies:** 7\
**Last updated:** [May 15, 2007, 9:19pm UTC](https://www.ruby-forum.com/t/vapour-dr-nics-magic-models/100328 "2007-05-15T21:19:34Z")

</div>

Welcome! Welcome! Welcome! Ladies and Gentlemen, soon you shall be thrilled and dazzled by wonders of magical mystery. Soon, very soon, Dr Nic’s Magic Models will be unveiled to all. Children will giggle; Rubists will…

---

## [Mongrel Cluster & Memcached Sessions Issues: session is lost](https://www.ruby-forum.com/t/mongrel-cluster-memcached-sessions-issues-session-is-lost/104242)

<div class="topic-metadata">

**Author:** [@mlemos](https://www.ruby-forum.com/u/mlemos)\
**Replies:** 0\
**Last updated:** [May 15, 2007, 9:07pm UTC](https://www.ruby-forum.com/t/mongrel-cluster-memcached-sessions-issues-session-is-lost/104242 "2007-05-15T21:07:21Z")

</div>

Gents, I’m having very strange issues in my setup: front-end: 1 x apache + mod\_proxy\_balancer app servers: 12 x mongrels session store: 1 x memcached (512MB) I configured both the local session date (stored on memca…

---

## [Memcache storage failing across mongrels](https://www.ruby-forum.com/t/memcache-storage-failing-across-mongrels/91505)

<div class="topic-metadata">

**Author:** [@Chuck\_V](https://www.ruby-forum.com/u/Chuck_V)\
**Replies:** 2\
**Last updated:** [May 15, 2007, 8:51pm UTC](https://www.ruby-forum.com/t/memcache-storage-failing-across-mongrels/91505 "2007-05-15T20:51:38Z")

</div>

We’ve been using memcached to store sessions across our mongrel cluster but we’ve noticed that when apache switches us to a different mongrel our session dies and we get logged out. Further, when I switch mongrels man…

---

## [RDoc not parsing links on my rails app](https://www.ruby-forum.com/t/rdoc-not-parsing-links-on-my-rails-app/104240)

<div class="topic-metadata">

**Author:** [@underbluewaters](https://www.ruby-forum.com/u/underbluewaters)\
**Replies:** 0\
**Last updated:** [May 15, 2007, 8:37pm UTC](https://www.ruby-forum.com/t/rdoc-not-parsing-links-on-my-rails-app/104240 "2007-05-15T20:37:02Z")

</div>

I am having some trouble with RDoc and my routes.rb file. I added config/routes.rb to the rake doc:app task and it doesn’t change links to real hyperlinks. Here’s the modification I made to railties/lib/tasks/document…

---

## [Test unit Mailer test failing Mime-version](https://www.ruby-forum.com/t/test-unit-mailer-test-failing-mime-version/104238)

<div class="topic-metadata">

**Author:** [@kadoudal](https://www.ruby-forum.com/u/kadoudal)\
**Replies:** 0\
**Last updated:** [May 15, 2007, 8:31pm UTC](https://www.ruby-forum.com/t/test-unit-mailer-test-failing-mime-version/104238 "2007-05-15T20:31:08Z")

</div>

my test is failing because of the string: Mime-Version: 1.0\\r\\n added to the subject … To: removed\_email\_address@domain.invalid\\r\\n Subject: test\\r\\n Content-Type: text/plain; charset=utf-8\\r\\n\\r\\n … expected b…

---

## [Can you use a mixin to add action methods to an ActionContro](https://www.ruby-forum.com/t/can-you-use-a-mixin-to-add-action-methods-to-an-actioncontro/104230)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 4\
**Last updated:** [May 15, 2007, 8:24pm UTC](https://www.ruby-forum.com/t/can-you-use-a-mixin-to-add-action-methods-to-an-actioncontro/104230 "2007-05-15T20:24:36Z")

</div>

I am trying to use a module to define a common interface between several ActiveRecord model classes, but I am having trouble setting the instance variable in the mixin functions. For example, I have a mixin, module …

---

## [Fun - Contest: Become a millionaire in PYG currency - Search](https://www.ruby-forum.com/t/fun-contest-become-a-millionaire-in-pyg-currency-search/104239)

<div class="topic-metadata">

**Author:** [@Vivian\_Aranha](https://www.ruby-forum.com/u/Vivian_Aranha)\
**Replies:** 0\
**Last updated:** [May 15, 2007, 8:17pm UTC](https://www.ruby-forum.com/t/fun-contest-become-a-millionaire-in-pyg-currency-search/104239 "2007-05-15T20:17:35Z")

</div>

Hi Everyone! Yep, it's true! As many of you might already know, we recently launched our new exciting ratings feature. On the heels of the ratings launch, we are also hosting a Searchles TV Contest! The announc…

---

## [Is there any hidden command in link\_to function?](https://www.ruby-forum.com/t/is-there-any-hidden-command-in-link-to-function/104195)

<div class="topic-metadata">

**Author:** [@guest](https://www.ruby-forum.com/u/guest)\
**Replies:** 8\
**Last updated:** [May 15, 2007, 8:04pm UTC](https://www.ruby-forum.com/t/is-there-any-hidden-command-in-link-to-function/104195 "2007-05-15T20:04:33Z")

</div>

hi, i want to know how to pass hiddend values in link\_to. if anybody know please tell me. Thanks in addvane.

---

## [When to use self\[:foo\] in models](https://www.ruby-forum.com/t/when-to-use-self-foo-in-models/104223)

<div class="topic-metadata">

**Author:** [@blinking\_bear](https://www.ruby-forum.com/u/blinking_bear)\
**Replies:** 1\
**Last updated:** [May 15, 2007, 8:00pm UTC](https://www.ruby-forum.com/t/when-to-use-self-foo-in-models/104223 "2007-05-15T20:00:32Z")

</div>

I’ve always been a little unclear on accessing attributes of an ActiveRecord model within the class itself, i.e. def full\_name “#{first\_name} #{last\_name}” end or def full\_name “#{self\[:first\_name\]} #{self\[:last\_…

---

## [Hardware/Ram Requirements](https://www.ruby-forum.com/t/hardware-ram-requirements/104178)

<div class="topic-metadata">

**Author:** [@johnk](https://www.ruby-forum.com/u/johnk)\
**Replies:** 2\
**Last updated:** [May 15, 2007, 6:40pm UTC](https://www.ruby-forum.com/t/hardware-ram-requirements/104178 "2007-05-15T18:40:05Z")

</div>

I have a web-app created for reporting purpose with over 150,000 rows in the DB that has anywhere between 3-8 clauses being run on it everytime someone creats a report. Reports return back anywere from a couple hundre…

---

## [Hi, I'm Ruby on Rails](https://www.ruby-forum.com/t/hi-im-ruby-on-rails/104130)

<div class="topic-metadata">

**Author:** [@patched](https://www.ruby-forum.com/u/patched)\
**Replies:** 5\
**Last updated:** [May 15, 2007, 6:35pm UTC](https://www.ruby-forum.com/t/hi-im-ruby-on-rails/104130 "2007-05-15T18:35:04Z")

</div>

Hey guys, Do you wonder what it would be like if someone did a Ruby On Rails commercial in the same style as the “Mac vs PC” apple commercials? To lead up to Railsconf, Jason Seifer and I at RailsEnvy.com put toge…

---

## [Promote your favorite designer on Rails For All](https://www.ruby-forum.com/t/promote-your-favorite-designer-on-rails-for-all/104231)

<div class="topic-metadata">

**Author:** [@flatekmonkey](https://www.ruby-forum.com/u/flatekmonkey)\
**Replies:** 0\
**Last updated:** [May 15, 2007, 6:33pm UTC](https://www.ruby-forum.com/t/promote-your-favorite-designer-on-rails-for-all/104231 "2007-05-15T18:33:04Z")

</div>

Hey all, We have added designers to the mix on Rails For All. If you have a favorite designer that you work with, get them additional exposure by having them sign up and create a profile on the Rails For All site. It…

---

## [Search on variable-length array of values?](https://www.ruby-forum.com/t/search-on-variable-length-array-of-values/104224)

<div class="topic-metadata">

**Author:** [@milo](https://www.ruby-forum.com/u/milo)\
**Replies:** 2\
**Last updated:** [May 15, 2007, 5:56pm UTC](https://www.ruby-forum.com/t/search-on-variable-length-array-of-values/104224 "2007-05-15T17:56:31Z")

</div>

I am a bit stuck with the following problem, and would welcome suggestions. I have two tables, e.g. “things” and “properties”, with one line of of things corresponding to one line of properties, and vice-versa, and 70 …

---

## [About a simple insert](https://www.ruby-forum.com/t/about-a-simple-insert/104212)

<div class="topic-metadata">

**Author:** [@turnkeytraders](https://www.ruby-forum.com/u/turnkeytraders)\
**Replies:** 5\
**Last updated:** [May 15, 2007, 5:54pm UTC](https://www.ruby-forum.com/t/about-a-simple-insert/104212 "2007-05-15T17:54:59Z")

</div>

Ok, my problem is that I have a form with a client’s information. Now in the form, I ask the client for his info, which inserts into the table “clients”, and then I have another text input where he has to provide a sp…

---

## [IF- statements in controller](https://www.ruby-forum.com/t/if-statements-in-controller/104228)

<div class="topic-metadata">

**Author:** [@elmy-liddiard](https://www.ruby-forum.com/u/elmy-liddiard)\
**Replies:** 0\
**Last updated:** [May 15, 2007, 5:52pm UTC](https://www.ruby-forum.com/t/if-statements-in-controller/104228 "2007-05-15T17:52:01Z")

</div>

I would appreciate a little help with use of :condition I hav ethe following code in a controller file:- def listbyparam if params\[:department\_id\] != '' conditions = \["department\_id = ?", params\[:depa…

---

## [Index in collection\_select](https://www.ruby-forum.com/t/index-in-collection-select/104188)

<div class="topic-metadata">

**Author:** [@selvaraj](https://www.ruby-forum.com/u/selvaraj)\
**Replies:** 1\
**Last updated:** [May 15, 2007, 5:49pm UTC](https://www.ruby-forum.com/t/index-in-collection-select/104188 "2007-05-15T17:49:58Z")

</div>

Can we create index for collection\_select?

---

## [Problem with RJS and/or Prototype.js =\>ResponseText is blank](https://www.ruby-forum.com/t/problem-with-rjs-and-or-prototype-js-responsetext-is-blank/104197)

<div class="topic-metadata">

**Author:** [@Johnny\_Hall](https://www.ruby-forum.com/u/Johnny_Hall)\
**Replies:** 5\
**Last updated:** [May 15, 2007, 5:07pm UTC](https://www.ruby-forum.com/t/problem-with-rjs-and-or-prototype-js-responsetext-is-blank/104197 "2007-05-15T17:07:50Z")

</div>

Hi, I’ve got a real head-scratcher. I’ve got a standard Ajax form using form\_remote\_tag, which calls a controller action which adds a comment and then sends back some JS via RJS which updates a few items on the page. …

---

## [High profile organisations working with Rails](https://www.ruby-forum.com/t/high-profile-organisations-working-with-rails/104221)

<div class="topic-metadata">

**Author:** [@Martin\_Sadler](https://www.ruby-forum.com/u/Martin_Sadler)\
**Replies:** 0\
**Last updated:** [May 15, 2007, 4:55pm UTC](https://www.ruby-forum.com/t/high-profile-organisations-working-with-rails/104221 "2007-05-15T16:55:11Z")

</div>

Just posted about a bunch of prominent organisations using Rails. Amazon, BBC, Cisco, Electronic Arts, IBM, NASA are just some of the many. See the full list at: http://workingwithrails.com/high-profile-organisations …

---

## [openURI not capturing pages from the same rails app](https://www.ruby-forum.com/t/openuri-not-capturing-pages-from-the-same-rails-app/104203)

<div class="topic-metadata">

**Author:** [@tom](https://www.ruby-forum.com/u/tom)\
**Replies:** 2\
**Last updated:** [May 15, 2007, 4:48pm UTC](https://www.ruby-forum.com/t/openuri-not-capturing-pages-from-the-same-rails-app/104203 "2007-05-15T16:48:15Z")

</div>

Hi, I am using standard Ruby library openURI to capture the HTML code from other pages. The problem openURI does not work for capturing pages from the same rails application. Here is the code: class CdCreatorControl…

---

## [Partials - when to use :object =\>](https://www.ruby-forum.com/t/partials-when-to-use-object/104213)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [May 15, 2007, 4:44pm UTC](https://www.ruby-forum.com/t/partials-when-to-use-object/104213 "2007-05-15T16:44:15Z")

</div>

When should I use “:object =\>” or “:collection =\>” to pass an object reference to a partial vs reference an instance variable directly with the partial? I would value best practice/opinions/pros/cons on this.

---

## [Db:migrate vs. MySQL dump or good ol' DDL](https://www.ruby-forum.com/t/db-migrate-vs-mysql-dump-or-good-ol-ddl/104215)

<div class="topic-metadata">

**Author:** [@keith](https://www.ruby-forum.com/u/keith)\
**Replies:** 2\
**Last updated:** [May 15, 2007, 4:40pm UTC](https://www.ruby-forum.com/t/db-migrate-vs-mysql-dump-or-good-ol-ddl/104215 "2007-05-15T16:40:15Z")

</div>

Have people run into issues using db:migrate where you have gone back to using MySQL dumps or DDL? We are a first time Rails development team and are trying to decide if we should use db:migrate in production. What …

---

## [Rake db:migrate sucks](https://www.ruby-forum.com/t/rake-db-migrate-sucks/104189)

<div class="topic-metadata">

**Author:** [@fred](https://www.ruby-forum.com/u/fred)\
**Replies:** 5\
**Last updated:** [May 15, 2007, 4:33pm UTC](https://www.ruby-forum.com/t/rake-db-migrate-sucks/104189 "2007-05-15T16:33:14Z")

</div>

I have installed ruby1.8.5-22 under windows, and then rails 1.2.3 and also i update rubygems to 0.9.3 with gems update --system however,when i enter the project directory and input the command rake db:migrate,it suck…

---

## [Understanding memory leaks](https://www.ruby-forum.com/t/understanding-memory-leaks/104214)

<div class="topic-metadata">

**Author:** [@elliterate](https://www.ruby-forum.com/u/elliterate)\
**Replies:** 2\
**Last updated:** [May 15, 2007, 3:57pm UTC](https://www.ruby-forum.com/t/understanding-memory-leaks/104214 "2007-05-15T15:57:08Z")

</div>

Hey list, My app is leaking; It’s actually more of a gush than just a leak. I tried using the script from http://scottstuff.net/blog/articles/2006/08/17/memory-leak-profiling-with-railsbut to be honest, I couldn’t di…

---

## [Problems with RJS](https://www.ruby-forum.com/t/problems-with-rjs/104217)

<div class="topic-metadata">

**Author:** [@patcito](https://www.ruby-forum.com/u/patcito)\
**Replies:** 0\
**Last updated:** [May 15, 2007, 3:41pm UTC](https://www.ruby-forum.com/t/problems-with-rjs/104217 "2007-05-15T15:41:05Z")

</div>

Hey all, I’m trying to replace a select with text\_field by clicking on a link\_to\_remote with RJS. This part work, but then when I try to replace the text\_field back by the select tag it doesn’t work in firefox (it do…

---

## [Problem with using script.aculos.us](https://www.ruby-forum.com/t/problem-with-using-script-aculos-us/104187)

<div class="topic-metadata">

**Author:** [@vikki](https://www.ruby-forum.com/u/vikki)\
**Replies:** 1\
**Last updated:** [May 15, 2007, 3:21pm UTC](https://www.ruby-forum.com/t/problem-with-using-script-aculos-us/104187 "2007-05-15T15:21:02Z")

</div>

HI everybody, I’m newbie to rails application. I like to use script.aculos.us script in my app. In that I can’t drag the items using script. This is the code I used inside my .rhtml file. Effects Cl…

---

## [Monit apache2 and fastcgi](https://www.ruby-forum.com/t/monit-apache2-and-fastcgi/104149)

<div class="topic-metadata">

**Author:** [@Henrik\_O](https://www.ruby-forum.com/u/Henrik_O)\
**Replies:** 2\
**Last updated:** [May 15, 2007, 12:49pm UTC](https://www.ruby-forum.com/t/monit-apache2-and-fastcgi/104149 "2007-05-15T12:49:39Z")

</div>

I’ve installed monit to stop my server hanging (don’t know why, it’s an dual-core processor and 2gb memory, wich should be plenty for our needs). I should like to also monitor the fastcgi processes, but I can’t find …

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

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