# Rails

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

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

---

## [Observe\_field + enable/disable field](https://www.ruby-forum.com/t/observe-field-enable-disable-field/115380)

<div class="topic-metadata">

**Author:** [@Karine\_D](https://www.ruby-forum.com/u/Karine_D)\
**Replies:** 0\
**Last updated:** [September 24, 2007, 6:08pm UTC](https://www.ruby-forum.com/t/observe-field-enable-disable-field/115380 "2007-09-24T18:08:49Z")

</div>

Hello, I have a form with two observe\_field, one on a select tag, the other on a checkbox. The form also has a text field. By default, the checkbox is not checked, the text field is disabled, and changing the select …

---

## [Finds and Single Table Inheritance](https://www.ruby-forum.com/t/finds-and-single-table-inheritance/115379)

<div class="topic-metadata">

**Author:** [@almes](https://www.ruby-forum.com/u/almes)\
**Replies:** 0\
**Last updated:** [September 24, 2007, 5:38pm UTC](https://www.ruby-forum.com/t/finds-and-single-table-inheritance/115379 "2007-09-24T17:38:47Z")

</div>

Can someone please help me understand the results that are being produced when doing queries on a table that is using single inheritance. Table1 \< ActiveRecord::Base Role1 \< Table1 Role2 \< Table1 Role3 \< Table1 R…

---

## [File upload gives filename as String, no IO object](https://www.ruby-forum.com/t/file-upload-gives-filename-as-string-no-io-object/115376)

<div class="topic-metadata">

**Author:** [@Siemen\_B](https://www.ruby-forum.com/u/Siemen_B)\
**Replies:** 4\
**Last updated:** [September 24, 2007, 5:20pm UTC](https://www.ruby-forum.com/t/file-upload-gives-filename-as-string-no-io-object/115376 "2007-09-24T17:20:43Z")

</div>

Hi list, I’m having a headache with file upload in rails… In short, the problem boils down to the upload form giving me a String containing the file name of the uploaded file instead of the IO object it should give m…

---

## [Validates\_amount .. is there any?](https://www.ruby-forum.com/t/validates-amount-is-there-any/115359)

<div class="topic-metadata">

**Author:** [@zephyr](https://www.ruby-forum.com/u/zephyr)\
**Replies:** 6\
**Last updated:** [September 24, 2007, 4:46pm UTC](https://www.ruby-forum.com/t/validates-amount-is-there-any/115359 "2007-09-24T16:46:39Z")

</div>

Is there any plugin which validates amount?? say the amount entered should be greater than 0. Thanks =\]

---

## [Last minute switch to production mode - recommended?](https://www.ruby-forum.com/t/last-minute-switch-to-production-mode-recommended/115369)

<div class="topic-metadata">

**Author:** [@cmaxvv](https://www.ruby-forum.com/u/cmaxvv)\
**Replies:** 2\
**Last updated:** [September 24, 2007, 4:37pm UTC](https://www.ruby-forum.com/t/last-minute-switch-to-production-mode-recommended/115369 "2007-09-24T16:37:42Z")

</div>

Question - My rails project is due in in a few hours. It’s running on the net in development mode, on a Bluehost shared server. Because its in dev mode, if anything goes wrong you get the nasty rails crash info (use…

---

## [OpenID Server](https://www.ruby-forum.com/t/openid-server/115371)

<div class="topic-metadata">

**Author:** [@namxam](https://www.ruby-forum.com/u/namxam)\
**Replies:** 0\
**Last updated:** [September 24, 2007, 3:59pm UTC](https://www.ruby-forum.com/t/openid-server/115371 "2007-09-24T15:59:40Z")

</div>

Are there any alternatives to the PIP OpenID Server out there? I know that there are a quite some public OpenID Servers, but we would like to use this technique in an enterprise intranet, so accessing public servers i…

---

## [Customising External Tools in Aptana RadRails](https://www.ruby-forum.com/t/customising-external-tools-in-aptana-radrails/115372)

<div class="topic-metadata">

**Author:** [@CCH](https://www.ruby-forum.com/u/CCH)\
**Replies:** 0\
**Last updated:** [September 24, 2007, 3:53pm UTC](https://www.ruby-forum.com/t/customising-external-tools-in-aptana-radrails/115372 "2007-09-24T15:53:24Z")

</div>

Hi This is a must-visit site if you want to add external tools to Aptana RadRails http://smoothrails.com/2007/01/10/radrails-tip-launching-an-external-rails-console-for-the-current-project/

---

## [Publishing an ical calendar?](https://www.ruby-forum.com/t/publishing-an-ical-calendar/115365)

<div class="topic-metadata">

**Author:** [@benjohnson](https://www.ruby-forum.com/u/benjohnson)\
**Replies:** 2\
**Last updated:** [September 24, 2007, 3:12pm UTC](https://www.ruby-forum.com/t/publishing-an-ical-calendar/115365 "2007-09-24T15:12:14Z")

</div>

I have a table of events and want to create an action in one of my controllers to allow people to subscribe to an ical so these events will show up in their calendar. Any ideas on how I would do this? I couldnt find a…

---

## ["CRUD table" from a model inside another (related) model's n](https://www.ruby-forum.com/t/crud-table-from-a-model-inside-another-related-models-n/115341)

<div class="topic-metadata">

**Author:** [@mhfs](https://www.ruby-forum.com/u/mhfs)\
**Replies:** 2\
**Last updated:** [September 24, 2007, 2:09pm UTC](https://www.ruby-forum.com/t/crud-table-from-a-model-inside-another-related-models-n/115341 "2007-09-24T14:09:00Z")

</div>

Hello list, Let’s say I have a User model and then a UserPermissions model. User has\_many Permissions. This is probably not a good design but it is just for the sake of example really. I would like the UsersControl…

---

## [How to create a record in another table?](https://www.ruby-forum.com/t/how-to-create-a-record-in-another-table/115358)

<div class="topic-metadata">

**Author:** [@CCH](https://www.ruby-forum.com/u/CCH)\
**Replies:** 1\
**Last updated:** [September 24, 2007, 2:01pm UTC](https://www.ruby-forum.com/t/how-to-create-a-record-in-another-table/115358 "2007-09-24T14:01:59Z")

</div>

Hi In my Delphi GUI apps, it is common functionality a) to select a row b)then ‘append to’ ie create a row to another table with similar table structure I guess the analogy would be to copy a record to another tabl…

---

## [ActiveResource, find(1) works but no find(:all)](https://www.ruby-forum.com/t/activeresource-find-1-works-but-no-find-all/115253)

<div class="topic-metadata">

**Author:** [@hecpeare](https://www.ruby-forum.com/u/hecpeare)\
**Replies:** 4\
**Last updated:** [September 24, 2007, 12:17pm UTC](https://www.ruby-forum.com/t/activeresource-find-1-works-but-no-find-all/115253 "2007-09-24T12:17:59Z")

</div>

Hi, I’m on edge and Fuser.find(1) works but Fuser.find(:all) shows the error \[1\]. Fuser is declared here \[2\]. Do you know what’s happening? Thanks. \[1\] ActiveResource::ServerError: Failed with 500 Internal Server Err…

---

## [Wierd problem has stopped my whole site working](https://www.ruby-forum.com/t/wierd-problem-has-stopped-my-whole-site-working/73968)

<div class="topic-metadata">

**Author:** [@nicksnels](https://www.ruby-forum.com/u/nicksnels)\
**Replies:** 3\
**Last updated:** [September 24, 2007, 11:41am UTC](https://www.ruby-forum.com/t/wierd-problem-has-stopped-my-whole-site-working/73968 "2007-09-24T11:41:16Z")

</div>

This happened before whilst I was developing a site and never resolved itself. Something happens and all my pages return errors like this: SyntaxError in Siteview#index Showing app/views/siteview/index.rhtml where li…

---

## [Tests fail when overwriting models](https://www.ruby-forum.com/t/tests-fail-when-overwriting-models/114947)

<div class="topic-metadata">

**Author:** [@Alex\_Kroman](https://www.ruby-forum.com/u/Alex_Kroman)\
**Replies:** 1\
**Last updated:** [September 24, 2007, 11:32am UTC](https://www.ruby-forum.com/t/tests-fail-when-overwriting-models/114947 "2007-09-24T11:32:43Z")

</div>

Hi all, I just converted one of our internal applications to use engines and am really impressed so far. I’m hoping you can help me clear up a bit of a problem I am having. I set up a new application using the engin…

---

## [Starting a rails app in Mongrel](https://www.ruby-forum.com/t/starting-a-rails-app-in-mongrel/114419)

<div class="topic-metadata">

**Author:** [@gorter9](https://www.ruby-forum.com/u/gorter9)\
**Replies:** 3\
**Last updated:** [September 24, 2007, 11:21am UTC](https://www.ruby-forum.com/t/starting-a-rails-app-in-mongrel/114419 "2007-09-24T11:21:50Z")

</div>

After installing mongrel http://mongrel.rubyforge.org/ I try to start mongrel into my railsapp mongrel\_rails start bash: mongrel\_rails: command not found why doesnÂ´t mongrel start when i start it at the way describ…

---

## [Persisting Controller Class Attributes](https://www.ruby-forum.com/t/persisting-controller-class-attributes/115354)

<div class="topic-metadata">

**Author:** [@johnlester](https://www.ruby-forum.com/u/johnlester)\
**Replies:** 0\
**Last updated:** [September 24, 2007, 10:55am UTC](https://www.ruby-forum.com/t/persisting-controller-class-attributes/115354 "2007-09-24T10:55:09Z")

</div>

Hi, this is probably a silly question but I’ll ask it anyway becasuse Ruby/Rails tends to have an answer for everything! I have a controller that has a number of configuration parameters in class variables that contro…

---

## [Oracle Date + RoR](https://www.ruby-forum.com/t/oracle-date-ror/115351)

<div class="topic-metadata">

**Author:** [@Bala](https://www.ruby-forum.com/u/Bala)\
**Replies:** 3\
**Last updated:** [September 24, 2007, 10:25am UTC](https://www.ruby-forum.com/t/oracle-date-ror/115351 "2007-09-24T10:25:08Z")

</div>

Hi Experts, I’ve a model called Product where i’ve column called created\_at, updated\_at where i’ve made a query based on Oracle date format like date\_of\_created = ‘23-SEP-07’ @product = Product.find(:all, :conditio…

---

## [Using an arrray as a parameter value in ActiveRecord](https://www.ruby-forum.com/t/using-an-arrray-as-a-parameter-value-in-activerecord/115343)

<div class="topic-metadata">

**Author:** [@dracos](https://www.ruby-forum.com/u/dracos)\
**Replies:** 6\
**Last updated:** [September 24, 2007, 10:16am UTC](https://www.ruby-forum.com/t/using-an-arrray-as-a-parameter-value-in-activerecord/115343 "2007-09-24T10:16:26Z")

</div>

Is it possible to use an array as a parameter value? I tried this and got a mysql error, “Operand should contain 1 column(s)”. class User \< ActiveRecord::Base has\_many :locations def events location\_ids = \[\] for lo…

---

## [Scaling Ruby on Rails (and related Slashdot article today)](https://www.ruby-forum.com/t/scaling-ruby-on-rails-and-related-slashdot-article-today/115322)

<div class="topic-metadata">

**Author:** [@forrie](https://www.ruby-forum.com/u/forrie)\
**Replies:** 8\
**Last updated:** [September 24, 2007, 10:01am UTC](https://www.ruby-forum.com/t/scaling-ruby-on-rails-and-related-slashdot-article-today/115322 "2007-09-24T10:01:16Z")

</div>

I presume most people here read today’s article on Slashdot which had some critique about Ruby and scaling to a large architecture. Though the article didn’t seem to elaborate into specifics, I’m interested in other …

---

## [Overwrite ActiveRecord gem function in my rails app](https://www.ruby-forum.com/t/overwrite-activerecord-gem-function-in-my-rails-app/115304)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 6\
**Last updated:** [September 24, 2007, 9:39am UTC](https://www.ruby-forum.com/t/overwrite-activerecord-gem-function-in-my-rails-app/115304 "2007-09-24T09:39:01Z")

</div>

Hi, I would like to overwrite the function “quote” in ActiveRecord::ConnectionAdapters::Quoting for my whole rails application. Unfortunelty, so far I was nt successfull. Maybe somebody can point me in the right dir…

---

## [ANN: faster fixtures (or how to spend less time loading fixt](https://www.ruby-forum.com/t/ann-faster-fixtures-or-how-to-spend-less-time-loading-fixt/114959)

<div class="topic-metadata">

**Author:** [@fcheung](https://www.ruby-forum.com/u/fcheung)\
**Replies:** 6\
**Last updated:** [September 24, 2007, 6:01am UTC](https://www.ruby-forum.com/t/ann-faster-fixtures-or-how-to-spend-less-time-loading-fixt/114959 "2007-09-24T06:01:41Z")

</div>

Short version: Before: Finished in 192.609637 seconds. 183 tests, 5100 assertions, 0 failures, 0 errors After: Finished in 104.491294 seconds. 183 tests, 5100 assertions, 0 failures, 0 errors Ok, so this app does …

---

## [Urgent requirements](https://www.ruby-forum.com/t/urgent-requirements/115340)

<div class="topic-metadata">

**Author:** [@sushma\_sinha](https://www.ruby-forum.com/u/sushma_sinha)\
**Replies:** 0\
**Last updated:** [September 24, 2007, 5:52am UTC](https://www.ruby-forum.com/t/urgent-requirements/115340 "2007-09-24T05:52:40Z")

</div>

Urgent requirements Pls sends your CV in www.allindiajobbank.com http://allindiajobbank.com/website. It is fast and gives U positive response. Pls pass this message to Ur friend also because vacancies are waiting. C…

---

## [Paginating 1 record](https://www.ruby-forum.com/t/paginating-1-record/115338)

<div class="topic-metadata">

**Author:** [@eagoweb](https://www.ruby-forum.com/u/eagoweb)\
**Replies:** 0\
**Last updated:** [September 24, 2007, 5:30am UTC](https://www.ruby-forum.com/t/paginating-1-record/115338 "2007-09-24T05:30:56Z")

</div>

Hello i have 1 text record and it is very long, is there anyway to pagiante this content? Regards,

---

## [Templating in rails](https://www.ruby-forum.com/t/templating-in-rails/115337)

<div class="topic-metadata">

**Author:** [@eagoweb](https://www.ruby-forum.com/u/eagoweb)\
**Replies:** 0\
**Last updated:** [September 24, 2007, 5:27am UTC](https://www.ruby-forum.com/t/templating-in-rails/115337 "2007-09-24T05:27:49Z")

</div>

Hello is there anyway there i can make a template of my app??, for example if i want my client to edit his rhtml files: user.rhtml, he will see something like {@user.name} {@user.age} {@user.identity} {@user.other} {@…

---

## [Javascript object to Ruby](https://www.ruby-forum.com/t/javascript-object-to-ruby/115321)

<div class="topic-metadata">

**Author:** [@Rene\_R](https://www.ruby-forum.com/u/Rene_R)\
**Replies:** 1\
**Last updated:** [September 24, 2007, 5:02am UTC](https://www.ruby-forum.com/t/javascript-object-to-ruby/115321 "2007-09-24T05:02:53Z")

</div>

Hi, How do I transfer a big amount of data stored in a javascript client side object to my Rails application? I want to store this object in my DB and after get it back some time after. Thanks Rene

---

## [Two RJS/AJAX problems](https://www.ruby-forum.com/t/two-rjs-ajax-problems/115332)

<div class="topic-metadata">

**Author:** [@nemesis256](https://www.ruby-forum.com/u/nemesis256)\
**Replies:** 0\
**Last updated:** [September 24, 2007, 4:38am UTC](https://www.ruby-forum.com/t/two-rjs-ajax-problems/115332 "2007-09-24T04:38:34Z")

</div>

So I’m making this photo gallery, which is almost done except for these two problems. I have 6 thumbnails on the left side of the page, paginated, with some AJAX. On right of those is the full sized image. Now for …

---

## [How do you design your RoR web applications?](https://www.ruby-forum.com/t/how-do-you-design-your-ror-web-applications/114882)

<div class="topic-metadata">

**Author:** [@jsn1](https://www.ruby-forum.com/u/jsn1)\
**Replies:** 6\
**Last updated:** [September 24, 2007, 4:05am UTC](https://www.ruby-forum.com/t/how-do-you-design-your-ror-web-applications/114882 "2007-09-24T04:05:27Z")

</div>

Here is my question: how do you design your RoR web application? Do you use an OOAD approach? data model/ class diagram, use cases? Do you desing your web pages first? Do you start coding without desinging first? Do yo…

---

## [ActiveRecord: selecting date range of records](https://www.ruby-forum.com/t/activerecord-selecting-date-range-of-records/115329)

<div class="topic-metadata">

**Author:** [@jasonb](https://www.ruby-forum.com/u/jasonb)\
**Replies:** 4\
**Last updated:** [September 24, 2007, 3:32am UTC](https://www.ruby-forum.com/t/activerecord-selecting-date-range-of-records/115329 "2007-09-24T03:32:29Z")

</div>

I have a simple timeclock application with an Admin page. I’m trying to find an easy way to select a range of record from the database. For instance “This week”, “Last week”, or “Last month” without having to manually…

---

## [Is command line tool "curl" actually provided by Ruby on Rai](https://www.ruby-forum.com/t/is-command-line-tool-curl-actually-provided-by-ruby-on-rai/115323)

<div class="topic-metadata">

**Author:** [@rupertrealbear](https://www.ruby-forum.com/u/rupertrealbear)\
**Replies:** 3\
**Last updated:** [September 24, 2007, 12:44am UTC](https://www.ruby-forum.com/t/is-command-line-tool-curl-actually-provided-by-ruby-on-rai/115323 "2007-09-24T00:44:54Z")

</div>

I tried using the command line tool “curl” in a Ruby console window and got the message:- ‘curl’ is not recognized as an internal or external command, operable program or batch file The same thing happened in an ordi…

---

## [Fwd: Problem - Editing rhtml in NetBeans is very slow - only](https://www.ruby-forum.com/t/fwd-problem-editing-rhtml-in-netbeans-is-very-slow-only/114800)

<div class="topic-metadata">

**Author:** [@Eugene\_Bolshakov](https://www.ruby-forum.com/u/Eugene_Bolshakov)\
**Replies:** 1\
**Last updated:** [September 24, 2007, 12:40am UTC](https://www.ruby-forum.com/t/fwd-problem-editing-rhtml-in-netbeans-is-very-slow-only/114800 "2007-09-24T00:40:01Z")

</div>

Hi Did anyone except me ever experienced very slow response when editing rhtml in NetBeans? It starts ok, but after a couple of minutes of editing it takes several seconds to move the cursor from one line to another.…

---

## [Rails routing problems](https://www.ruby-forum.com/t/rails-routing-problems/115325)

<div class="topic-metadata">

**Author:** [@raccoonone](https://www.ruby-forum.com/u/raccoonone)\
**Replies:** 0\
**Last updated:** [September 23, 2007, 11:35pm UTC](https://www.ruby-forum.com/t/rails-routing-problems/115325 "2007-09-23T23:35:45Z")

</div>

My web host recently upgraded to 1.2.3 from 1.1.2 and it broke two of my rails applications. The problem is that the default routes don’t seem to be working, for example here’s one of the applications: http://catherin…

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

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