# Rails

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

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

---

## [Caches.rb](https://www.ruby-forum.com/t/caches-rb/115620)

<div class="topic-metadata">

**Author:** [@snaga](https://www.ruby-forum.com/u/snaga)\
**Replies:** 0\
**Last updated:** [September 26, 2007, 10:51pm UTC](https://www.ruby-forum.com/t/caches-rb/115620 "2007-09-26T22:51:45Z")

</div>

Is anyone using caches.rb in a rails app? Apparently I’m not smart enough to make it go, and could use a little help. Basically, I have a model that I’d like to cache a method or two on. If anyone could fill me in on …

---

## [Extend find and paginate to always have a condition](https://www.ruby-forum.com/t/extend-find-and-paginate-to-always-have-a-condition/115619)

<div class="topic-metadata">

**Author:** [@ss\_1982](https://www.ruby-forum.com/u/ss_1982)\
**Replies:** 0\
**Last updated:** [September 26, 2007, 10:49pm UTC](https://www.ruby-forum.com/t/extend-find-and-paginate-to-always-have-a-condition/115619 "2007-09-26T22:49:29Z")

</div>

Hi, I am looking for a way to add a condition to all find and paginate methods for one class. I am aware of with\_scope, but I can not find a way to extend self.find in the model. Has anyone got any suggestions. tha…

---

## [Inexperienced user needs advice with layouts](https://www.ruby-forum.com/t/inexperienced-user-needs-advice-with-layouts/115532)

<div class="topic-metadata">

**Author:** [@pedz](https://www.ruby-forum.com/u/pedz)\
**Replies:** 3\
**Last updated:** [September 26, 2007, 10:48pm UTC](https://www.ruby-forum.com/t/inexperienced-user-needs-advice-with-layouts/115532 "2007-09-26T22:48:12Z")

</div>

I’m thinking that I want three levels of layouts: one level for the application, one level for each controller, and a third for each action. The top (application) would define the overall page with the header, side pa…

---

## [ROR apps sending to popular IM networks](https://www.ruby-forum.com/t/ror-apps-sending-to-popular-im-networks/115618)

<div class="topic-metadata">

**Author:** [@maui](https://www.ruby-forum.com/u/maui)\
**Replies:** 1\
**Last updated:** [September 26, 2007, 10:35pm UTC](https://www.ruby-forum.com/t/ror-apps-sending-to-popular-im-networks/115618 "2007-09-26T22:35:19Z")

</div>

Hi all, Does anyone have experience having RoR send messages to popular IM services (AOL, Yahoo!, MSN, etc). Are people using Jabber gateways and XMPP4R? What about the various APIs from these networks? Thanks, Ma…

---

## [Which action?](https://www.ruby-forum.com/t/which-action/115592)

<div class="topic-metadata">

**Author:** [@DuzenburyS\_Rich](https://www.ruby-forum.com/u/DuzenburyS_Rich)\
**Replies:** 3\
**Last updated:** [September 26, 2007, 10:27pm UTC](https://www.ruby-forum.com/t/which-action/115592 "2007-09-26T22:27:41Z")

</div>

Hi, I’ve got a partial that I call from more than one view. I need it to be slightly different when called from one of the views. Does rails set a variable to tell the partial which action or view is calling it, and…

---

## [Strange Little Problem](https://www.ruby-forum.com/t/strange-little-problem/115546)

<div class="topic-metadata">

**Author:** [@qbqbqb](https://www.ruby-forum.com/u/qbqbqb)\
**Replies:** 5\
**Last updated:** [September 26, 2007, 10:20pm UTC](https://www.ruby-forum.com/t/strange-little-problem/115546 "2007-09-26T22:20:40Z")

</div>

I just created a simple model and started to write unit tests for it (I’ve cleaned out extraneous stuff). The migration is: class CreateMembers \< ActiveRecord::Migration def self.up create\_table :members do |t| t.c…

---

## [Periodically\_call\_remote & WEBrick poor performance](https://www.ruby-forum.com/t/periodically-call-remote-webrick-poor-performance/115617)

<div class="topic-metadata">

**Author:** [@mr\_tibs](https://www.ruby-forum.com/u/mr_tibs)\
**Replies:** 0\
**Last updated:** [September 26, 2007, 9:51pm UTC](https://www.ruby-forum.com/t/periodically-call-remote-webrick-poor-performance/115617 "2007-09-26T21:51:22Z")

</div>

Hi, I’m getting very poor performance when using periodically\_call\_remote() in a Rails application. By poor performance I mean that pages don’t refresh at the requested interval (specified in the periodically\_call\_re…

---

## [ActionMailer Problem](https://www.ruby-forum.com/t/actionmailer-problem/115613)

<div class="topic-metadata">

**Author:** [@mwalsh](https://www.ruby-forum.com/u/mwalsh)\
**Replies:** 1\
**Last updated:** [September 26, 2007, 9:31pm UTC](https://www.ruby-forum.com/t/actionmailer-problem/115613 "2007-09-26T21:31:58Z")

</div>

Hello, I am trying to send automated e-mails using ActionMailer in a Rails project. The configuration I am using is a working configuration on another server. But even when I try sending within irb, I get the same pr…

---

## [Optional routing URL component?](https://www.ruby-forum.com/t/optional-routing-url-component/114190)

<div class="topic-metadata">

**Author:** [@stubbsuk](https://www.ruby-forum.com/u/stubbsuk)\
**Replies:** 5\
**Last updated:** [September 26, 2007, 9:29pm UTC](https://www.ruby-forum.com/t/optional-routing-url-component/114190 "2007-09-26T21:29:37Z")

</div>

For legacy reasons, I’d like to be able to have part of a url as optional, the problem is that it’s at the start of the URL, rather than the end. /laddr/match/result with ‘/laddr’ being optional, depending on which U…

---

## [URGENT: 2-4 week consultant needed](https://www.ruby-forum.com/t/urgent-2-4-week-consultant-needed/115610)

<div class="topic-metadata">

**Author:** [@Mailing\_L](https://www.ruby-forum.com/u/Mailing_L)\
**Replies:** 0\
**Last updated:** [September 26, 2007, 8:35pm UTC](https://www.ruby-forum.com/t/urgent-2-4-week-consultant-needed/115610 "2007-09-26T20:35:11Z")

</div>

I need someone that is very proficient with Rails and can hammer out a mid sized job within just a couple of weeks. There will be a lot of interaction between the person hired and myself and I expect interaction to …

---

## [Is there a Rails helper similar to link\_to\_remote but for a form check box instead of a link?](https://www.ruby-forum.com/t/is-there-a-rails-helper-similar-to-link-to-remote-but-for-a-form-check-box-instead-of-a-link/115607)

<div class="topic-metadata">

**Author:** [@sharon](https://www.ruby-forum.com/u/sharon)\
**Replies:** 1\
**Last updated:** [September 26, 2007, 8:18pm UTC](https://www.ruby-forum.com/t/is-there-a-rails-helper-similar-to-link-to-remote-but-for-a-form-check-box-instead-of-a-link/115607 "2007-09-26T20:18:45Z")

</div>

I’m working on a couple of user input forms – one data entry, one search – where I’d like to start off by displaying only top-level categories. Then, if a user checked one of the top-level categories, all the child ca…

---

## [Default method parameters](https://www.ruby-forum.com/t/default-method-parameters/115588)

<div class="topic-metadata">

**Author:** [@Cassiano\_R](https://www.ruby-forum.com/u/Cassiano_R)\
**Replies:** 2\
**Last updated:** [September 26, 2007, 7:00pm UTC](https://www.ruby-forum.com/t/default-method-parameters/115588 "2007-09-26T19:00:46Z")

</div>

Hello I have an method like this: def test(x, y=’’, z=’’) puts “x=#{x} y=#{y} z=#{z}” end and I want call with x and z parameters: test(‘x’, z=‘z’) output: x=‘x’ y=‘z’ z=’’ How you can see, the Z value appears i…

---

## [Select with onChange](https://www.ruby-forum.com/t/select-with-onchange/108700)

<div class="topic-metadata">

**Author:** [@oozy](https://www.ruby-forum.com/u/oozy)\
**Replies:** 4\
**Last updated:** [September 26, 2007, 6:59pm UTC](https://www.ruby-forum.com/t/select-with-onchange/108700 "2007-09-26T18:59:01Z")

</div>

Hi, I’m trying to use a form.select with a a simple javascript alert. This is my code. \<%= form.select(:entry\_type, Entry::TYPES, :prompt =\> “Select The Type”, :onChange =\> “alert(‘test’)”) %\> The form loads without…

---

## [Application error](https://www.ruby-forum.com/t/application-error/115602)

<div class="topic-metadata">

**Author:** [@Ruby\_Newby](https://www.ruby-forum.com/u/Ruby_Newby)\
**Replies:** 4\
**Last updated:** [September 26, 2007, 6:59pm UTC](https://www.ruby-forum.com/t/application-error/115602 "2007-09-26T18:59:01Z")

</div>

What could possibly cause this error: Application error Rails application failed to start properly" When I load a controller in a browser? I have created the controller, model, and view; created the database table, …

---

## [Everything takes forever](https://www.ruby-forum.com/t/everything-takes-forever/115330)

<div class="topic-metadata">

**Author:** [@sweatje](https://www.ruby-forum.com/u/sweatje)\
**Replies:** 18\
**Last updated:** [September 26, 2007, 6:42pm UTC](https://www.ruby-forum.com/t/everything-takes-forever/115330 "2007-09-26T18:42:31Z")

</div>

I installed ruby on rails with the one-click-installer. When I do a rails x or start the server, or make a controller etc basically anything that requires ruby is VERY VERY VERY SLOW. I used to run this on my old cont…

---

## [Collection\_select problem](https://www.ruby-forum.com/t/collection-select-problem/115601)

<div class="topic-metadata">

**Author:** [@joel](https://www.ruby-forum.com/u/joel)\
**Replies:** 0\
**Last updated:** [September 26, 2007, 6:40pm UTC](https://www.ruby-forum.com/t/collection-select-problem/115601 "2007-09-26T18:40:47Z")

</div>

I have an “Installation” model with the following associations to the “user” model belongs\_to :user\_id, :class\_name =\> “User”, :foreign\_key =\> “user\_id” belongs\_to :assigned\_id, :class\_name =\> “User”, :foreign\_key =\> …

---

## [Specing a plugin/engine](https://www.ruby-forum.com/t/specing-a-plugin-engine/115599)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [September 26, 2007, 6:34pm UTC](https://www.ruby-forum.com/t/specing-a-plugin-engine/115599 "2007-09-26T18:34:55Z")

</div>

Does anyone know of an example of a plugin/engine that has been rspeced? I want to use all the wonderful helpers in rspec\_on\_rails but they’re set up to use the correct dsl for the plugin classes. Whats the correct w…

---

## [Validations not work fine with associations](https://www.ruby-forum.com/t/validations-not-work-fine-with-associations/115600)

<div class="topic-metadata">

**Author:** [@agnathan](https://www.ruby-forum.com/u/agnathan)\
**Replies:** 0\
**Last updated:** [September 26, 2007, 6:32pm UTC](https://www.ruby-forum.com/t/validations-not-work-fine-with-associations/115600 "2007-09-26T18:32:18Z")

</div>

Hello, I thiks that rails validations not work fine with associations. For example, if we have the models Antenna, Area and Position, where positions are grouped by areas, areas has many antennas and antennas can hav…

---

## [Rails 1.2.2 upgrade problem](https://www.ruby-forum.com/t/rails-1-2-2-upgrade-problem/87891)

<div class="topic-metadata">

**Author:** [@dmcclean](https://www.ruby-forum.com/u/dmcclean)\
**Replies:** 2\
**Last updated:** [September 26, 2007, 6:20pm UTC](https://www.ruby-forum.com/t/rails-1-2-2-upgrade-problem/87891 "2007-09-26T18:20:23Z")

</div>

I was upgrading today from 1.1.2 to 1.2.2. When I attempt to run the ruby script/server process now, I get the errors below. I have looked through the source files, but nothing obvious. The problem may be a constant w…

---

## [Media Temple?](https://www.ruby-forum.com/t/media-temple/115422)

<div class="topic-metadata">

**Author:** [@cammo](https://www.ruby-forum.com/u/cammo)\
**Replies:** 1\
**Last updated:** [September 26, 2007, 6:09pm UTC](https://www.ruby-forum.com/t/media-temple/115422 "2007-09-26T18:09:40Z")

</div>

Is anyone out there using Media Temple for hosting? If so what is your opinion on them? Normally I’d use a VPS and manage it ourselves, but this is a smaller project and isn’t really worth us managing ourselves. So w…

---

## [Class Variables in activerecord](https://www.ruby-forum.com/t/class-variables-in-activerecord/93028)

<div class="topic-metadata">

**Author:** [@ganeshguna](https://www.ruby-forum.com/u/ganeshguna)\
**Replies:** 14\
**Last updated:** [September 26, 2007, 5:33pm UTC](https://www.ruby-forum.com/t/class-variables-in-activerecord/93028 "2007-09-26T17:33:40Z")

</div>

How are class variables persisted using Activerecord? Cheers, Ganesh G.

---

## ["Nesting" Controllers](https://www.ruby-forum.com/t/nesting-controllers/115452)

<div class="topic-metadata">

**Author:** [@bigdaddy71](https://www.ruby-forum.com/u/bigdaddy71)\
**Replies:** 1\
**Last updated:** [September 26, 2007, 5:24pm UTC](https://www.ruby-forum.com/t/nesting-controllers/115452 "2007-09-26T17:24:32Z")

</div>

Hi there! I guess this is a pretty noob-like question for all the long-aged railers. I’d like to keep the controllers for my admin interface inside a folder called (guess…) “admin”. I wonder if I could make rails not…

---

## [Send(column.name) comparison problems](https://www.ruby-forum.com/t/send-column-name-comparison-problems/88326)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 7\
**Last updated:** [September 26, 2007, 5:14pm UTC](https://www.ruby-forum.com/t/send-column-name-comparison-problems/88326 "2007-09-26T17:14:27Z")

</div>

I am having trouble with what I thought would be a simple equality comparison. Here is the relevant code: \<% for ticket in @tickets %\> \<% for column in Ticket.content\_columns %\> \<% if column.human\_name == "S…

---

## [Filtering dates](https://www.ruby-forum.com/t/filtering-dates/115506)

<div class="topic-metadata">

**Author:** [@temesta](https://www.ruby-forum.com/u/temesta)\
**Replies:** 3\
**Last updated:** [September 26, 2007, 4:39pm UTC](https://www.ruby-forum.com/t/filtering-dates/115506 "2007-09-26T16:39:19Z")

</div>

Hi, I’m having some records with a start- and end-date: start= 01/03/2007 end 05/05/2007 start= 01/04/2007 end 20/06/2007 start= 15/07/2007 end 01/08/2007 How can I query the records that lie in a specific mont…

---

## [Ruby on Rails setup not working - newbie help](https://www.ruby-forum.com/t/ruby-on-rails-setup-not-working-newbie-help/115556)

<div class="topic-metadata">

**Author:** [@bruce](https://www.ruby-forum.com/u/bruce)\
**Replies:** 2\
**Last updated:** [September 26, 2007, 4:38pm UTC](https://www.ruby-forum.com/t/ruby-on-rails-setup-not-working-newbie-help/115556 "2007-09-26T16:38:44Z")

</div>

Hello all, I’m hoping someone can help me with this problem. This is definitely a newbie question as this is the case where the very first program of mine in RoR is not working. I downloaded Ruby, Ruby Gems and Rai…

---

## [Poll: Which Editor/IDE Do You Use For Ruby/Rails Development](https://www.ruby-forum.com/t/poll-which-editor-ide-do-you-use-for-ruby-rails-development/109847)

<div class="topic-metadata">

**Author:** [@thabenksta](https://www.ruby-forum.com/u/thabenksta)\
**Replies:** 17\
**Last updated:** [September 26, 2007, 4:31pm UTC](https://www.ruby-forum.com/t/poll-which-editor-ide-do-you-use-for-ruby-rails-development/109847 "2007-09-26T16:31:06Z")

</div>

I’m currently using RadRails but considering other alternatives since that software gets buggier with each upgrade. Anyway, here is an online poll; would you guys mind participating in the 1st poll listed here? http…

---

## [SSL support for Nginx/Ubuntu](https://www.ruby-forum.com/t/ssl-support-for-nginx-ubuntu/115573)

<div class="topic-metadata">

**Author:** [@vince](https://www.ruby-forum.com/u/vince)\
**Replies:** 1\
**Last updated:** [September 26, 2007, 4:25pm UTC](https://www.ruby-forum.com/t/ssl-support-for-nginx-ubuntu/115573 "2007-09-26T16:25:10Z")

</div>

I just started supporting OpenID in my app. During development/testing I used MacOS X with Mongrel… no problems. On deployment, I’ve got Ubuntu Feisty. Upon running my migration, I got this notice: “OpenID Log: WARN…

---

## [Install RoR with Ruby from source](https://www.ruby-forum.com/t/install-ror-with-ruby-from-source/115579)

<div class="topic-metadata">

**Author:** [@helzer](https://www.ruby-forum.com/u/helzer)\
**Replies:** 2\
**Last updated:** [September 26, 2007, 4:03pm UTC](https://www.ruby-forum.com/t/install-ror-with-ruby-from-source/115579 "2007-09-26T16:03:25Z")

</div>

I’m running Rails on Linux (ubuntu 7.0.4). It turns out that when installing Ruby via apt-get, you get a generic build that hardly uses the instruction set. It recognizes your system as ‘i486-linux’. When you build R…

---

## [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…

---

## [Quick question - Refreshing layout](https://www.ruby-forum.com/t/quick-question-refreshing-layout/115466)

<div class="topic-metadata">

**Author:** [@mindmage](https://www.ruby-forum.com/u/mindmage)\
**Replies:** 2\
**Last updated:** [September 26, 2007, 2:31pm UTC](https://www.ruby-forum.com/t/quick-question-refreshing-layout/115466 "2007-09-26T14:31:55Z")

</div>

Hi! I’m trying to code a dynamic layout - menus are hidden and shown depending on variables stored in session. Is there a way to force Rails to re-render the layout? Because the only other option i see is making a ga…

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

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