# Rails

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

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

---

## [Ultrasphinx search error... Invalid class name](https://www.ruby-forum.com/t/ultrasphinx-search-error-invalid-class-name/162147)

<div class="topic-metadata">

**Author:** [@adam](https://www.ruby-forum.com/u/adam)\
**Replies:** 1\
**Last updated:** [March 9, 2009, 10:45pm UTC](https://www.ruby-forum.com/t/ultrasphinx-search-error-invalid-class-name/162147 "2009-03-09T22:45:24Z")

</div>

I’ve got Ultrasphinx powering the search on my Rails app. It’s working with all of my models when they’re first indexed, but then, after what seems like a random amount of time, I’ll get the following error on just on…

---

## [Development speed boosters](https://www.ruby-forum.com/t/development-speed-boosters/162388)

<div class="topic-metadata">

**Author:** [@rsm](https://www.ruby-forum.com/u/rsm)\
**Replies:** 4\
**Last updated:** [March 9, 2009, 9:58pm UTC](https://www.ruby-forum.com/t/development-speed-boosters/162388 "2009-03-09T21:58:27Z")

</div>

anyone know of any good development speed booster plugins or gems? the larger my app becomes, the slower development time becomes… getting painfully slow…

---

## [Path to rails application](https://www.ruby-forum.com/t/path-to-rails-application/162428)

<div class="topic-metadata">

**Author:** [@gypsygoks](https://www.ruby-forum.com/u/gypsygoks)\
**Replies:** 0\
**Last updated:** [March 9, 2009, 9:48pm UTC](https://www.ruby-forum.com/t/path-to-rails-application/162428 "2009-03-09T21:48:41Z")

</div>

Hello, Iam a newbie to Rails. Rails application ( Rails 2.2.2 ) has been installed in my server. However iam unaware of determining the path to my rails application. Please help. Thanks in advance. Regards, Gokul

---

## [\[2.2.2\]Migration failing because MySQL has no "each" method?](https://www.ruby-forum.com/t/2-2-2-migration-failing-because-mysql-has-no-each-method/162423)

<div class="topic-metadata">

**Author:** [@robkuz](https://www.ruby-forum.com/u/robkuz)\
**Replies:** 1\
**Last updated:** [March 9, 2009, 9:46pm UTC](https://www.ruby-forum.com/t/2-2-2-migration-failing-because-mysql-has-no-each-method/162423 "2009-03-09T21:46:23Z")

</div>

Hey all. I’m trying to do a simple migration, but the MySQL adapter keeps choking. This used to work before, and was just fine before my latest OS reformat. I’ve got libmysql.dll in Ruby’s /bin directory, and most …

---

## [\[JOBS\] Groundbreaking Start-Up Seeks Web Architect/Developer (London UK, Contract-to-Hire)](https://www.ruby-forum.com/t/jobs-groundbreaking-start-up-seeks-web-architect-developer-london-uk-contract-to-hire/162426)

<div class="topic-metadata">

**Author:** [@philippe.taillefer](https://www.ruby-forum.com/u/philippe.taillefer)\
**Replies:** 0\
**Last updated:** [March 9, 2009, 9:31pm UTC](https://www.ruby-forum.com/t/jobs-groundbreaking-start-up-seeks-web-architect-developer-london-uk-contract-to-hire/162426 "2009-03-09T21:31:27Z")

</div>

Hark & Company is a software & consulting start up which will address a universal organisational need, i.e. aggregating the thinking of many people in real time. Starting from the current planned functionality, algori…

---

## [Multiple database login issue](https://www.ruby-forum.com/t/multiple-database-login-issue/162405)

<div class="topic-metadata">

**Author:** [@shanker](https://www.ruby-forum.com/u/shanker)\
**Replies:** 4\
**Last updated:** [March 9, 2009, 8:18pm UTC](https://www.ruby-forum.com/t/multiple-database-login-issue/162405 "2009-03-09T20:18:04Z")

</div>

Here is a problem which is quite mysterious to me, I am having multiple database architecture, each user logs in with organisation name/user name/password There is a master database and a table ‘names’ which contains …

---

## [Associations?](https://www.ruby-forum.com/t/associations/162399)

<div class="topic-metadata">

**Author:** [@elliottg](https://www.ruby-forum.com/u/elliottg)\
**Replies:** 9\
**Last updated:** [March 9, 2009, 8:16pm UTC](https://www.ruby-forum.com/t/associations/162399 "2009-03-09T20:16:52Z")

</div>

I am having a hard time seeing how some aspects of associations work… For instance, I have a “Role” class with a “has\_many :users” assoc. and a "User: class with a “belongs\_to :role” assoc., when I run this sample co…

---

## [Monkey Patch](https://www.ruby-forum.com/t/monkey-patch/162391)

<div class="topic-metadata">

**Author:** [@nike](https://www.ruby-forum.com/u/nike)\
**Replies:** 2\
**Last updated:** [March 9, 2009, 7:50pm UTC](https://www.ruby-forum.com/t/monkey-patch/162391 "2009-03-09T19:50:55Z")

</div>

Pls explain what is meant by monkey patch & what is the difference betwwen nil and false

---

## [Order by number of occurances in a has\_many relationship](https://www.ruby-forum.com/t/order-by-number-of-occurances-in-a-has-many-relationship/162407)

<div class="topic-metadata">

**Author:** [@rhubarbcrumble](https://www.ruby-forum.com/u/rhubarbcrumble)\
**Replies:** 2\
**Last updated:** [March 9, 2009, 7:00pm UTC](https://www.ruby-forum.com/t/order-by-number-of-occurances-in-a-has-many-relationship/162407 "2009-03-09T19:00:34Z")

</div>

I can’t seem to find anything to explain how I might be able to order a list according to the number of occurrences of an item in a has\_many relationship, so maybe someone could help me learn how… To illustrate, imagi…

---

## [Limit Eager Loading?](https://www.ruby-forum.com/t/limit-eager-loading/162413)

<div class="topic-metadata">

**Author:** [@mgiorno](https://www.ruby-forum.com/u/mgiorno)\
**Replies:** 1\
**Last updated:** [March 9, 2009, 6:52pm UTC](https://www.ruby-forum.com/t/limit-eager-loading/162413 "2009-03-09T18:52:48Z")

</div>

Is there a way to limit eager loading? I want to feature categories, each with three Items from that category. Is there anyway to do that with eager loading or would you recommend a different method? Thanks! -Mario …

---

## [Working with in\_groups\_of](https://www.ruby-forum.com/t/working-with-in-groups-of/162339)

<div class="topic-metadata">

**Author:** [@rsanheim](https://www.ruby-forum.com/u/rsanheim)\
**Replies:** 1\
**Last updated:** [March 9, 2009, 6:28pm UTC](https://www.ruby-forum.com/t/working-with-in-groups-of/162339 "2009-03-09T18:28:08Z")

</div>

I’m trying to build a table out using in groups of, but I’d also like to be able to customize the first and last rows. Apart from the actual formatting, is there an efficient way to figure out how many total groups th…

---

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

<div class="topic-metadata">

**Author:** [@lox32](https://www.ruby-forum.com/u/lox32)\
**Replies:** 1\
**Last updated:** [March 9, 2009, 6:15pm UTC](https://www.ruby-forum.com/t/rake-error/162393 "2009-03-09T18:15:11Z")

</div>

when i try to run rake i get an eroor that goes like this: (in /home/dwain/project/stuad) /home/dwain/project/stuad/config/boot.rb:29:Warning: require\_gem is obsolete. Use gem instead. rake aborted! Test failures …

---

## [Form\_tag error: only get requests allowed](https://www.ruby-forum.com/t/form-tag-error-only-get-requests-allowed/162402)

<div class="topic-metadata">

**Author:** [@neubyr](https://www.ruby-forum.com/u/neubyr)\
**Replies:** 2\
**Last updated:** [March 9, 2009, 6:10pm UTC](https://www.ruby-forum.com/t/form-tag-error-only-get-requests-allowed/162402 "2009-03-09T18:10:39Z")

</div>

I am getting above error while updating an item using form\_tag helper. Edit Topic Item \<% form\_tag edit\_topic\_item\_path(@item.topic, @item), :html =\> { :method =\> :put} do %\> \<%= render :partial =\> ‘item\_form’, :objec…

---

## [MIgration Problem in 2.1.2](https://www.ruby-forum.com/t/migration-problem-in-2-1-2/162280)

<div class="topic-metadata">

**Author:** [@banry](https://www.ruby-forum.com/u/banry)\
**Replies:** 1\
**Last updated:** [March 9, 2009, 5:51pm UTC](https://www.ruby-forum.com/t/migration-problem-in-2-1-2/162280 "2009-03-09T17:51:40Z")

</div>

I suspect this is because it is a 1.x application which was upgraded, but my migrations don’t “stick.” If I Coder-iMac:patton colin$ rake db:migrate (in /Users/colin/Desktop/patton) == 20090217193953 AddLastYearToTar…

---

## [Best Rails editor](https://www.ruby-forum.com/t/best-rails-editor/162331)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 25\
**Last updated:** [March 9, 2009, 5:21pm UTC](https://www.ruby-forum.com/t/best-rails-editor/162331 "2009-03-09T17:21:04Z")

</div>

Hi All, I am new to Rails, I was searching for the best Rails IDE for doing my project. I found Aptana with RadRails, which is very heavy and it is consuming all my CPU and memory. Can anyone suggest very small Rails…

---

## [Create reports with ActiveRecord to download by user](https://www.ruby-forum.com/t/create-reports-with-activerecord-to-download-by-user/162315)

<div class="topic-metadata">

**Author:** [@gte351s](https://www.ruby-forum.com/u/gte351s)\
**Replies:** 3\
**Last updated:** [March 9, 2009, 5:01pm UTC](https://www.ruby-forum.com/t/create-reports-with-activerecord-to-download-by-user/162315 "2009-03-09T17:01:38Z")

</div>

Hi - I want to enable the user to generate a report based on the database used by the application. I have a few related questions: Assuming my script is called ‘create\_report.rb’ and stored under /lib/tasks, how do…

---

## [Actionmailer - TypeError: can't dup NilClass](https://www.ruby-forum.com/t/actionmailer-typeerror-cant-dup-nilclass/162396)

<div class="topic-metadata">

**Author:** [@spacechurro](https://www.ruby-forum.com/u/spacechurro)\
**Replies:** 0\
**Last updated:** [March 9, 2009, 4:04pm UTC](https://www.ruby-forum.com/t/actionmailer-typeerror-cant-dup-nilclass/162396 "2009-03-09T16:04:06Z")

</div>

i am currently writing a mailer, and running into several problems that i have not run into before… suddenly, rails is asking me for the following: ActionView::ActionViewError (Due to changes in ActionMailer, you need…

---

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

<div class="topic-metadata">

**Author:** [@lox32](https://www.ruby-forum.com/u/lox32)\
**Replies:** 0\
**Last updated:** [March 9, 2009, 3:41pm UTC](https://www.ruby-forum.com/t/rake-error/162394 "2009-03-09T15:41:33Z")

</div>

when i try to run rake i get an eroor that goes like this: (in /home/dwain/project/stuad) /home/dwain/project/stuad/config/boot.rb:29:Warning: require\_gem is obsolete. Use gem instead. rake aborted! Test failures …

---

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

<div class="topic-metadata">

**Author:** [@lox32](https://www.ruby-forum.com/u/lox32)\
**Replies:** 0\
**Last updated:** [March 9, 2009, 3:40pm UTC](https://www.ruby-forum.com/t/rake-error/162392 "2009-03-09T15:40:58Z")

</div>

when i try to run rake i get an eroor that goes like this: (in /home/dwain/project/stuad) /home/dwain/project/stuad/config/boot.rb:29:Warning: require\_gem is obsolete. Use gem instead. rake aborted! Test failures …

---

## [Any good tutorial about upgrade ruby to 1.9.1 and with rails 2.3?](https://www.ruby-forum.com/t/any-good-tutorial-about-upgrade-ruby-to-1-9-1-and-with-rails-2-3/162313)

<div class="topic-metadata">

**Author:** [@chenillen](https://www.ruby-forum.com/u/chenillen)\
**Replies:** 3\
**Last updated:** [March 9, 2009, 3:39pm UTC](https://www.ruby-forum.com/t/any-good-tutorial-about-upgrade-ruby-to-1-9-1-and-with-rails-2-3/162313 "2009-03-09T15:39:47Z")

</div>

Hi there, Just want to upgrade to ruby1.9.1, but some important gems such as mysql, fastthread, mongrel are not compatible with the newest version, anyone has some good tutorial for recommendation? Thanks, chenillen …

---

## [Undefined method \`symbol\_path'](https://www.ruby-forum.com/t/undefined-method-symbol-path/162344)

<div class="topic-metadata">

**Author:** [@neubyr](https://www.ruby-forum.com/u/neubyr)\
**Replies:** 4\
**Last updated:** [March 9, 2009, 3:23pm UTC](https://www.ruby-forum.com/t/undefined-method-symbol-path/162344 "2009-03-09T15:23:07Z")

</div>

I am getting following error while creating a new topic using RESTful design. But, everything works fine when I use \<% form\_tag :action =\> :create do %\> . ActionView::TemplateError (undefined method \`symbol\_path’ for …

---

## [Multiple columns primary key](https://www.ruby-forum.com/t/multiple-columns-primary-key/162383)

<div class="topic-metadata">

**Author:** [@engamocap](https://www.ruby-forum.com/u/engamocap)\
**Replies:** 3\
**Last updated:** [March 9, 2009, 2:46pm UTC](https://www.ruby-forum.com/t/multiple-columns-primary-key/162383 "2009-03-09T14:46:08Z")

</div>

Hi all, I have two tables: TABLE 1 A pk - fk (referencesc TABLE 2) B pk C pk D pk E F TABLE 2 A pk G H I L I don’t use incremental field (id). I’d like don’t use find\_by\_sql. How can I define both models …

---

## [Flickr API integration problem](https://www.ruby-forum.com/t/flickr-api-integration-problem/162387)

<div class="topic-metadata">

**Author:** [@srinu](https://www.ruby-forum.com/u/srinu)\
**Replies:** 0\
**Last updated:** [March 9, 2009, 2:39pm UTC](https://www.ruby-forum.com/t/flickr-api-integration-problem/162387 "2009-03-09T14:39:03Z")

</div>

I have gone through the rflickr README, and it says to get the token. I have struck-up here with getting auth.token. My script looks: require ‘flickr’ FLICKR\_KEY = ‘XXXXXXXXXXXXXXXXXXXXX’ FLICKR\_SECRET = ‘XXXXXXXXX’ …

---

## [Protecting an associated record from destroying -- How To and explanation?](https://www.ruby-forum.com/t/protecting-an-associated-record-from-destroying-how-to-and-explanation/162380)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [March 9, 2009, 2:36pm UTC](https://www.ruby-forum.com/t/protecting-an-associated-record-from-destroying-how-to-and-explanation/162380 "2009-03-09T14:36:07Z")

</div>

Hi, I have a model “Pattern” with subject and body as columns and another “Schedule” with date, time and pattern\_id(for inserting an association to Pattern table) I had defined it as class Schedule \< ActiveRecord::Ba…

---

## [@prefix\_options in ActiveResource](https://www.ruby-forum.com/t/prefix-options-in-activeresource/162386)

<div class="topic-metadata">

**Author:** [@yuleven](https://www.ruby-forum.com/u/yuleven)\
**Replies:** 0\
**Last updated:** [March 9, 2009, 2:33pm UTC](https://www.ruby-forum.com/t/prefix-options-in-activeresource/162386 "2009-03-09T14:33:43Z")

</div>

Hello, Can anyone explain to me a certain behaviour of ActiveResource: Assuming there is an ActiveResource class like the following: class Shop \< ActiveResource::Base self.site = “http://site.com/operators/:operator\_…

---

## [Flickr API integration problem](https://www.ruby-forum.com/t/flickr-api-integration-problem/162385)

<div class="topic-metadata">

**Author:** [@srinu](https://www.ruby-forum.com/u/srinu)\
**Replies:** 0\
**Last updated:** [March 9, 2009, 2:30pm UTC](https://www.ruby-forum.com/t/flickr-api-integration-problem/162385 "2009-03-09T14:30:45Z")

</div>

I have gone through the rflickr README, and it says to get the token. I have struck-up here with getting auth.token. My script looks: require ‘flickr’ FLICKR\_KEY = ‘XXXXXXXXXXXXXXXXXX’ FLICKR\_SECRET = ‘XXXXXX’ FLICK…

---

## [How to Get value of text\_field?](https://www.ruby-forum.com/t/how-to-get-value-of-text-field/162142)

<div class="topic-metadata">

**Author:** [@zeba-momin](https://www.ruby-forum.com/u/zeba-momin)\
**Replies:** 5\
**Last updated:** [March 9, 2009, 1:36pm UTC](https://www.ruby-forum.com/t/how-to-get-value-of-text-field/162142 "2009-03-09T13:36:03Z")

</div>

Hi, I have a text field as: \<%= text\_field :contact ,:name,:class=\>‘roundRect’,:id=\>‘name’ %\> Then on click of a link I want to pass the value in this text field to a controller method. I do not want to use a form a…

---

## [Hover effect for column data field](https://www.ruby-forum.com/t/hover-effect-for-column-data-field/162355)

<div class="topic-metadata">

**Author:** [@salil](https://www.ruby-forum.com/u/salil)\
**Replies:** 2\
**Last updated:** [March 9, 2009, 1:21pm UTC](https://www.ruby-forum.com/t/hover-effect-for-column-data-field/162355 "2009-03-09T13:21:52Z")

</div>

Hi All i have a table column field which is of 50 characters i am showing only 10 out of it so that my layout remain proper. what i want is when i hover on that field it should show me all the content of that field A…

---

## [Customizing XML response with Web services implementation using AWS](https://www.ruby-forum.com/t/customizing-xml-response-with-web-services-implementation-using-aws/162378)

<div class="topic-metadata">

**Author:** [@Piyush\_with\_Rails](https://www.ruby-forum.com/u/Piyush_with_Rails)\
**Replies:** 0\
**Last updated:** [March 9, 2009, 12:00pm UTC](https://www.ruby-forum.com/t/customizing-xml-response-with-web-services-implementation-using-aws/162378 "2009-03-09T12:00:13Z")

</div>

Hi All, I am using Action web service’s layered dispatching to implement web service apis in rails. I want to know that how can we customize the XML response generated by AWS as the response for API Call. For an exa…

---

## [Problem with path helepers on nested routes](https://www.ruby-forum.com/t/problem-with-path-helepers-on-nested-routes/162377)

<div class="topic-metadata">

**Author:** [@pietia](https://www.ruby-forum.com/u/pietia)\
**Replies:** 0\
**Last updated:** [March 9, 2009, 11:36am UTC](https://www.ruby-forum.com/t/problem-with-path-helepers-on-nested-routes/162377 "2009-03-09T11:36:10Z")

</div>

Hi I have problem with this part of routes.rb map.namespace :admin do |admin| admin.resources :segment\_schemas, :except =\> :show admin.resources :languages admin.resources :projects do |project| project.resources :…

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

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