# Rails

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

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

---

## [Functional tests breaking](https://www.ruby-forum.com/t/functional-tests-breaking/124224)

<div class="topic-metadata">

**Author:** [@leveille](https://www.ruby-forum.com/u/leveille)\
**Replies:** 0\
**Last updated:** [December 26, 2007, 6:56pm UTC](https://www.ruby-forum.com/t/functional-tests-breaking/124224 "2007-12-26T18:56:05Z")

</div>

So I have a weird thing that’s come up and wanted to see if anyone else has experienced it. I checked my project code out on my laptop and my unit tests are working fine. However, none of my functional tests that requ…

---

## [Rails 2.0 vs. custom routes](https://www.ruby-forum.com/t/rails-2-0-vs-custom-routes/124213)

<div class="topic-metadata">

**Author:** [@sharkie](https://www.ruby-forum.com/u/sharkie)\
**Replies:** 8\
**Last updated:** [December 26, 2007, 6:12pm UTC](https://www.ruby-forum.com/t/rails-2-0-vs-custom-routes/124213 "2007-12-26T18:12:50Z")

</div>

In previous Rails, I used to use these (for example) /users/1 /users;expand\_all /users/1;say\_hello Now in Rails 2.0, I believe I am supposed to use these /users/1 /users/expand\_all /users/1/say\_hello Am I correct…

---

## [Rails 2.0 Book?](https://www.ruby-forum.com/t/rails-2-0-book/124212)

<div class="topic-metadata">

**Author:** [@antonaylward](https://www.ruby-forum.com/u/antonaylward)\
**Replies:** 4\
**Last updated:** [December 26, 2007, 6:09pm UTC](https://www.ruby-forum.com/t/rails-2-0-book/124212 "2007-12-26T18:09:54Z")

</div>

Is there a new RWDWR in the works? (I suppose that if the reply is ‘yes’ then sales of the current edition will plummet as we all wait for the version \>= 2.0 edition) – Excellence is an art won by training and habitu…

---

## [Will\_paginate with \>1 model](https://www.ruby-forum.com/t/will-paginate-with-1-model/124222)

<div class="topic-metadata">

**Author:** [@miked](https://www.ruby-forum.com/u/miked)\
**Replies:** 0\
**Last updated:** [December 26, 2007, 6:06pm UTC](https://www.ruby-forum.com/t/will-paginate-with-1-model/124222 "2007-12-26T18:06:28Z")

</div>

Hi: I’m trying to paginate an array that is a collection of \>1 models of results (for a search results). I’ve been searching and trying and really not coming up with anything. Basically my array is the collection t…

---

## [Ferret OK in development, doesn't work right in production](https://www.ruby-forum.com/t/ferret-ok-in-development-doesnt-work-right-in-production/124176)

<div class="topic-metadata">

**Author:** [@OAOAOA](https://www.ruby-forum.com/u/OAOAOA)\
**Replies:** 2\
**Last updated:** [December 26, 2007, 3:49pm UTC](https://www.ruby-forum.com/t/ferret-ok-in-development-doesnt-work-right-in-production/124176 "2007-12-26T15:49:19Z")

</div>

Hi all, I am developing my app on OS X and deploying regularly to a linux box that I’ve got running on CentOS. I recently started using acts\_as\_ferret on one of my simple models and it has been doing great. Last nig…

---

## [About emacs rails warning color](https://www.ruby-forum.com/t/about-emacs-rails-warning-color/124209)

<div class="topic-metadata">

**Author:** [@ChandleWEi](https://www.ruby-forum.com/u/ChandleWEi)\
**Replies:** 0\
**Last updated:** [December 26, 2007, 3:04pm UTC](https://www.ruby-forum.com/t/about-emacs-rails-warning-color/124209 "2007-12-26T15:04:40Z")

</div>

I use rubyforge’s emacs-rails,but I don’t know how to change ruby warning color.I just would to change warning-color “light-pink” to other color.anyone can give some advise

---

## [Customizing Radiant](https://www.ruby-forum.com/t/customizing-radiant/124204)

<div class="topic-metadata">

**Author:** [@chandrahasanreddy](https://www.ruby-forum.com/u/chandrahasanreddy)\
**Replies:** 2\
**Last updated:** [December 26, 2007, 2:44pm UTC](https://www.ruby-forum.com/t/customizing-radiant/124204 "2007-12-26T14:44:08Z")

</div>

hi all… I am new to rails and i am working on a project which require the customization of the radiant(Not through extensions).If some one could have got an idea about it, please help me in that concern with links o…

---

## [Redirect user based on url entered?](https://www.ruby-forum.com/t/redirect-user-based-on-url-entered/124194)

<div class="topic-metadata">

**Author:** [@kxl](https://www.ruby-forum.com/u/kxl)\
**Replies:** 2\
**Last updated:** [December 26, 2007, 2:10pm UTC](https://www.ruby-forum.com/t/redirect-user-based-on-url-entered/124194 "2007-12-26T14:10:47Z")

</div>

Let’s say a user entered this url into the browser: http://www.something.com/blarblar how do i redirect the user to the index/main page if i don’t have a blarblar controller? basically i want to check for invalid url…

---

## [NoMethodError in Auto adminController#index](https://www.ruby-forum.com/t/nomethoderror-in-auto-admincontroller-index/124206)

<div class="topic-metadata">

**Author:** [@sridhar](https://www.ruby-forum.com/u/sridhar)\
**Replies:** 0\
**Last updated:** [December 26, 2007, 1:50pm UTC](https://www.ruby-forum.com/t/nomethoderror-in-auto-admincontroller-index/124206 "2007-12-26T13:50:02Z")

</div>

I’m a pretty big newbie with ROR, but when following a tutorial I encounter an ugly error when building a scaffold. here is what am getting the error while trying to execute the applicaton… C:/InstantRails/ruby/lib/ru…

---

## [Ruby 1.9 / rails 2.0.2 problem](https://www.ruby-forum.com/t/ruby-1-9-rails-2-0-2-problem/124192)

<div class="topic-metadata">

**Author:** [@mokkai](https://www.ruby-forum.com/u/mokkai)\
**Replies:** 3\
**Last updated:** [December 26, 2007, 1:01pm UTC](https://www.ruby-forum.com/t/ruby-1-9-rails-2-0-2-problem/124192 "2007-12-26T13:01:02Z")

</div>

just now i installed ruby 1.9 and rails 2.0.2 on it when i create new rails application username@ubuntu7.04:~/project$ rails app can’t convert Enumerable::Enumerator into Array username@ubuntu7.04:~/project$ how to …

---

## [How to implement an edit action in a controller?](https://www.ruby-forum.com/t/how-to-implement-an-edit-action-in-a-controller/124180)

<div class="topic-metadata">

**Author:** [@suneeta](https://www.ruby-forum.com/u/suneeta)\
**Replies:** 13\
**Last updated:** [December 26, 2007, 12:00pm UTC](https://www.ruby-forum.com/t/how-to-implement-an-edit-action-in-a-controller/124180 "2007-12-26T12:00:43Z")

</div>

Hi… I’m trying to edit a field in a table named software\_cis. The name of the controller is ci\_controller and the action is give\_functional\_spec. In give\_functional\_spec.rhtml file I wrote the code for interface. Then …

---

## [How to Freeze gems?](https://www.ruby-forum.com/t/how-to-freeze-gems/124038)

<div class="topic-metadata">

**Author:** [@piyush\_r](https://www.ruby-forum.com/u/piyush_r)\
**Replies:** 2\
**Last updated:** [December 26, 2007, 10:05am UTC](https://www.ruby-forum.com/t/how-to-freeze-gems/124038 "2007-12-26T10:05:26Z")

</div>

Is there any way by which we can freeze gems in the same way we freeze rails version in the rails app itself ?

---

## [Difference between load and require](https://www.ruby-forum.com/t/difference-between-load-and-require/124187)

<div class="topic-metadata">

**Author:** [@ratnavel](https://www.ruby-forum.com/u/ratnavel)\
**Replies:** 2\
**Last updated:** [December 26, 2007, 9:45am UTC](https://www.ruby-forum.com/t/difference-between-load-and-require/124187 "2007-12-26T09:45:33Z")

</div>

Hi, Can any one explain me in clear, what is the difference between load and require. Thanks.

---

## [How to paginate an array of fetched results](https://www.ruby-forum.com/t/how-to-paginate-an-array-of-fetched-results/124069)

<div class="topic-metadata">

**Author:** [@ruchita](https://www.ruby-forum.com/u/ruchita)\
**Replies:** 3\
**Last updated:** [December 26, 2007, 8:53am UTC](https://www.ruby-forum.com/t/how-to-paginate-an-array-of-fetched-results/124069 "2007-12-26T08:53:06Z")

</div>

Hi all, I have implemented the searching and the results of searching are coming in an array @products \<\< lineitems. I want to paginate this array. Any help would be greatly appreciated. Thanks, Ruchita.

---

## [Complex Forms Misbehavior (possibly a Rails bug)](https://www.ruby-forum.com/t/complex-forms-misbehavior-possibly-a-rails-bug/124168)

<div class="topic-metadata">

**Author:** [@enduro](https://www.ruby-forum.com/u/enduro)\
**Replies:** 7\
**Last updated:** [December 26, 2007, 8:24am UTC](https://www.ruby-forum.com/t/complex-forms-misbehavior-possibly-a-rails-bug/124168 "2007-12-26T08:24:19Z")

</div>

Hi Leuddens This is a tricky and lengthy one that’s about to blow my current project to little glittering pieces :wink: I’m using select multiple in a subform (as described in Ryan’s excellent Complex Forms screencas…

---

## [Any special tutorial for rails 2.0.2](https://www.ruby-forum.com/t/any-special-tutorial-for-rails-2-0-2/124179)

<div class="topic-metadata">

**Author:** [@madhan](https://www.ruby-forum.com/u/madhan)\
**Replies:** 3\
**Last updated:** [December 26, 2007, 8:19am UTC](https://www.ruby-forum.com/t/any-special-tutorial-for-rails-2-0-2/124179 "2007-12-26T08:19:57Z")

</div>

hi all, since i have started to learn the rails just now, i got shocked after seeing the file extentions from .rhtml to .html.erb… when i started to learn the ROR, i used rails 1.2.6 then i thought of installing th…

---

## [Survey](https://www.ruby-forum.com/t/survey/124165)

<div class="topic-metadata">

**Author:** [@sandman](https://www.ruby-forum.com/u/sandman)\
**Replies:** 3\
**Last updated:** [December 26, 2007, 6:46am UTC](https://www.ruby-forum.com/t/survey/124165 "2007-12-26T06:46:10Z")

</div>

hi all, sorry for the previous blank post…it was posted accidently… I have to publish an online survey form which will target a global audience. I want to incorporate dynamic analysis of the survey results…in other …

---

## [Project Managment System](https://www.ruby-forum.com/t/project-managment-system/124177)

<div class="topic-metadata">

**Author:** [@song](https://www.ruby-forum.com/u/song)\
**Replies:** 0\
**Last updated:** [December 26, 2007, 5:46am UTC](https://www.ruby-forum.com/t/project-managment-system/124177 "2007-12-26T05:46:33Z")

</div>

Hello Everyone, I want development one process controls system by RoR. Support PSP process Support TSP process Support CMMI 3 process Support CMMI 5 process And the most import is that the 4 parts can keep independi…

---

## [If not text\_field, then what?](https://www.ruby-forum.com/t/if-not-text-field-then-what/124160)

<div class="topic-metadata">

**Author:** [@Thufir](https://www.ruby-forum.com/u/Thufir)\
**Replies:** 2\
**Last updated:** [December 26, 2007, 12:26am UTC](https://www.ruby-forum.com/t/if-not-text-field-then-what/124160 "2007-12-26T00:26:09Z")

</div>

I want the show.rhtml to generate a drop down list (I’ll deal with populating that list later). What’s the syntax please to generate a drop- down list? All code at: http://strawr.googlecode.com/svn/ Here’s what I …

---

## [\[ANN\] Ruport 1.4](https://www.ruby-forum.com/t/ann-ruport-1-4/124166)

<div class="topic-metadata">

**Author:** [@naething](https://www.ruby-forum.com/u/naething)\
**Replies:** 0\
**Last updated:** [December 25, 2007, 11:52pm UTC](https://www.ruby-forum.com/t/ann-ruport-1-4/124166 "2007-12-25T23:52:11Z")

</div>

Hi folks, Ruport 1.4 is now ready, so please try it out and let us know what you think. For those not familiar with Ruport, it is a business reporting toolset for Ruby. You can find more details on our website: htt…

---

## [Problems with forms and more models](https://www.ruby-forum.com/t/problems-with-forms-and-more-models/124093)

<div class="topic-metadata">

**Author:** [@stratboy](https://www.ruby-forum.com/u/stratboy)\
**Replies:** 1\
**Last updated:** [December 25, 2007, 11:29pm UTC](https://www.ruby-forum.com/t/problems-with-forms-and-more-models/124093 "2007-12-25T23:29:58Z")

</div>

class User \< Core has\_and\_belongs\_to\_many :regions end class Region \< ActiveRecord::Base has\_and\_belongs\_to\_many :users end I must to do a form with a multiple select to insert more regions for a user. i do so: …

---

## [How would you do a multitable cross reference select box in Rails?](https://www.ruby-forum.com/t/how-would-you-do-a-multitable-cross-reference-select-box-in-rails/124043)

<div class="topic-metadata">

**Author:** [@bsevans](https://www.ruby-forum.com/u/bsevans)\
**Replies:** 6\
**Last updated:** [December 25, 2007, 11:25pm UTC](https://www.ruby-forum.com/t/how-would-you-do-a-multitable-cross-reference-select-box-in-rails/124043 "2007-12-25T23:25:17Z")

</div>

I’ve done this in other languages, but how would you handle the following issue in Rails? Assume database tables a, b and c. Each table has id,name,text fields (and yes, there are reasons why they are separate tables…

---

## [Survey](https://www.ruby-forum.com/t/survey/124164)

<div class="topic-metadata">

**Author:** [@sandman](https://www.ruby-forum.com/u/sandman)\
**Replies:** 0\
**Last updated:** [December 25, 2007, 11:15pm UTC](https://www.ruby-forum.com/t/survey/124164 "2007-12-25T23:15:21Z")

</div>

– View this message in context: http://www.nabble.com/survey-tp14497860p14497860.html Sent from the RubyOnRails Users mailing list archive at Nabble.com.

---

## [NoMethodError in Messages and rescue\_from](https://www.ruby-forum.com/t/nomethoderror-in-messages-and-rescue-from/124155)

<div class="topic-metadata">

**Author:** [@jawosis](https://www.ruby-forum.com/u/jawosis)\
**Replies:** 2\
**Last updated:** [December 25, 2007, 8:38pm UTC](https://www.ruby-forum.com/t/nomethoderror-in-messages-and-rescue-from/124155 "2007-12-25T20:38:59Z")

</div>

I’am not able to catch ActionController::NoMethodError so I can display a own error message site. Can someone give me a peace of code to check it? How do you catch such errors and ActiveRecord:… error to display a ow…

---

## [Preserving upload directories on cap deployment](https://www.ruby-forum.com/t/preserving-upload-directories-on-cap-deployment/124130)

<div class="topic-metadata">

**Author:** [@chrisolsen](https://www.ruby-forum.com/u/chrisolsen)\
**Replies:** 2\
**Last updated:** [December 25, 2007, 8:12pm UTC](https://www.ruby-forum.com/t/preserving-upload-directories-on-cap-deployment/124130 "2007-12-25T20:12:03Z")

</div>

I am not totally sure how to do this. Obviously I would want to create some sym links to the directories outside the project, so where do you guys find the best place to place the folders is (ex. /project\_uploads/\[pr…

---

## [Free ruby on rails hosting](https://www.ruby-forum.com/t/free-ruby-on-rails-hosting/124148)

<div class="topic-metadata">

**Author:** [@shuaib85](https://www.ruby-forum.com/u/shuaib85)\
**Replies:** 3\
**Last updated:** [December 25, 2007, 7:29pm UTC](https://www.ruby-forum.com/t/free-ruby-on-rails-hosting/124148 "2007-12-25T19:29:47Z")

</div>

Hi people I am wondering if anyone is aware about any ruby on rails hosting for free. Even if it is limited for 15 days or one month. I want to test my application online. Thanks

---

## [Helper for root paths](https://www.ruby-forum.com/t/helper-for-root-paths/124128)

<div class="topic-metadata">

**Author:** [@jjkiesch](https://www.ruby-forum.com/u/jjkiesch)\
**Replies:** 2\
**Last updated:** [December 25, 2007, 6:01pm UTC](https://www.ruby-forum.com/t/helper-for-root-paths/124128 "2007-12-25T18:01:03Z")

</div>

i’m not sure what to do when my production environment is not in the root path of the domain when it comes to including things like flash files. when testing, everything works great, but since i don’t have a helper l…

---

## [File Upload](https://www.ruby-forum.com/t/file-upload/123538)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 5\
**Last updated:** [December 25, 2007, 4:41pm UTC](https://www.ruby-forum.com/t/file-upload/123538 "2007-12-25T16:41:50Z")

</div>

Hello all, Has anyone got some tips on validating files when uploaded? Validation in the model is a lot cleaner than in the controller and therefore I was hoping to retain this balance when uploading files. Has anyon…

---

## [Emacs and rails](https://www.ruby-forum.com/t/emacs-and-rails/123718)

<div class="topic-metadata">

**Author:** [@matthew](https://www.ruby-forum.com/u/matthew)\
**Replies:** 14\
**Last updated:** [December 25, 2007, 4:27pm UTC](https://www.ruby-forum.com/t/emacs-and-rails/123718 "2007-12-25T16:27:53Z")

</div>

Up until now, I’ve been using TextMate to develop my rails applications. However, I develop on a Linux box as well, and I want my development environment to be consistent over the two computers, my macbook and my linu…

---

## [Problem with Activerecord and relation has\_many belongs\_to](https://www.ruby-forum.com/t/problem-with-activerecord-and-relation-has-many-belongs-to/124145)

<div class="topic-metadata">

**Author:** [@Javier\_Q](https://www.ruby-forum.com/u/Javier_Q)\
**Replies:** 2\
**Last updated:** [December 25, 2007, 12:36pm UTC](https://www.ruby-forum.com/t/problem-with-activerecord-and-relation-has-many-belongs-to/124145 "2007-12-25T12:36:38Z")

</div>

Hi. I’m experiencing a little problem with ActiveRecord and relations. The idea is that I have a lfsearch model: class Lfsearch \< ActiveRecord::Base has\_many :lfresults end and a lfresult model: class Lfresult \< Ac…

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

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