# Rails

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

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

---

## [Pattern for a unified search of multiple similar models](https://www.ruby-forum.com/t/pattern-for-a-unified-search-of-multiple-similar-models/90519)

<div class="topic-metadata">

**Author:** [@klklkl](https://www.ruby-forum.com/u/klklkl)\
**Replies:** 1\
**Last updated:** [March 29, 2007, 2:20pm UTC](https://www.ruby-forum.com/t/pattern-for-a-unified-search-of-multiple-similar-models/90519 "2007-03-29T14:20:27Z")

</div>

I’m trying to come up with a way of providing some kind of way in which I can do a find over a number of different models which have common fields. For example say I have two models Dog and Cat, they both have some f…

---

## [Question about controller inheritance](https://www.ruby-forum.com/t/question-about-controller-inheritance/90518)

<div class="topic-metadata">

**Author:** [@brijnaald](https://www.ruby-forum.com/u/brijnaald)\
**Replies:** 0\
**Last updated:** [March 29, 2007, 2:09pm UTC](https://www.ruby-forum.com/t/question-about-controller-inheritance/90518 "2007-03-29T14:09:56Z")

</div>

Hi, I’m trying to apply a theme from theme\_support in my entire application. Therefore it put a theme and layout line in the ApplicationController. The way I understand it, every subclass from this controller will als…

---

## [Update a attachment with attachment\_fu](https://www.ruby-forum.com/t/update-a-attachment-with-attachment-fu/90513)

<div class="topic-metadata">

**Author:** [@Tino\_B](https://www.ruby-forum.com/u/Tino_B)\
**Replies:** 0\
**Last updated:** [March 29, 2007, 12:20pm UTC](https://www.ruby-forum.com/t/update-a-attachment-with-attachment-fu/90513 "2007-03-29T12:20:59Z")

</div>

Hi, i was wondering how attachment\_fu handles the update of attachments. If i just do update\_attributes it complains that there is no temp file. Anyone else had this issue? Tino

---

## [Rake commands](https://www.ruby-forum.com/t/rake-commands/90509)

<div class="topic-metadata">

**Author:** [@dilip](https://www.ruby-forum.com/u/dilip)\
**Replies:** 0\
**Last updated:** [March 29, 2007, 12:13pm UTC](https://www.ruby-forum.com/t/rake-commands/90509 "2007-03-29T12:13:52Z")

</div>

RAKE is the make of ruby - the R uby m AKE. Rails defines a number of tasks to help you: rake db:fixtures:load Load fixtures into the current environmentâ€™s database. Load specific fixtures using FIXTURES=x,y rake …

---

## [RJS error in internet explorer](https://www.ruby-forum.com/t/rjs-error-in-internet-explorer/74759)

<div class="topic-metadata">

**Author:** [@stewbawka](https://www.ruby-forum.com/u/stewbawka)\
**Replies:** 5\
**Last updated:** [March 29, 2007, 12:12pm UTC](https://www.ruby-forum.com/t/rjs-error-in-internet-explorer/74759 "2007-03-29T12:12:54Z")

</div>

hey all, got a rails app i’m finishing up. i have a little ajax on one of my pages where the person can choose a doctor from a drop down list and if the doctor isn’t there they can click a link which blinds down a lit…

---

## [Rails animated ad](https://www.ruby-forum.com/t/rails-animated-ad/90506)

<div class="topic-metadata">

**Author:** [@suske](https://www.ruby-forum.com/u/suske)\
**Replies:** 1\
**Last updated:** [March 29, 2007, 11:55am UTC](https://www.ruby-forum.com/t/rails-animated-ad/90506 "2007-03-29T11:55:52Z")

</div>

Check out this animated spoof on a Rails ad, done by the guys from Nectarine

---

## [Total beginner asks a few questions](https://www.ruby-forum.com/t/total-beginner-asks-a-few-questions/90355)

<div class="topic-metadata">

**Author:** [@running\_idiot](https://www.ruby-forum.com/u/running_idiot)\
**Replies:** 7\
**Last updated:** [March 29, 2007, 11:52am UTC](https://www.ruby-forum.com/t/total-beginner-asks-a-few-questions/90355 "2007-03-29T11:52:52Z")

</div>

Hi there, I am doing the “depot” application from Agile Web D. With Rails book - and there is a lot of copy-and-paste. And I have to say, as a beginner in both Ruby and Rails, I don’t understand quite a lot of things…

---

## [What is the difference "case && if"?](https://www.ruby-forum.com/t/what-is-the-difference-case-if/90502)

<div class="topic-metadata">

**Author:** [@jamal](https://www.ruby-forum.com/u/jamal)\
**Replies:** 4\
**Last updated:** [March 29, 2007, 11:30am UTC](https://www.ruby-forum.com/t/what-is-the-difference-case-if/90502 "2007-03-29T11:30:44Z")

</div>

Hello there, Sometime I feel like I understood Ruby and sometime I think its too freaky??? Here is example what I don’t get? This work as it is… if request.post? #do something When I try to put it inside case, it …

---

## [Using certificates with ActiveResource](https://www.ruby-forum.com/t/using-certificates-with-activeresource/90503)

<div class="topic-metadata">

**Author:** [@glenatron](https://www.ruby-forum.com/u/glenatron)\
**Replies:** 0\
**Last updated:** [March 29, 2007, 11:04am UTC](https://www.ruby-forum.com/t/using-certificates-with-activeresource/90503 "2007-03-29T11:04:45Z")

</div>

I’m trying to hack ActiveResource to use a self-signed certificate when connecting to my RESTful rails app (seems like a pretty glaring hole that it doesn’t offer this out of the box… though I guess it is alpha softwa…

---

## [Upload image and problem in display same time](https://www.ruby-forum.com/t/upload-image-and-problem-in-display-same-time/90499)

<div class="topic-metadata">

**Author:** [@Jahnvi\_Thaker](https://www.ruby-forum.com/u/Jahnvi_Thaker)\
**Replies:** 0\
**Last updated:** [March 29, 2007, 10:32am UTC](https://www.ruby-forum.com/t/upload-image-and-problem-in-display-same-time/90499 "2007-03-29T10:32:38Z")

</div>

hi i want to display image as it is uploaded, –\> i have a render partial form in which i used iframe like this, Select Image: where image is uploaded, for that on click of update button in …

---

## [Undefined method \`acts\_as\_attachment' for Photo:Class](https://www.ruby-forum.com/t/undefined-method-acts-as-attachment-for-photo-class/86887)

<div class="topic-metadata">

**Author:** [@scott](https://www.ruby-forum.com/u/scott)\
**Replies:** 2\
**Last updated:** [March 29, 2007, 9:56am UTC](https://www.ruby-forum.com/t/undefined-method-acts-as-attachment-for-photo-class/86887 "2007-03-29T09:56:36Z")

</div>

Hi, I am trying to use the Acts as Attachment plugin and running into the following error: undefined method \`acts\_as\_attachment’ for Photo:Class Here’s the steps I took: script/plugin source http://svn.techno-weenie…

---

## [Ruby on Rails usage (and maintenance) short survey](https://www.ruby-forum.com/t/ruby-on-rails-usage-and-maintenance-short-survey/90497)

<div class="topic-metadata">

**Author:** [@Arjen\_van\_Schie](https://www.ruby-forum.com/u/Arjen_van_Schie)\
**Replies:** 0\
**Last updated:** [March 29, 2007, 9:36am UTC](https://www.ruby-forum.com/t/ruby-on-rails-usage-and-maintenance-short-survey/90497 "2007-03-29T09:36:34Z")

</div>

If you have a few minutes to enter this questionnaire you’re help will be very appreciated. The results will be used in an essay on RoR with respect to maintainability. Thank you for your time QUESTIONNAIRE: 1 What …

---

## [Web application developer / Ruby on Rails](https://www.ruby-forum.com/t/web-application-developer-ruby-on-rails/90492)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [March 29, 2007, 8:14am UTC](https://www.ruby-forum.com/t/web-application-developer-ruby-on-rails/90492 "2007-03-29T08:14:24Z")

</div>

Working within a small development team on leading business to business applications my client requires a dedicated and ambitious individual with skills in Ruby On Rails, XHTML, AJAX, C and/or Java and competency in a…

---

## [Making rails thread safe, priority or not?](https://www.ruby-forum.com/t/making-rails-thread-safe-priority-or-not/66341)

<div class="topic-metadata">

**Author:** [@snacktime](https://www.ruby-forum.com/u/snacktime)\
**Replies:** 17\
**Last updated:** [March 29, 2007, 5:38am UTC](https://www.ruby-forum.com/t/making-rails-thread-safe-priority-or-not/66341 "2007-03-29T05:38:19Z")

</div>

I know there has been a lot of talk about rails and thread safety. Maybe I’ve missed it, but I havent’ seen any of the core team talk about whether they plan on fixing this in the near future or not. It seems to me t…

---

## [Modifying Plugins and Subversion](https://www.ruby-forum.com/t/modifying-plugins-and-subversion/90471)

<div class="topic-metadata">

**Author:** [@thelorax](https://www.ruby-forum.com/u/thelorax)\
**Replies:** 2\
**Last updated:** [March 29, 2007, 5:27am UTC](https://www.ruby-forum.com/t/modifying-plugins-and-subversion/90471 "2007-03-29T05:27:11Z")

</div>

Hello, I’m new to both Rails and Subversion so please bear with me. Let’s say I install a plugin with --externals set, and then make some custom modifications to the plugin… If I perform a commit on my local project…

---

## [Formatting integer (2 printed as 02)](https://www.ruby-forum.com/t/formatting-integer-2-printed-as-02/90466)

<div class="topic-metadata">

**Author:** [@brijnaald](https://www.ruby-forum.com/u/brijnaald)\
**Replies:** 3\
**Last updated:** [March 29, 2007, 4:56am UTC](https://www.ruby-forum.com/t/formatting-integer-2-printed-as-02/90466 "2007-03-29T04:56:08Z")

</div>

Hi, I want to format an integer as hours and minutes. Of course it’s easy to write this myself, but let’s respect DRY! Is there a method I can use so that integers are converted to strings of 2 digits? So: 2 --\> 02 …

---

## [Case sensitive search?](https://www.ruby-forum.com/t/case-sensitive-search/90484)

<div class="topic-metadata">

**Author:** [@rmehta](https://www.ruby-forum.com/u/rmehta)\
**Replies:** 4\
**Last updated:** [March 29, 2007, 4:50am UTC](https://www.ruby-forum.com/t/case-sensitive-search/90484 "2007-03-29T04:50:48Z")

</div>

Hello, I have a login field in the db. when I give find\_by\_login(‘Abc’). And there is no login as ‘Abc’ but there is ‘abc’, then it returns that it exists. Shouldn’t this be case sensitive by default? If not then ho…

---

## [What to do when Rails generated select statements don't work](https://www.ruby-forum.com/t/what-to-do-when-rails-generated-select-statements-dont-work/90481)

<div class="topic-metadata">

**Author:** [@eriklane](https://www.ruby-forum.com/u/eriklane)\
**Replies:** 0\
**Last updated:** [March 29, 2007, 4:33am UTC](https://www.ruby-forum.com/t/what-to-do-when-rails-generated-select-statements-dont-work/90481 "2007-03-29T04:33:06Z")

</div>

Running FC6 with RoR 1.1.6 I’m using a custom type called ‘uuid’ based on code from this project. http://gborg.postgresql.org/project/pguuid/projdisplay.php Here’s a description of the ksessions table. Table “public.…

---

## [Trouble with Rails and Lib-Based modules](https://www.ruby-forum.com/t/trouble-with-rails-and-lib-based-modules/90480)

<div class="topic-metadata">

**Author:** [@ben-v](https://www.ruby-forum.com/u/ben-v)\
**Replies:** 0\
**Last updated:** [March 29, 2007, 3:58am UTC](https://www.ruby-forum.com/t/trouble-with-rails-and-lib-based-modules/90480 "2007-03-29T03:58:34Z")

</div>

I am trying to create modules and classes based in the Rails lib directory for my application to call. However, when ever I try and output the result of a method in the class, all that is returned is a pound sign. Doe…

---

## [Table to csv](https://www.ruby-forum.com/t/table-to-csv/90449)

<div class="topic-metadata">

**Author:** [@Bryce](https://www.ruby-forum.com/u/Bryce)\
**Replies:** 1\
**Last updated:** [March 29, 2007, 3:21am UTC](https://www.ruby-forum.com/t/table-to-csv/90449 "2007-03-29T03:21:59Z")

</div>

I need help converting some data in a MySQL table to a text.csv file that can be downloaded by my users. From the book “Rails Recipies” (By Chad F.) He gives the following code: CSV::Writer.generate(output = “”) do |c…

---

## [Extra field being added to db with multiple select?](https://www.ruby-forum.com/t/extra-field-being-added-to-db-with-multiple-select/90473)

<div class="topic-metadata">

**Author:** [@garrido](https://www.ruby-forum.com/u/garrido)\
**Replies:** 0\
**Last updated:** [March 29, 2007, 2:22am UTC](https://www.ruby-forum.com/t/extra-field-being-added-to-db-with-multiple-select/90473 "2007-03-29T02:22:54Z")

</div>

Hi all, First of all, please bear in mind my absolute noobness to Rails and in fact to programming in general. I have a question regarding a multiple select box. I’ve managed to get it working with the following co…

---

## [STI wrongly triggered](https://www.ruby-forum.com/t/sti-wrongly-triggered/90460)

<div class="topic-metadata">

**Author:** [@underbluewaters](https://www.ruby-forum.com/u/underbluewaters)\
**Replies:** 2\
**Last updated:** [March 29, 2007, 1:33am UTC](https://www.ruby-forum.com/t/sti-wrongly-triggered/90460 "2007-03-29T01:33:33Z")

</div>

Hello all, I’m about to bust an o-ring over here! Please help! For some reason single-table inheritance is getting triggered when I don’t want it to. Here’s the code: class Site \< ActiveRecord::Base def temporal\_cove…

---

## [Why does text\_field not html\_escape properly?](https://www.ruby-forum.com/t/why-does-text-field-not-html-escape-properly/90469)

<div class="topic-metadata">

**Author:** [@xavier](https://www.ruby-forum.com/u/xavier)\
**Replies:** 0\
**Last updated:** [March 29, 2007, 1:07am UTC](https://www.ruby-forum.com/t/why-does-text-field-not-html-escape-properly/90469 "2007-03-29T01:07:49Z")

</div>

Can someone fill me in on the rationale for using escape\_once over html\_escape for the text\_field helper? To me, if I have “& \>” stored in my DB, it makes sense that that is the value that should be displayed in a tex…

---

## [Using ruby to submit an http form - either im confused](https://www.ruby-forum.com/t/using-ruby-to-submit-an-http-form-either-im-confused/90467)

<div class="topic-metadata">

**Author:** [@dissolved](https://www.ruby-forum.com/u/dissolved)\
**Replies:** 0\
**Last updated:** [March 29, 2007, 1:06am UTC](https://www.ruby-forum.com/t/using-ruby-to-submit-an-http-form-either-im-confused/90467 "2007-03-29T01:06:59Z")

</div>

Hi All: I have a rails application (we’ll call it ‘FrontApp’)that is using REST routes. I have tested this with curl and its behaves as expected. I also have a second independent rails application on the same server. …

---

## [Getting rid of "Application error (Rails) " Apache + Mongrel](https://www.ruby-forum.com/t/getting-rid-of-application-error-rails-apache-mongrel/90458)

<div class="topic-metadata">

**Author:** [@weyus](https://www.ruby-forum.com/u/weyus)\
**Replies:** 0\
**Last updated:** [March 29, 2007, 12:22am UTC](https://www.ruby-forum.com/t/getting-rid-of-application-error-rails-apache-mongrel/90458 "2007-03-29T00:22:27Z")

</div>

All, When unexpected errors occur, we see a page with just “Application error (Rails)” in our production environment (Apache + 3 mongrels). How do you change the display to show something decent. It doesn’t appear t…

---

## [\[OT\] Starting Mongrel on Mac: Launchd or Crontab?](https://www.ruby-forum.com/t/ot-starting-mongrel-on-mac-launchd-or-crontab/90451)

<div class="topic-metadata">

**Author:** [@cwd](https://www.ruby-forum.com/u/cwd)\
**Replies:** 2\
**Last updated:** [March 28, 2007, 11:58pm UTC](https://www.ruby-forum.com/t/ot-starting-mongrel-on-mac-launchd-or-crontab/90451 "2007-03-28T23:58:43Z")

</div>

I have some Rails apps I use on my Mac to do brutally stupid stuff like track time and activities. They’re always running, but each time I restart, I (duh) have to restart the Mongrels. Well, I know better than that,…

---

## [Where lies the deprication here?](https://www.ruby-forum.com/t/where-lies-the-deprication-here/90421)

<div class="topic-metadata">

**Author:** [@wickie](https://www.ruby-forum.com/u/wickie)\
**Replies:** 1\
**Last updated:** [March 28, 2007, 11:50pm UTC](https://www.ruby-forum.com/t/where-lies-the-deprication-here/90421 "2007-03-28T23:50:43Z")

</div>

Hi, I keep getting this in my development.log and I have no idea how important it is or where it is coming from. It’s peeked my curiosity, so if anyone knows… Parameters: {“action”=\>“index”, “controller”=\>“blog”} DE…

---

## [Hello world help](https://www.ruby-forum.com/t/hello-world-help/90450)

<div class="topic-metadata">

**Author:** [@markh](https://www.ruby-forum.com/u/markh)\
**Replies:** 1\
**Last updated:** [March 28, 2007, 11:45pm UTC](https://www.ruby-forum.com/t/hello-world-help/90450 "2007-03-28T23:45:53Z")

</div>

Hello all I’m doing the hello word example out of this book called Agile Web Development with Rails but I can’t get a result from the browser. I’ve only had this working on windows upto now and I really would like to…

---

## [Acts\_as\_list nested scope](https://www.ruby-forum.com/t/acts-as-list-nested-scope/90446)

<div class="topic-metadata">

**Author:** [@jruyle](https://www.ruby-forum.com/u/jruyle)\
**Replies:** 1\
**Last updated:** [March 28, 2007, 11:10pm UTC](https://www.ruby-forum.com/t/acts-as-list-nested-scope/90446 "2007-03-28T23:10:39Z")

</div>

Here’s what I’m trying to do: class Model \< AR::Base acts\_as\_list :scope =\> \[:key\_one\_id, :key\_two\_id, :key\_three\_id\] end with the idea being that there are these three references from this table (one of them being…

---

## [Long Running Tasks - What Pattern?](https://www.ruby-forum.com/t/long-running-tasks-what-pattern/90420)

<div class="topic-metadata">

**Author:** [@joergd](https://www.ruby-forum.com/u/joergd)\
**Replies:** 6\
**Last updated:** [March 28, 2007, 10:58pm UTC](https://www.ruby-forum.com/t/long-running-tasks-what-pattern/90420 "2007-03-28T22:58:36Z")

</div>

Hi, I have some tasks that a user initiates from a page. This task might run longer than the browser timeout. What is the best way to deal with this? Thanks Joerg

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

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