# Rails

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

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

---

## [Restful resources with a somewhat complex scheme](https://www.ruby-forum.com/t/restful-resources-with-a-somewhat-complex-scheme/163805)

<div class="topic-metadata">

**Author:** [@Nicholas\_W](https://www.ruby-forum.com/u/Nicholas_W)\
**Replies:** 0\
**Last updated:** [March 25, 2009, 2:31am UTC](https://www.ruby-forum.com/t/restful-resources-with-a-somewhat-complex-scheme/163805 "2009-03-25T02:31:17Z")

</div>

Hi guys, I’m trying to figure out the routing of my application but unfortunately I’m having some problems. I have a polymorphic association where ads are related to 5 different kinds of resources (videos, prints, rad…

---

## [Activerecord problem](https://www.ruby-forum.com/t/activerecord-problem/163803)

<div class="topic-metadata">

**Author:** [@crazy\_canuck](https://www.ruby-forum.com/u/crazy_canuck)\
**Replies:** 1\
**Last updated:** [March 25, 2009, 2:22am UTC](https://www.ruby-forum.com/t/activerecord-problem/163803 "2009-03-25T02:22:32Z")

</div>

Hello everyone. I am new to Ruby on Rails. I have installed everything. i can start mongrel and webrick successfully. However, whenever I refresh the page i get this error … C:/Ruby/lib/ruby/gems/1.8/gems/activerecor…

---

## [Where to put code, tests, and test data](https://www.ruby-forum.com/t/where-to-put-code-tests-and-test-data/163776)

<div class="topic-metadata">

**Author:** [@Jeffrey\_LSTaylor](https://www.ruby-forum.com/u/Jeffrey_LSTaylor)\
**Replies:** 1\
**Last updated:** [March 25, 2009, 2:07am UTC](https://www.ruby-forum.com/t/where-to-put-code-tests-and-test-data/163776 "2009-03-25T02:07:20Z")

</div>

I am working on an RSS reader in Rails. I.e., Feed has\_many Article. Reading the feeds is done from a cron job. Currently the feed reading code is in the lib directory. I’m not sure how to test code in lib. And I…

---

## [MySQL vs SQLite](https://www.ruby-forum.com/t/mysql-vs-sqlite/101542)

<div class="topic-metadata">

**Author:** [@benjohnson](https://www.ruby-forum.com/u/benjohnson)\
**Replies:** 22\
**Last updated:** [March 25, 2009, 1:02am UTC](https://www.ruby-forum.com/t/mysql-vs-sqlite/101542 "2009-03-25T01:02:04Z")

</div>

I have an application where speed is probably the #1 priority here. I am using MySQL 5.0.22. Would SQL be considerably faster than MySQL? I know this has been discussed before, but the search on the forums is not work…

---

## [Problem running autotest in rails 2.3](https://www.ruby-forum.com/t/problem-running-autotest-in-rails-2-3/163570)

<div class="topic-metadata">

**Author:** [@phor\_gruber](https://www.ruby-forum.com/u/phor_gruber)\
**Replies:** 3\
**Last updated:** [March 25, 2009, 12:36am UTC](https://www.ruby-forum.com/t/problem-running-autotest-in-rails-2-3/163570 "2009-03-25T00:36:17Z")

</div>

People, I’m trying to run autotest on rails 2.3 I get a NoMethodError. Here is what I see: Sat Mar 21 20:47 /b/tmp/myfc23 maco$ Sat Mar 21 20:47 /b/tmp/myfc23 maco$ autotest loading autotest/rails\_rspec ./vendor/p…

---

## [From Rails 1.2.6 to 2.3.2](https://www.ruby-forum.com/t/from-rails-1-2-6-to-2-3-2/163691)

<div class="topic-metadata">

**Author:** [@elle](https://www.ruby-forum.com/u/elle)\
**Replies:** 3\
**Last updated:** [March 25, 2009, 12:34am UTC](https://www.ruby-forum.com/t/from-rails-1-2-6-to-2-3-2/163691 "2009-03-25T00:34:20Z")

</div>

Hello, I have an application I did in 2007 in Rails 1.2.6. It was my first one – so I am sure the code could be improved and better refractored. If I wanted to upgrade the application to 2.3.2 and hopefully improve i…

---

## [Is ruby 1.9.1 supported by Rails 2.3.0?](https://www.ruby-forum.com/t/is-ruby-1-9-1-supported-by-rails-2-3-0/163722)

<div class="topic-metadata">

**Author:** [@jarl](https://www.ruby-forum.com/u/jarl)\
**Replies:** 3\
**Last updated:** [March 24, 2009, 9:07pm UTC](https://www.ruby-forum.com/t/is-ruby-1-9-1-supported-by-rails-2-3-0/163722 "2009-03-24T21:07:35Z")

</div>

Hi. It seems like many people have had success using rails 2.3.0 with ruby 1.9.1. And as far as I know one of the goals of rails 2.3.0 was to support ruby 1.9.1. But on http://rubyonrails.org/download, ruby 1.8.x is …

---

## [OCR project in Gsoc](https://www.ruby-forum.com/t/ocr-project-in-gsoc/163767)

<div class="topic-metadata">

**Author:** [@Arulalan](https://www.ruby-forum.com/u/Arulalan)\
**Replies:** 2\
**Last updated:** [March 24, 2009, 8:21pm UTC](https://www.ruby-forum.com/t/ocr-project-in-gsoc/163767 "2009-03-24T20:21:03Z")

</div>

Hi to all, I planned to do project in gsoc… For OCR ( Optimal Character Recoganisation ) … That is , If we scanning one full text page from book, it will open into open office as word format. so that we ca…

---

## [Separate controller for side-bar components?](https://www.ruby-forum.com/t/separate-controller-for-side-bar-components/163770)

<div class="topic-metadata">

**Author:** [@ressister](https://www.ruby-forum.com/u/ressister)\
**Replies:** 2\
**Last updated:** [March 24, 2009, 8:11pm UTC](https://www.ruby-forum.com/t/separate-controller-for-side-bar-components/163770 "2009-03-24T20:11:38Z")

</div>

I’m in the process of refactoring an existing Rails app and am wondering - is it common practice to have a controller for each model that has CRUD actions? For instance, in my app I have a side bar where users can ad…

---

## [4 Rails apps using the same table. How to streamline?](https://www.ruby-forum.com/t/4-rails-apps-using-the-same-table-how-to-streamline/197089)

<div class="topic-metadata">

**Author:** [@LaughingNinja](https://www.ruby-forum.com/u/LaughingNinja)\
**Replies:** 2\
**Last updated:** [March 24, 2009, 7:06pm UTC](https://www.ruby-forum.com/t/4-rails-apps-using-the-same-table-how-to-streamline/197089 "2009-03-24T19:06:37Z")

</div>

Hi, I have 4 apps using similar User tables(3 open source projects and one in-house app). I’m trying to merge into one shared database User table (external to all 4 apps). I’m using the following code in the User mo…

---

## [Auto\_complete and Prototype 1.6.0.3](https://www.ruby-forum.com/t/auto-complete-and-prototype-1-6-0-3/163766)

<div class="topic-metadata">

**Author:** [@jonlog](https://www.ruby-forum.com/u/jonlog)\
**Replies:** 2\
**Last updated:** [March 24, 2009, 6:50pm UTC](https://www.ruby-forum.com/t/auto-complete-and-prototype-1-6-0-3/163766 "2009-03-24T18:50:05Z")

</div>

We’ve got a site running on Rails 2.2.2 with Prototype 1.6.0.3 that uses the rails/auto\_complete plugin from github. We just discovered that, in IE7 (haven’t tried IE8 yet), when a user types a name into the auto\_co…

---

## [ERB templates in the database](https://www.ruby-forum.com/t/erb-templates-in-the-database/163261)

<div class="topic-metadata">

**Author:** [@fredd](https://www.ruby-forum.com/u/fredd)\
**Replies:** 4\
**Last updated:** [March 24, 2009, 6:40pm UTC](https://www.ruby-forum.com/t/erb-templates-in-the-database/163261 "2009-03-24T18:40:00Z")

</div>

Hi, I am currently developing a small cms in Rails. I decided recently that I need to store both the content and the presentation template in the database for flexibility. The system is based heavily on content blocks…

---

## [Has many through not working in ruby-enterprise](https://www.ruby-forum.com/t/has-many-through-not-working-in-ruby-enterprise/163697)

<div class="topic-metadata">

**Author:** [@mirec](https://www.ruby-forum.com/u/mirec)\
**Replies:** 3\
**Last updated:** [March 24, 2009, 6:25pm UTC](https://www.ruby-forum.com/t/has-many-through-not-working-in-ruby-enterprise/163697 "2009-03-24T18:25:04Z")

</div>

hi, I have simple has many through association which is working without problem on ruby 1.8.6 and rails 2.0.2, but on ruby-enterprise with ruby 2.0.2 or 2.3.2 it just does not see “through” part of association. clas…

---

## [RDoc - hidden documentation](https://www.ruby-forum.com/t/rdoc-hidden-documentation/125155)

<div class="topic-metadata">

**Author:** [@FrSSSSdSSSSric\_Masc](https://www.ruby-forum.com/u/FrSSSSdSSSSric_Masc)\
**Replies:** 3\
**Last updated:** [March 24, 2009, 5:26pm UTC](https://www.ruby-forum.com/t/rdoc-hidden-documentation/125155 "2009-03-24T17:26:40Z")

</div>

Hi, I generated the RDoc documentation for Rails 2.0.2 via rake, but many classes are not present in the documentation. For example the class “CGI::Session::CookieStore” is hidden even if its file is visible in the f…

---

## [Nested Model Form](https://www.ruby-forum.com/t/nested-model-form/163758)

<div class="topic-metadata">

**Author:** [@Nash](https://www.ruby-forum.com/u/Nash)\
**Replies:** 0\
**Last updated:** [March 24, 2009, 5:14pm UTC](https://www.ruby-forum.com/t/nested-model-form/163758 "2009-03-24T17:14:17Z")

</div>

I noticed when I have a form up that reflects a parent and two types of children that the names of the field use a global index of the total number of available children. I expected it to be scoped per child type. Fo…

---

## [Help caching rails](https://www.ruby-forum.com/t/help-caching-rails/163750)

<div class="topic-metadata">

**Author:** [@anton\_effendi](https://www.ruby-forum.com/u/anton_effendi)\
**Replies:** 0\
**Last updated:** [March 24, 2009, 4:09pm UTC](https://www.ruby-forum.com/t/help-caching-rails/163750 "2009-03-24T16:09:10Z")

</div>

Hai All I have a problem. can help me plz… problem: I want cache 1 varible… ex: user1 request to server… my program make 1 variable… if first time variable will generate(find to table). after generate I want that …

---

## [Advanced Search In Ruby on Rails](https://www.ruby-forum.com/t/advanced-search-in-ruby-on-rails/161949)

<div class="topic-metadata">

**Author:** [@khim](https://www.ruby-forum.com/u/khim)\
**Replies:** 8\
**Last updated:** [March 24, 2009, 3:57pm UTC](https://www.ruby-forum.com/t/advanced-search-in-ruby-on-rails/161949 "2009-03-24T15:57:17Z")

</div>

Hi all, I am doing with ruby on rail, now i am having a problem with advanced search by using multiple checkboxs and multiple radio.when i submited, it doesn’t show the result.so i hope all of you will be try and take…

---

## [\[rails 2.3.2\] ajax form issue](https://www.ruby-forum.com/t/rails-2-3-2-ajax-form-issue/163732)

<div class="topic-metadata">

**Author:** [@kadoudal](https://www.ruby-forum.com/u/kadoudal)\
**Replies:** 5\
**Last updated:** [March 24, 2009, 3:42pm UTC](https://www.ruby-forum.com/t/rails-2-3-2-ajax-form-issue/163732 "2009-03-24T15:42:47Z")

</div>

In a Facebox window (running well with an html form) , I have now an Ajax form written .. but when submitted , the request.xhr? =\> false what could be wrong ? what did I miss ? thanks for any enlightenment er…

---

## [Select updates database?](https://www.ruby-forum.com/t/select-updates-database/163670)

<div class="topic-metadata">

**Author:** [@Amitabh\_A](https://www.ruby-forum.com/u/Amitabh_A)\
**Replies:** 2\
**Last updated:** [March 24, 2009, 3:06pm UTC](https://www.ruby-forum.com/t/select-updates-database/163670 "2009-03-24T15:06:03Z")

</div>

I am running on Rails 2.2.2 on Solaris (and also on my mac) against mysql. For some reason, when I use a select in the partial, the database does not get updated with the changed value. I am using checkbox for other f…

---

## [Compatible Packages](https://www.ruby-forum.com/t/compatible-packages/161831)

<div class="topic-metadata">

**Author:** [@robredford](https://www.ruby-forum.com/u/robredford)\
**Replies:** 2\
**Last updated:** [March 24, 2009, 2:36pm UTC](https://www.ruby-forum.com/t/compatible-packages/161831 "2009-03-24T14:36:06Z")

</div>

I’m interested in using ActiveRecord (AR) to build an API to a glorified file catalogue with ~35 million and counting entries. It’s really an MD5sum catalogue with extra information granules about each file to suppor…

---

## [You called render with invalid options : {:text=\>"howdy"}, nil](https://www.ruby-forum.com/t/you-called-render-with-invalid-options-text-howdy-nil/162940)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 3\
**Last updated:** [March 24, 2009, 1:55pm UTC](https://www.ruby-forum.com/t/you-called-render-with-invalid-options-text-howdy-nil/162940 "2009-03-24T13:55:02Z")

</div>

I just “upgraded” to Rails 2.2.2. In environment, I’ve set: RAILS\_GEM\_VERSION = ‘2.2.2’ unless defined? RAILS\_GEM\_VERSION In development.rb and production.rb I’ve commented out: #config.action\_view.cache\_template\_ext…

---

## [Deploying Ruby on rails on hostgator](https://www.ruby-forum.com/t/deploying-ruby-on-rails-on-hostgator/162740)

<div class="topic-metadata">

**Author:** [@johny](https://www.ruby-forum.com/u/johny)\
**Replies:** 6\
**Last updated:** [March 24, 2009, 1:31pm UTC](https://www.ruby-forum.com/t/deploying-ruby-on-rails-on-hostgator/162740 "2009-03-24T13:31:14Z")

</div>

I created a Ruby on rails application on my linux. here the what i did 1.first I log in to my ssh account 2.create an application rails /home/myusername/webregistration 3 cd webregistration 4 cd …/public\_html 5 ln …

---

## [Will\_paginate & vote\_fu](https://www.ruby-forum.com/t/will-paginate-vote-fu/163718)

<div class="topic-metadata">

**Author:** [@chimorito](https://www.ruby-forum.com/u/chimorito)\
**Replies:** 1\
**Last updated:** [March 24, 2009, 12:43pm UTC](https://www.ruby-forum.com/t/will-paginate-vote-fu/163718 "2009-03-24T12:43:01Z")

</div>

Hi, first at all sorry if my english is not the best. I’m trying to include the plugin vote\_fu to my aplication following these steps GitHub - peteonrails/vote\_fu: Vote and Karma Management. I install the plugin and i…

---

## [Rails boolean and mysql tinyint(1) question?](https://www.ruby-forum.com/t/rails-boolean-and-mysql-tinyint-1-question/163686)

<div class="topic-metadata">

**Author:** [@vsg](https://www.ruby-forum.com/u/vsg)\
**Replies:** 2\
**Last updated:** [March 24, 2009, 10:21am UTC](https://www.ruby-forum.com/t/rails-boolean-and-mysql-tinyint-1-question/163686 "2009-03-24T10:21:01Z")

</div>

this may seem silly but i just noticed that if in mysql the column which is a tinyint(1) happens 2 or greater, by a chance of glitch or corruption in the database(i did it manually ofcourse but i am speaking hypotheti…

---

## [Re-initializing a controller or a model in production mode](https://www.ruby-forum.com/t/re-initializing-a-controller-or-a-model-in-production-mode/163336)

<div class="topic-metadata">

**Author:** [@Mukund](https://www.ruby-forum.com/u/Mukund)\
**Replies:** 4\
**Last updated:** [March 24, 2009, 8:02am UTC](https://www.ruby-forum.com/t/re-initializing-a-controller-or-a-model-in-production-mode/163336 "2009-03-24T08:02:47Z")

</div>

How do I re-initialize a controller / model in production mode so that it reloads?

---

## [Rails making it tougher for newbies?](https://www.ruby-forum.com/t/rails-making-it-tougher-for-newbies/163558)

<div class="topic-metadata">

**Author:** [@arghx1](https://www.ruby-forum.com/u/arghx1)\
**Replies:** 10\
**Last updated:** [March 24, 2009, 3:25am UTC](https://www.ruby-forum.com/t/rails-making-it-tougher-for-newbies/163558 "2009-03-24T03:25:08Z")

</div>

I’m trying to learn how to use ruby on rails. Just two weeks ago I’m learning how to program in Ruby, but now I’m ready to get onto with rails. I got a book for rails but it shows me rails examples that only work wi…

---

## [Complex Query?](https://www.ruby-forum.com/t/complex-query/163494)

<div class="topic-metadata">

**Author:** [@partydrone](https://www.ruby-forum.com/u/partydrone)\
**Replies:** 5\
**Last updated:** [March 23, 2009, 11:52pm UTC](https://www.ruby-forum.com/t/complex-query/163494 "2009-03-23T23:52:49Z")

</div>

I need to perform a Rails find with the following data model in my controller: download\_types --\> downloads --\> downloads\_products \<-- products I want to grab all downloads for a given product\_id and list them b…

---

## [Spec::Rails, "model.should have(1).error\_on(:attribute)" passes when?](https://www.ruby-forum.com/t/spec-rails-model-should-have-1-error-on-attribute-passes-when/163689)

<div class="topic-metadata">

**Author:** [@bornboulder](https://www.ruby-forum.com/u/bornboulder)\
**Replies:** 0\
**Last updated:** [March 23, 2009, 11:41pm UTC](https://www.ruby-forum.com/t/spec-rails-model-should-have-1-error-on-attribute-passes-when/163689 "2009-03-23T23:41:06Z")

</div>

Spec::Rails people, I’m curious about: model.should have(1).error\_on(:attribute) displayed in the URL below: http://rspec.rubyforge.org/rspec-rails/1.2.2/classes/Spec/Rails/Exten… The Rspec peepcode screencast sugg…

---

## [Find :all using :group](https://www.ruby-forum.com/t/find-all-using-group/163646)

<div class="topic-metadata">

**Author:** [@brazov](https://www.ruby-forum.com/u/brazov)\
**Replies:** 5\
**Last updated:** [March 23, 2009, 11:26pm UTC](https://www.ruby-forum.com/t/find-all-using-group/163646 "2009-03-23T23:26:49Z")

</div>

hello, I need to group Users depending on their operating systems field “os”, so I tried User.find(:all, :group =\> :os) however, the result is an array having only one user for each os group. I’d like to have ALL th…

---

## [Error while running "rails shovell"](https://www.ruby-forum.com/t/error-while-running-rails-shovell/163685)

<div class="topic-metadata">

**Author:** [@michalyad](https://www.ruby-forum.com/u/michalyad)\
**Replies:** 0\
**Last updated:** [March 23, 2009, 10:58pm UTC](https://www.ruby-forum.com/t/error-while-running-rails-shovell/163685 "2009-03-23T22:58:55Z")

</div>

I have just installed rails thru Curt H. installment file (InstantRails 1.3a zip). I am trying to create the required directories for a demo application named “shovell”. I opened the ruby console and I ran “rails sho…

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

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