# Rails

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

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

---

## [Bug at datetime\_select when used with object\[\] to submit multiple model](https://www.ruby-forum.com/t/bug-at-datetime-select-when-used-with-object-to-submit-multiple-model/141418)

<div class="topic-metadata">

**Author:** [@goodwill](https://www.ruby-forum.com/u/goodwill)\
**Replies:** 1\
**Last updated:** [June 25, 2008, 5:11pm UTC](https://www.ruby-forum.com/t/bug-at-datetime-select-when-used-with-object-to-submit-multiple-model/141418 "2008-06-25T17:11:17Z")

</div>

It seems like something is wrong with the datetime\_select helper. the helper does not generate name as object\[\]\[field(1i)\], instead it generates object\[field(1i)\], which results a 500 error as follows: Conflicting typ…

---

## [Get filepath for FTP upload](https://www.ruby-forum.com/t/get-filepath-for-ftp-upload/141408)

<div class="topic-metadata">

**Author:** [@toro04](https://www.ruby-forum.com/u/toro04)\
**Replies:** 5\
**Last updated:** [June 25, 2008, 4:56pm UTC](https://www.ruby-forum.com/t/get-filepath-for-ftp-upload/141408 "2008-06-25T16:56:35Z")

</div>

Hi Guys, Can anyone advise on how to get get a file’s filepath via a form? I am working on using a form to allow a user to select a file, then the app uses FTP to transfer the file to the server. As part of ftp you m…

---

## ["Complex" Eager Loads](https://www.ruby-forum.com/t/complex-eager-loads/141413)

<div class="topic-metadata">

**Author:** [@sjames](https://www.ruby-forum.com/u/sjames)\
**Replies:** 1\
**Last updated:** [June 25, 2008, 4:42pm UTC](https://www.ruby-forum.com/t/complex-eager-loads/141413 "2008-06-25T16:42:27Z")

</div>

Hey gang. Is it possible to extend the eager load SQL at all? What I’m hoping to do is eagerly load an associate that, in turn, joins in some data from another table. Many thanks, James

---

## [ActiveRecord::Validations::ClassMethods.evaluate\_condition missing in Rails 2.1.0?](https://www.ruby-forum.com/t/activerecord-classmethods-evaluate-condition-missing-in-rails-2-1-0/141398)

<div class="topic-metadata">

**Author:** [@StYerk](https://www.ruby-forum.com/u/StYerk)\
**Replies:** 3\
**Last updated:** [June 25, 2008, 3:58pm UTC](https://www.ruby-forum.com/t/activerecord-classmethods-evaluate-condition-missing-in-rails-2-1-0/141398 "2008-06-25T15:58:26Z")

</div>

Hi, I have trustfully updated my Rails-Application from 2.0.2 to 2.1.0 and stumbled over the fact, that a public interface method simply has disappeared! I use a custom validation I wrote myself which gets mixed into …

---

## [Shutdown all ActiveRecord conenctions?](https://www.ruby-forum.com/t/shutdown-all-activerecord-conenctions/141403)

<div class="topic-metadata">

**Author:** [@sealedsun](https://www.ruby-forum.com/u/sealedsun)\
**Replies:** 0\
**Last updated:** [June 25, 2008, 3:14pm UTC](https://www.ruby-forum.com/t/shutdown-all-activerecord-conenctions/141403 "2008-06-25T15:14:13Z")

</div>

Is there a api function to force closing of all open connections to the database via ActiveRecord? thx ck

---

## [Observer\_field](https://www.ruby-forum.com/t/observer-field/141277)

<div class="topic-metadata">

**Author:** [@sijo](https://www.ruby-forum.com/u/sijo)\
**Replies:** 11\
**Last updated:** [June 25, 2008, 2:52pm UTC](https://www.ruby-forum.com/t/observer-field/141277 "2008-06-25T14:52:25Z")

</div>

Hi I have the field Category, SubCategory, and ProductType in select boxes When a category is selected corresponding subcategory is selected and its corresponding product type is to be selected…But i have when a cat…

---

## [Form\_for to dynamically add multiple child objects](https://www.ruby-forum.com/t/form-for-to-dynamically-add-multiple-child-objects/141390)

<div class="topic-metadata">

**Author:** [@goodwill](https://www.ruby-forum.com/u/goodwill)\
**Replies:** 1\
**Last updated:** [June 25, 2008, 2:47pm UTC](https://www.ruby-forum.com/t/form-for-to-dynamically-add-multiple-child-objects/141390 "2008-06-25T14:47:12Z")

</div>

I have a data structure as follows: Task has\_many Reminders Now I would like to have users able to specify one or more reminder in the task form at the time when user creates the task. How could I do that? The same i…

---

## [Stack level too deep when posting to Beast forums](https://www.ruby-forum.com/t/stack-level-too-deep-when-posting-to-beast-forums/141360)

<div class="topic-metadata">

**Author:** [@GearSSS\_id\_OSCealla](https://www.ruby-forum.com/u/GearSSS_id_OSCealla)\
**Replies:** 4\
**Last updated:** [June 25, 2008, 2:26pm UTC](https://www.ruby-forum.com/t/stack-level-too-deep-when-posting-to-beast-forums/141360 "2008-06-25T14:26:41Z")

</div>

Hey, so I’ve finally got my Beast forum installed and everything seems to be working fine and dandy. The one issue I have is that I can’t seem to make a post. When I submit my post, I get a “stack level too deep” err…

---

## [How to parse a "dd/mm/yyyy" formatted date string?](https://www.ruby-forum.com/t/how-to-parse-a-dd-mm-yyyy-formatted-date-string/139849)

<div class="topic-metadata">

**Author:** [@greg](https://www.ruby-forum.com/u/greg)\
**Replies:** 20\
**Last updated:** [June 25, 2008, 1:31pm UTC](https://www.ruby-forum.com/t/how-to-parse-a-dd-mm-yyyy-formatted-date-string/139849 "2008-06-25T13:31:35Z")

</div>

Hi, I’m stuck. How do you parse a “dd/mm/yyyy” formatted date string??? I get a date format error. Thanks in advance Greg

---

## [Problem using attachment\_fu](https://www.ruby-forum.com/t/problem-using-attachment-fu/141298)

<div class="topic-metadata">

**Author:** [@ratnavel](https://www.ruby-forum.com/u/ratnavel)\
**Replies:** 4\
**Last updated:** [June 25, 2008, 12:08pm UTC](https://www.ruby-forum.com/t/problem-using-attachment-fu/141298 "2008-06-25T12:08:53Z")

</div>

Hi, I use attachment\_fu plugin to upload a remote file to file system. It works fine with IE, If we use fire fox its coming out to login page throwing a exception “Filter chain halted as \[#\<ActionController::Filter…

---

## [Versions of rails](https://www.ruby-forum.com/t/versions-of-rails/141385)

<div class="topic-metadata">

**Author:** [@torso](https://www.ruby-forum.com/u/torso)\
**Replies:** 4\
**Last updated:** [June 25, 2008, 12:07pm UTC](https://www.ruby-forum.com/t/versions-of-rails/141385 "2008-06-25T12:07:37Z")

</div>

Hi I am using fedora 8 with Rails version 2.0.2. But i need to change to version 0.12.1. I have loaded 0.12.1 with gem install rails --version 0.12.1 It went fine and now i have 2.0.2 and 0.12.1 verisons, but when i …

---

## [New Version of IBM\_DB Rails Adapter/Driver for IBM DataServers now available](https://www.ruby-forum.com/t/new-version-of-ibm-db-rails-adapter-driver-for-ibm-dataservers-now-available/141395)

<div class="topic-metadata">

**Author:** [@praveen](https://www.ruby-forum.com/u/praveen)\
**Replies:** 0\
**Last updated:** [June 25, 2008, 12:06pm UTC](https://www.ruby-forum.com/t/new-version-of-ibm-db-rails-adapter-driver-for-ibm-dataservers-now-available/141395 "2008-06-25T12:06:26Z")

</div>

Hi All, New version of IBM\_DB, the Rails Adapter/Driver for IBM DataServers, is now available. This release includes various updates and provides support for Rails-2.1.0. The gem is available for download at http://…

---

## [Running migrations through rake task](https://www.ruby-forum.com/t/running-migrations-through-rake-task/141392)

<div class="topic-metadata">

**Author:** [@MohsinHijazee](https://www.ruby-forum.com/u/MohsinHijazee)\
**Replies:** 0\
**Last updated:** [June 25, 2008, 11:41am UTC](https://www.ruby-forum.com/t/running-migrations-through-rake-task/141392 "2008-06-25T11:41:11Z")

</div>

I want to run all the migrations on all my databases. For this, I have a task called run\_migrations. Consider this code: desc ‘Runs migrations on all databases’ task :run\_migrations =\> :environment do \[ ‘development…

---

## [Loaded suite](https://www.ruby-forum.com/t/loaded-suite/141386)

<div class="topic-metadata">

**Author:** [@Gareth\_A](https://www.ruby-forum.com/u/Gareth_A)\
**Replies:** 1\
**Last updated:** [June 25, 2008, 11:17am UTC](https://www.ruby-forum.com/t/loaded-suite/141386 "2008-06-25T11:17:09Z")

</div>

Where does the “Loaded suite” text come from that appears after running a script containing ‘require “config/environment”’? I want to run a script where the output has to be in a certain format, and the extra “Loaded …

---

## [Rendering the response to the javascript](https://www.ruby-forum.com/t/rendering-the-response-to-the-javascript/141176)

<div class="topic-metadata">

**Author:** [@ayyanar](https://www.ruby-forum.com/u/ayyanar)\
**Replies:** 3\
**Last updated:** [June 25, 2008, 10:21am UTC](https://www.ruby-forum.com/t/rendering-the-response-to-the-javascript/141176 "2008-06-25T10:21:24Z")

</div>

We are working on the application where we need to call the scanner device to scan the image. We use DynamicWebTwain. Using the ‘HTTPUploadThroughPost’ method we upload the image to the URL. It’s all fine. We need t…

---

## [Select](https://www.ruby-forum.com/t/select/141384)

<div class="topic-metadata">

**Author:** [@sijo](https://www.ruby-forum.com/u/sijo)\
**Replies:** 1\
**Last updated:** [June 25, 2008, 10:21am UTC](https://www.ruby-forum.com/t/select/141384 "2008-06-25T10:21:23Z")

</div>

Hi I have a select as below.This select is replaced to a div when I call observer\_field update \<%= select( “sd\_ticket”, “service\_desk\_sub\_category\_id”, ServiceDeskSubCategory.find(:all, :conditions =\> \[“service\_desk…

---

## [Desert & Rails Engines](https://www.ruby-forum.com/t/desert-rails-engines/141172)

<div class="topic-metadata">

**Author:** [@bct](https://www.ruby-forum.com/u/bct)\
**Replies:** 2\
**Last updated:** [June 25, 2008, 9:35am UTC](https://www.ruby-forum.com/t/desert-rails-engines/141172 "2008-06-25T09:35:41Z")

</div>

Hello, Recently I made a blog post about the Desert framework. http://pivots.pivotallabs.com/users/brian/blog/articles/459-build-your-own-rails-plugin-platform-with-desert In the comments, I learned that Desert is very…

---

## [Rspec routing\_spec failing on nested singular resource](https://www.ruby-forum.com/t/rspec-routing-spec-failing-on-nested-singular-resource/141382)

<div class="topic-metadata">

**Author:** [@chunkyslink](https://www.ruby-forum.com/u/chunkyslink)\
**Replies:** 0\
**Last updated:** [June 25, 2008, 8:50am UTC](https://www.ruby-forum.com/t/rspec-routing-spec-failing-on-nested-singular-resource/141382 "2008-06-25T08:50:32Z")

</div>

This should be easy to solve; I’m trying to get an Rspec routing\_spec working with a singular nested resource; map.resources :users do |user| user.resource :profile end All the tests in the profile\_routing\_spec seem…

---

## [Using label helper with HABTM checkboxes](https://www.ruby-forum.com/t/using-label-helper-with-habtm-checkboxes/141376)

<div class="topic-metadata">

**Author:** [@shenry](https://www.ruby-forum.com/u/shenry)\
**Replies:** 0\
**Last updated:** [June 25, 2008, 6:53am UTC](https://www.ruby-forum.com/t/using-label-helper-with-habtm-checkboxes/141376 "2008-06-25T06:53:02Z")

</div>

I have a list of category checkboxes whose HTML looks like this: …from… check\_box\_tag(“categories\[\]”, cat\[0\], @post.categories.map {|c| c.id}.include?(cat\[0\])) I’d like the label to select the checkbox it’s associa…

---

## [How to escape from the before\_filter for the particular acti](https://www.ruby-forum.com/t/how-to-escape-from-the-before-filter-for-the-particular-acti/141375)

<div class="topic-metadata">

**Author:** [@ayyanar](https://www.ruby-forum.com/u/ayyanar)\
**Replies:** 2\
**Last updated:** [June 25, 2008, 6:52am UTC](https://www.ruby-forum.com/t/how-to-escape-from-the-before-filter-for-the-particular-acti/141375 "2008-06-25T06:52:01Z")

</div>

Hi, We use the following code in the ApplicationController. before\_filter :login\_required Iam aware, this will be called for every action. How to escape for the particular action? Thanks, Ayyanar. A

---

## [Max character for a text area field](https://www.ruby-forum.com/t/max-character-for-a-text-area-field/141265)

<div class="topic-metadata">

**Author:** [@skirkpatrick](https://www.ruby-forum.com/u/skirkpatrick)\
**Replies:** 4\
**Last updated:** [June 25, 2008, 5:36am UTC](https://www.ruby-forum.com/t/max-character-for-a-text-area-field/141265 "2008-06-25T05:36:26Z")

</div>

i hardly ever write javascript and having a problem validating the max characters in a text area field. here is what i have: \<%= error\_messages\_for :comment %\> Comments \<% form\_for(@comment, :html =\> {:onSubmit =\> ‘…

---

## [Weird 64 bit ruby error](https://www.ruby-forum.com/t/weird-64-bit-ruby-error/141367)

<div class="topic-metadata">

**Author:** [@ADADAD](https://www.ruby-forum.com/u/ADADAD)\
**Replies:** 0\
**Last updated:** [June 25, 2008, 2:45am UTC](https://www.ruby-forum.com/t/weird-64-bit-ruby-error/141367 "2008-06-25T02:45:39Z")

</div>

Hello, I am trying to build ruby 1.8.6 on my RHEL 5 64bit Intel box for a rails application server. When trying to build readline I get the following error , any ideas ? /usr/bin/ld: skipping incompatible /usr/lib/…

---

## [How to throw Warning dialog on Form Submit?](https://www.ruby-forum.com/t/how-to-throw-warning-dialog-on-form-submit/141001)

<div class="topic-metadata">

**Author:** [@haries](https://www.ruby-forum.com/u/haries)\
**Replies:** 2\
**Last updated:** [June 25, 2008, 2:33am UTC](https://www.ruby-forum.com/t/how-to-throw-warning-dialog-on-form-submit/141001 "2008-06-25T02:33:23Z")

</div>

On a form submit, I would like to throw a warning dialog (Are you sure? Yes | No - type) but based on the data entered in the form input fields. I looked at button\_to and link\_to but can’t seem to make them throw the…

---

## [Nil Object where you didn't expect it](https://www.ruby-forum.com/t/nil-object-where-you-didnt-expect-it/140817)

<div class="topic-metadata">

**Author:** [@ron](https://www.ruby-forum.com/u/ron)\
**Replies:** 8\
**Last updated:** [June 25, 2008, 2:24am UTC](https://www.ruby-forum.com/t/nil-object-where-you-didnt-expect-it/140817 "2008-06-25T02:24:02Z")

</div>

So I generate a scaffold with Rails 2.1.0 with a number of database fields. item:string accession\_number:text description:text designer:string classification:string overall\_dimensions:string auxiliary\_parts:string ov…

---

## [Gem Problem](https://www.ruby-forum.com/t/gem-problem/141261)

<div class="topic-metadata">

**Author:** [@indigoi](https://www.ruby-forum.com/u/indigoi)\
**Replies:** 11\
**Last updated:** [June 25, 2008, 1:17am UTC](https://www.ruby-forum.com/t/gem-problem/141261 "2008-06-25T01:17:36Z")

</div>

When i $ Gem list . I clearly see “rmagick (2.5.1)” and “ruby-openid (2.0.4)”. Yet if i try to start my server while simple captcha" plugin is installed i get \`require’: no such file to load – RMagick (MissingSourceFi…

---

## [Running the beast forum for the first time](https://www.ruby-forum.com/t/running-the-beast-forum-for-the-first-time/141358)

<div class="topic-metadata">

**Author:** [@GearSSS\_id\_OSCealla](https://www.ruby-forum.com/u/GearSSS_id_OSCealla)\
**Replies:** 3\
**Last updated:** [June 25, 2008, 12:55am UTC](https://www.ruby-forum.com/t/running-the-beast-forum-for-the-first-time/141358 "2008-06-25T00:55:46Z")

</div>

Hey guys, so I think I’ve done my installation of the beast forum correctly. Its done the database migration and all the tables look fine. Now, when I run ruby script/server and point my browser at http://localhost:…

---

## [Rake db:create error:"Unknown database"](https://www.ruby-forum.com/t/rake-db-create-error-unknown-database/141359)

<div class="topic-metadata">

**Author:** [@ppjunty](https://www.ruby-forum.com/u/ppjunty)\
**Replies:** 0\
**Last updated:** [June 25, 2008, 12:12am UTC](https://www.ruby-forum.com/t/rake-db-create-error-unknown-database/141359 "2008-06-25T00:12:52Z")

</div>

rake db:create stopped working since i updated rails to 2.1.0. the problem is that this new version of rake is loading the files in the ‘config/initializers’ directory, and one of the files has database operations, so…

---

## [PunBB integration](https://www.ruby-forum.com/t/punbb-integration/141296)

<div class="topic-metadata">

**Author:** [@GearSSS\_id\_OSCealla](https://www.ruby-forum.com/u/GearSSS_id_OSCealla)\
**Replies:** 7\
**Last updated:** [June 24, 2008, 11:57pm UTC](https://www.ruby-forum.com/t/punbb-integration/141296 "2008-06-24T23:57:52Z")

</div>

Hi, I’m new to ruby and rails and, after some inital success, I’ve hit a bit of a roadblock. I’m setting up a community-based site which will include a forum. I’m thinking of using PunBB for this but I dont understan…

---

## [Re-usable UI patterns](https://www.ruby-forum.com/t/re-usable-ui-patterns/141355)

<div class="topic-metadata">

**Author:** [@davidstokar](https://www.ruby-forum.com/u/davidstokar)\
**Replies:** 1\
**Last updated:** [June 24, 2008, 11:32pm UTC](https://www.ruby-forum.com/t/re-usable-ui-patterns/141355 "2008-06-24T23:32:07Z")

</div>

I’m a newbie and I was wondering whether there are repositories of views and controllers targeted to specific designs. For example, I’d like to dynamically add forms in a view, e.g., to allow the user to enter an unkn…

---

## [Can't models be cached in development env?](https://www.ruby-forum.com/t/cant-models-be-cached-in-development-env/141263)

<div class="topic-metadata">

**Author:** [@ppjunty](https://www.ruby-forum.com/u/ppjunty)\
**Replies:** 3\
**Last updated:** [June 24, 2008, 11:30pm UTC](https://www.ruby-forum.com/t/cant-models-be-cached-in-development-env/141263 "2008-06-24T23:30:57Z")

</div>

i’m caching constant models in memory, but if i try something like @user.type = Rails.cache.read ‘types/1’ i get: “ActiveRecord::AssociationTypeMismatch - Type(#39040660) expected, got Type(#29355550)” the class is…

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

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