# Rails

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

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

---

## [Include field ignored in Rails 2.1.0](https://www.ruby-forum.com/t/include-field-ignored-in-rails-2-1-0/145648)

<div class="topic-metadata">

**Author:** [@staypufd](https://www.ruby-forum.com/u/staypufd)\
**Replies:** 0\
**Last updated:** [August 12, 2008, 2:38pm UTC](https://www.ruby-forum.com/t/include-field-ignored-in-rails-2-1-0/145648 "2008-08-12T14:38:31Z")

</div>

I just realized that the include field is completely ignored in the 2.1.0 version. I need to use a function that creates an array loops through the columns in the table to find the search strings and apparently it’s …

---

## [How can i pass instant variable in link\_to](https://www.ruby-forum.com/t/how-can-i-pass-instant-variable-in-link-to/145619)

<div class="topic-metadata">

**Author:** [@dharmdip](https://www.ruby-forum.com/u/dharmdip)\
**Replies:** 6\
**Last updated:** [August 12, 2008, 2:29pm UTC](https://www.ruby-forum.com/t/how-can-i-pass-instant-variable-in-link-to/145619 "2008-08-12T14:29:38Z")

</div>

i have this code Listing jobs by Country \<%if @postjob !=nil %\> \<%for postjob in @postjob = Postjob.find(:all, :select =\> 'DISTINCT country')%\> \<%= link\_to "#{postjob.country}" , :controller =\> "", :action =\> "country\_li…

---

## [Javascript Tree on Ruby Model](https://www.ruby-forum.com/t/javascript-tree-on-ruby-model/145635)

<div class="topic-metadata">

**Author:** [@indra](https://www.ruby-forum.com/u/indra)\
**Replies:** 0\
**Last updated:** [August 12, 2008, 12:10pm UTC](https://www.ruby-forum.com/t/javascript-tree-on-ruby-model/145635 "2008-08-12T12:10:00Z")

</div>

Hello everybody, I want to build a javascript tree out of my ruby class structure (without database). Does anybody know a rails plugin or something similar? Thank you.

---

## [Console pasting weirdness](https://www.ruby-forum.com/t/console-pasting-weirdness/145637)

<div class="topic-metadata">

**Author:** [@cmaxvv](https://www.ruby-forum.com/u/cmaxvv)\
**Replies:** 1\
**Last updated:** [August 12, 2008, 11:31am UTC](https://www.ruby-forum.com/t/console-pasting-weirdness/145637 "2008-08-12T11:31:29Z")

</div>

This is an odd one. I’m looking at a block of params sent through to one of my controllers. As far as i can tell it works fine in the controller. However, i wanted to check something so i looked at my log file (wit…

---

## [How is wiki.rubyonrails.org's uptime lately?](https://www.ruby-forum.com/t/how-is-wiki-rubyonrails-orgs-uptime-lately/145451)

<div class="topic-metadata">

**Author:** [@foobarwidget](https://www.ruby-forum.com/u/foobarwidget)\
**Replies:** 1\
**Last updated:** [August 12, 2008, 11:17am UTC](https://www.ruby-forum.com/t/how-is-wiki-rubyonrails-orgs-uptime-lately/145451 "2008-08-12T11:17:48Z")

</div>

Hello folks. I migrated wiki.rubyonrails.org to Phusion Passenger and Ruby Enterprise Edition about 2-3 weeks ago. Before, the wiki’s Mongrels were crashing at a regular rate, for unknown reasons. We figured that Phu…

---

## [Undefined method \`new\_picture\_path' Error](https://www.ruby-forum.com/t/undefined-method-new-picture-path-error/145615)

<div class="topic-metadata">

**Author:** [@bell](https://www.ruby-forum.com/u/bell)\
**Replies:** 2\
**Last updated:** [August 12, 2008, 10:46am UTC](https://www.ruby-forum.com/t/undefined-method-new-picture-path-error/145615 "2008-08-12T10:46:10Z")

</div>

Hi All! I have two models, Book and Picture,and Book can had many pictures ,so I defined the relationship between them by follow code. in Book: has\_many :pictures, :foreign\_key =\> :resource\_id, :conditions =\> “resou…

---

## [Don't get the right error message on submit a form](https://www.ruby-forum.com/t/dont-get-the-right-error-message-on-submit-a-form/144914)

<div class="topic-metadata">

**Author:** [@eddy\_b](https://www.ruby-forum.com/u/eddy_b)\
**Replies:** 1\
**Last updated:** [August 12, 2008, 10:35am UTC](https://www.ruby-forum.com/t/dont-get-the-right-error-message-on-submit-a-form/144914 "2008-08-12T10:35:48Z")

</div>

Hi, I’ve got a small problem with my validation of a model. I have a user and a user\_setting table. The user has all main informations and the user\_setting - table has addional data like his first name etc. All neces…

---

## [Agile Web Development with Rails, Third Edition Beta 4](https://www.ruby-forum.com/t/agile-web-development-with-rails-third-edition-beta-4/145571)

<div class="topic-metadata">

**Author:** [@samrus](https://www.ruby-forum.com/u/samrus)\
**Replies:** 1\
**Last updated:** [August 12, 2008, 10:23am UTC](https://www.ruby-forum.com/t/agile-web-development-with-rails-third-edition-beta-4/145571 "2008-08-12T10:23:56Z")

</div>

Now available: All chapters, with the exception of Web Services which is likely to be replaced by a chapter on ActiveResource, have been updated to work with Rails 2.1. I’m now looking for suggestions on what new fe…

---

## [Paginating\_find Plugin for Pagination](https://www.ruby-forum.com/t/paginating-find-plugin-for-pagination/145627)

<div class="topic-metadata">

**Author:** [@gandhi-tush](https://www.ruby-forum.com/u/gandhi-tush)\
**Replies:** 0\
**Last updated:** [August 12, 2008, 9:12am UTC](https://www.ruby-forum.com/t/paginating-find-plugin-for-pagination/145627 "2008-08-12T09:12:09Z")

</div>

Hi, I want to use “Paginating\_find” plugin for the pagination. I installed that plugin into my plugin folder. Can I use this plugin for find\_by\_sql query ? or this plugin is helpful for only find query? If it is poss…

---

## [ActiveRecord::Base.establish\_connection](https://www.ruby-forum.com/t/activerecord-base-establish-connection/145554)

<div class="topic-metadata">

**Author:** [@sijo](https://www.ruby-forum.com/u/sijo)\
**Replies:** 1\
**Last updated:** [August 12, 2008, 9:03am UTC](https://www.ruby-forum.com/t/activerecord-base-establish-connection/145554 "2008-08-12T09:03:25Z")

</div>

Hi When strting my application I have three text boxes Username, password and company name A user on providing all these goes to user controller login\_process action…That means in my application database.yml have n…

---

## [Ajax and pagination](https://www.ruby-forum.com/t/ajax-and-pagination/145622)

<div class="topic-metadata">

**Author:** [@kirankinuforu](https://www.ruby-forum.com/u/kirankinuforu)\
**Replies:** 0\
**Last updated:** [August 12, 2008, 8:23am UTC](https://www.ruby-forum.com/t/ajax-and-pagination/145622 "2008-08-12T08:23:14Z")

</div>

Hi, all, I am using rjs and pagination and I have given links for pagination as \<%if @photo\_pages.current.previous%\> \<%= link\_to\_remote (“previous”, :url=\>{:action=\>params\[:redirect\_action\], :page =\>@photo\_pages.cu…

---

## [System.io operations](https://www.ruby-forum.com/t/system-io-operations/145609)

<div class="topic-metadata">

**Author:** [@sohdubom](https://www.ruby-forum.com/u/sohdubom)\
**Replies:** 2\
**Last updated:** [August 12, 2008, 7:52am UTC](https://www.ruby-forum.com/t/system-io-operations/145609 "2008-08-12T07:52:14Z")

</div>

hi. @things = Dir.glob(’\*’) the code above returns all elements inside the particular directory. those elements can be either a folder name or a file name. i could loop through @things and output the names like: \<% …

---

## [Cattr\_accessor not found for testing?](https://www.ruby-forum.com/t/cattr-accessor-not-found-for-testing/145616)

<div class="topic-metadata">

**Author:** [@mfb82](https://www.ruby-forum.com/u/mfb82)\
**Replies:** 0\
**Last updated:** [August 12, 2008, 5:42am UTC](https://www.ruby-forum.com/t/cattr-accessor-not-found-for-testing/145616 "2008-08-12T05:42:12Z")

</div>

Hi, I have installed rails 2.0.2 on Linux (Fedora). Everything works fine. but i have this problem when perform: rake test:units i get this error: undefined method \`cattr\_accessor’ for FileMonitor:Class (NoMethodErr…

---

## [Best search plugin for non-expert](https://www.ruby-forum.com/t/best-search-plugin-for-non-expert/145606)

<div class="topic-metadata">

**Author:** [@gwendydd](https://www.ruby-forum.com/u/gwendydd)\
**Replies:** 0\
**Last updated:** [August 12, 2008, 12:36am UTC](https://www.ruby-forum.com/t/best-search-plugin-for-non-expert/145606 "2008-08-12T00:36:58Z")

</div>

Hello! I’m pretty new to RoR, and I’m trying to do a fairly simple project. It involves allowing users to search a database, and I’m having trouble deciding the best way to go about it. This project started a few ye…

---

## [Easy newbie question: find conditions](https://www.ruby-forum.com/t/easy-newbie-question-find-conditions/145594)

<div class="topic-metadata">

**Author:** [@gwendydd](https://www.ruby-forum.com/u/gwendydd)\
**Replies:** 8\
**Last updated:** [August 11, 2008, 11:46pm UTC](https://www.ruby-forum.com/t/easy-newbie-question-find-conditions/145594 "2008-08-11T23:46:15Z")

</div>

Hello! I am trying to run a simple find, and don’t know how to do it. I’m essentially creating a glossary, and I want to be able to find all the words that begin with each letter. Seems like I ought to be able to do…

---

## [AssociationTypeMismatch: Genre expected, got String](https://www.ruby-forum.com/t/associationtypemismatch-genre-expected-got-string/144510)

<div class="topic-metadata">

**Author:** [@josh](https://www.ruby-forum.com/u/josh)\
**Replies:** 8\
**Last updated:** [August 11, 2008, 11:44pm UTC](https://www.ruby-forum.com/t/associationtypemismatch-genre-expected-got-string/144510 "2008-08-11T23:44:41Z")

</div>

Hi all I have the following 2 models: class CompactDisc \< ActiveRecord::Base belongs\_to :genre end class Genre \< ActiveRecord::Base has\_many :compact\_discs end I have created a select box for my form so I can cho…

---

## [Iterate over form data](https://www.ruby-forum.com/t/iterate-over-form-data/145455)

<div class="topic-metadata">

**Author:** [@rsoerensen](https://www.ruby-forum.com/u/rsoerensen)\
**Replies:** 2\
**Last updated:** [August 11, 2008, 11:22pm UTC](https://www.ruby-forum.com/t/iterate-over-form-data/145455 "2008-08-11T23:22:58Z")

</div>

Hi, I’m building a system for registrering table soccer matches. I have however run into this problem: Each time a match is registered, a match is created in a match table. A match has\_many participants, and the Matc…

---

## [How to design a webshop client?](https://www.ruby-forum.com/t/how-to-design-a-webshop-client/145599)

<div class="topic-metadata">

**Author:** [@jawosis](https://www.ruby-forum.com/u/jawosis)\
**Replies:** 0\
**Last updated:** [August 11, 2008, 11:18pm UTC](https://www.ruby-forum.com/t/how-to-design-a-webshop-client/145599 "2008-08-11T23:18:25Z")

</div>

I’am just hacking a online shop. My intention is to build a local (LAN) ror based application where all new products, images … will be stored during the day. At the end of the day the local application will contact t…

---

## [A very simple RJS/effect question](https://www.ruby-forum.com/t/a-very-simple-rjs-effect-question/145588)

<div class="topic-metadata">

**Author:** [@dino\_d](https://www.ruby-forum.com/u/dino_d)\
**Replies:** 1\
**Last updated:** [August 11, 2008, 11:16pm UTC](https://www.ruby-forum.com/t/a-very-simple-rjs-effect-question/145588 "2008-08-11T23:16:37Z")

</div>

Hi - I have a very simple thing I want to do. Basically, I want to render an index, then when it’s done loading, I want to fire off a highlight effect on a certain div. Can someone give me a push in the right direct…

---

## [Validates\_length\_of virtual attribute](https://www.ruby-forum.com/t/validates-length-of-virtual-attribute/145535)

<div class="topic-metadata">

**Author:** [@david](https://www.ruby-forum.com/u/david)\
**Replies:** 4\
**Last updated:** [August 11, 2008, 10:58pm UTC](https://www.ruby-forum.com/t/validates-length-of-virtual-attribute/145535 "2008-08-11T22:58:33Z")

</div>

Hi all, I have in my Person model a attribute named “hash” which is a hash of a password and a salt. When a user want to create a account of update it, he just have to specify its password in a password virtual attri…

---

## [How do I build an array of objects from my params?](https://www.ruby-forum.com/t/how-do-i-build-an-array-of-objects-from-my-params/145309)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 6\
**Last updated:** [August 11, 2008, 10:42pm UTC](https://www.ruby-forum.com/t/how-do-i-build-an-array-of-objects-from-my-params/145309 "2008-08-11T22:42:40Z")

</div>

Hi, I have a form model which has\_many form\_item objects. How do I build a new form model from these objects? This call @form = Form.new(:user\_id =\> session\[:user\_id\], :form\_…

---

## [Recommendations for training on ROR for a noob?](https://www.ruby-forum.com/t/recommendations-for-training-on-ror-for-a-noob/145577)

<div class="topic-metadata">

**Author:** [@colin158](https://www.ruby-forum.com/u/colin158)\
**Replies:** 4\
**Last updated:** [August 11, 2008, 10:16pm UTC](https://www.ruby-forum.com/t/recommendations-for-training-on-ror-for-a-noob/145577 "2008-08-11T22:16:16Z")

</div>

I am a SW Engineer with no experience with ROR. Mostly SQL Server & SSRS experience. I am wondering if anyone can recommend a good training course on ROR? I need to get proficient quickly to sell it to my Boss.

---

## [Uneditable text\_field](https://www.ruby-forum.com/t/uneditable-text-field/145582)

<div class="topic-metadata">

**Author:** [@jturney](https://www.ruby-forum.com/u/jturney)\
**Replies:** 3\
**Last updated:** [August 11, 2008, 9:20pm UTC](https://www.ruby-forum.com/t/uneditable-text-field/145582 "2008-08-11T21:20:00Z")

</div>

\<%= form.text\_field :tags, :value =\> tags, :disabled=\>“disabled” %\> disabled makes it uneditable, but when I submit my form, I suppose the value of the input field becomes non-existant since it is disabled. What worka…

---

## [Sqlite3 installation problem](https://www.ruby-forum.com/t/sqlite3-installation-problem/143257)

<div class="topic-metadata">

**Author:** [@robertjames](https://www.ruby-forum.com/u/robertjames)\
**Replies:** 6\
**Last updated:** [August 11, 2008, 8:28pm UTC](https://www.ruby-forum.com/t/sqlite3-installation-problem/143257 "2008-08-11T20:28:38Z")

</div>

After installing sqlite3 using command line I face this problem in application environment; RuntimeError in Rails/infoController#properties unknown error RAILS\_ROOT: C:/Users/User/project\_home Application Trace | Fr…

---

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

<div class="topic-metadata">

**Author:** [@jturney](https://www.ruby-forum.com/u/jturney)\
**Replies:** 0\
**Last updated:** [August 11, 2008, 8:19pm UTC](https://www.ruby-forum.com/t/collection-select/145585 "2008-08-11T20:19:24Z")

</div>

Hi, quick question: \<%= collection\_select(:category, :id, @categories, :id, :name, options ={}, :multiple=\>“multiple” %\> How can I use params to pre-select multiple items? Thanks

---

## [About rails hosting](https://www.ruby-forum.com/t/about-rails-hosting/145518)

<div class="topic-metadata">

**Author:** [@mostafa\_badawi](https://www.ruby-forum.com/u/mostafa_badawi)\
**Replies:** 4\
**Last updated:** [August 11, 2008, 8:00pm UTC](https://www.ruby-forum.com/t/about-rails-hosting/145518 "2008-08-11T20:00:14Z")

</div>

Hi all, Does any one knows a site supporting free ror hosting?

---

## [Is 'Filter' a reserved word in Rails 2.1.0\_RC1?](https://www.ruby-forum.com/t/is-filter-a-reserved-word-in-rails-2-1-0-rc1/145570)

<div class="topic-metadata">

**Author:** [@shenry](https://www.ruby-forum.com/u/shenry)\
**Replies:** 2\
**Last updated:** [August 11, 2008, 7:57pm UTC](https://www.ruby-forum.com/t/is-filter-a-reserved-word-in-rails-2-1-0-rc1/145570 "2008-08-11T19:57:52Z")

</div>

After checking out Rails v2.1.0\_RC1 this is broken: @filters = Filter.find(:all) undefined method \`find’ for ActionController::Filters::Filter:Class It works fine in the console but breaks in the view… any ideas?

---

## [Getting AssociationTypeMismatch error when trying to create new object](https://www.ruby-forum.com/t/getting-associationtypemismatch-error-when-trying-to-create-new-object/145579)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [August 11, 2008, 7:39pm UTC](https://www.ruby-forum.com/t/getting-associationtypemismatch-error-when-trying-to-create-new-object/145579 "2008-08-11T19:39:07Z")

</div>

Hi, I’m trying to create a model, named “form”, which has\_many “form\_item” objects. The code is @form = Form.new(:user\_id =\> session\[:user\_id\], :form\_items =\> params\[:form\_ite…

---

## [Errno::EBADF (Bad file descriptor - connect(2))](https://www.ruby-forum.com/t/errno-ebadf-bad-file-descriptor-connect-2/145573)

<div class="topic-metadata">

**Author:** [@shankar](https://www.ruby-forum.com/u/shankar)\
**Replies:** 1\
**Last updated:** [August 11, 2008, 6:54pm UTC](https://www.ruby-forum.com/t/errno-ebadf-bad-file-descriptor-connect-2/145573 "2008-08-11T18:54:00Z")

</div>

Hi, I am getting this error when the Action mailer tries to send a mail- all the other sections seem to be working fine. Surprisingly, the same code used to work fine for almost a year Please find the error stack t…

---

## [\[ADV\] Pragmatic Studio Rails Training Events](https://www.ruby-forum.com/t/adv-pragmatic-studio-rails-training-events/145576)

<div class="topic-metadata">

**Author:** [@clarkware](https://www.ruby-forum.com/u/clarkware)\
**Replies:** 0\
**Last updated:** [August 11, 2008, 6:31pm UTC](https://www.ruby-forum.com/t/adv-pragmatic-studio-rails-training-events/145576 "2008-08-11T18:31:44Z")

</div>

Hi Folks, We’ve opened registration for two more Rails training events this year that I thought you might want to check out. Both courses are co-taught by Dave T. and Chad F., and include the latest Rails 2.1 feature…

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

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