# Rails

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

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

---

## [Installing http\_authentication plugin leaves out lib directo](https://www.ruby-forum.com/t/installing-http-authentication-plugin-leaves-out-lib-directo/103423)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [May 5, 2007, 7:23pm UTC](https://www.ruby-forum.com/t/installing-http-authentication-plugin-leaves-out-lib-directo/103423 "2007-05-05T19:23:12Z")

</div>

When I install the http\_authentication plugin thusly: $ script/plugin -v install http://svn.rubyonrails.org/rails/plugins/http\_authentication/ Plugins will be installed using http fetching from ‘http://svn.rubyonrai…

---

## [Recommended way to deploy rails project](https://www.ruby-forum.com/t/recommended-way-to-deploy-rails-project/103416)

<div class="topic-metadata">

**Author:** [@jawosis](https://www.ruby-forum.com/u/jawosis)\
**Replies:** 1\
**Last updated:** [May 5, 2007, 6:37pm UTC](https://www.ruby-forum.com/t/recommended-way-to-deploy-rails-project/103416 "2007-05-05T18:37:07Z")

</div>

I developed an rails application under mac os x tiger and now I want’t to run on my debian etch webserver. On my tiger i use webrick and mongrel to test it - my etch box runs apache2.2 as reverse proxy with mongrel. w…

---

## [Simple File Upload is Failing - String vs File](https://www.ruby-forum.com/t/simple-file-upload-is-failing-string-vs-file/103408)

<div class="topic-metadata">

**Author:** [@vanik](https://www.ruby-forum.com/u/vanik)\
**Replies:** 3\
**Last updated:** [May 5, 2007, 6:08pm UTC](https://www.ruby-forum.com/t/simple-file-upload-is-failing-string-vs-file/103408 "2007-05-05T18:08:06Z")

</div>

Hi Everyone, Every time I think I'm "getting" RoR something trivial kicks my butt. All I am trying to do is upload text files for processing. I’ve stripped everything out of my code in order to troubleshoot this an…

---

## [No route found to match "/" with {:method=\>:get}](https://www.ruby-forum.com/t/no-route-found-to-match-with-method-get/103414)

<div class="topic-metadata">

**Author:** [@Jay\_Fallon](https://www.ruby-forum.com/u/Jay_Fallon)\
**Replies:** 0\
**Last updated:** [May 5, 2007, 5:20pm UTC](https://www.ruby-forum.com/t/no-route-found-to-match-with-method-get/103414 "2007-05-05T17:20:59Z")

</div>

Running my app with mongrel, all I get is this message: no route found to match “/” with {:method=\>:get} I’ve found a lot of talk around this (Rails 1.1 vs 1.2) but no solution. Is there an easy fix for this issue? T…

---

## [REXML and XPath](https://www.ruby-forum.com/t/rexml-and-xpath/103360)

<div class="topic-metadata">

**Author:** [@fipa](https://www.ruby-forum.com/u/fipa)\
**Replies:** 2\
**Last updated:** [May 5, 2007, 5:13pm UTC](https://www.ruby-forum.com/t/rexml-and-xpath/103360 "2007-05-05T17:13:58Z")

</div>

Hi. I’m working with XML and REXML and I could use some help in two particular issues: First, I want to display a REXML::Document object. I’m creating the object from a string that contains a valid xml, something like…

---

## [Integration with movtable](https://www.ruby-forum.com/t/integration-with-movtable/103407)

<div class="topic-metadata">

**Author:** [@kturner](https://www.ruby-forum.com/u/kturner)\
**Replies:** 0\
**Last updated:** [May 5, 2007, 3:17pm UTC](https://www.ruby-forum.com/t/integration-with-movtable/103407 "2007-05-05T15:17:31Z")

</div>

Hi, I’m trying to integrate movtable to display some data. The file that lists out the partials to display the data looks like this: Movtable - List \<%= stylesheet\_link\_tag 'movtable' %\> \<%= sort\_…

---

## [Scaffold skip "xxx\_id" column in table?](https://www.ruby-forum.com/t/scaffold-skip-xxx-id-column-in-table/103234)

<div class="topic-metadata">

**Author:** [@anakintang](https://www.ruby-forum.com/u/anakintang)\
**Replies:** 1\
**Last updated:** [May 5, 2007, 11:56am UTC](https://www.ruby-forum.com/t/scaffold-skip-xxx-id-column-in-table/103234 "2007-05-05T11:56:35Z")

</div>

All, I have a schema which contains two columns called “category\_id” and “data\_id”, and “category” and “data” are two other different tables in the same database. When I use “Scaffold” to generate the view and contro…

---

## [Iterating over a params hash](https://www.ruby-forum.com/t/iterating-over-a-params-hash/89236)

<div class="topic-metadata">

**Author:** [@taylorstrait](https://www.ruby-forum.com/u/taylorstrait)\
**Replies:** 3\
**Last updated:** [May 5, 2007, 10:54am UTC](https://www.ruby-forum.com/t/iterating-over-a-params-hash/89236 "2007-05-05T10:54:31Z")

</div>

I need to iterate over a params hash to upload multiple pictures at once. My example only has one file for clarity. Any help would be appreciated. Hash from form: {“commit”=\>“Add”, “picture”=\>{“1”=\>{“title”=\>“dsfsd…

---

## [To\_time "time out of range"](https://www.ruby-forum.com/t/to-time-time-out-of-range/103400)

<div class="topic-metadata">

**Author:** [@andrew](https://www.ruby-forum.com/u/andrew)\
**Replies:** 0\
**Last updated:** [May 5, 2007, 7:53am UTC](https://www.ruby-forum.com/t/to-time-time-out-of-range/103400 "2007-05-05T07:53:01Z")

</div>

Hello, I’m experiencing some inconsistent results between code I run in the console and in my test/project code. On the console this works… Date.new(1899, 12, 25).to\_time =\> Fri Dec 13 14:45:52 CST 1901 Date.ne…

---

## [Clone ActiveRecords](https://www.ruby-forum.com/t/clone-activerecords/103243)

<div class="topic-metadata">

**Author:** [@edmoss](https://www.ruby-forum.com/u/edmoss)\
**Replies:** 1\
**Last updated:** [May 5, 2007, 4:33am UTC](https://www.ruby-forum.com/t/clone-activerecords/103243 "2007-05-05T04:33:12Z")

</div>

I am using the Marshal module to create a deep clone of an ActiveRecord object hierarchy… i.e. an object that has\_many children, which at their turn may have many children, etc. In model file of the root object I have…

---

## [Testing routes and controller results](https://www.ruby-forum.com/t/testing-routes-and-controller-results/103396)

<div class="topic-metadata">

**Author:** [@magic\_hat](https://www.ruby-forum.com/u/magic_hat)\
**Replies:** 0\
**Last updated:** [May 5, 2007, 3:59am UTC](https://www.ruby-forum.com/t/testing-routes-and-controller-results/103396 "2007-05-05T03:59:10Z")

</div>

I’m trying to write a functional test that generates a route and then follows that route to the controller and confirms that the appropriate record is retrieved. I’m getting some unexpected errors — I know the route w…

---

## [Limit number of results from dynamic finders](https://www.ruby-forum.com/t/limit-number-of-results-from-dynamic-finders/103392)

<div class="topic-metadata">

**Author:** [@ehudros](https://www.ruby-forum.com/u/ehudros)\
**Replies:** 0\
**Last updated:** [May 5, 2007, 1:53am UTC](https://www.ruby-forum.com/t/limit-number-of-results-from-dynamic-finders/103392 "2007-05-05T01:53:54Z")

</div>

Hi everyone, I’m looking for a way to limit the number of results returned by the select genereted when I use the following syntax: User.posts.each { |post| … } I’m not sure those are dynamic finders per se, but I’m …

---

## [Observers dont work](https://www.ruby-forum.com/t/observers-dont-work/103386)

<div class="topic-metadata">

**Author:** [@benjohnson](https://www.ruby-forum.com/u/benjohnson)\
**Replies:** 1\
**Last updated:** [May 5, 2007, 1:27am UTC](https://www.ruby-forum.com/t/observers-dont-work/103386 "2007-05-05T01:27:01Z")

</div>

I have this: class UserObserver \< ActiveRecord::Observer def before\_save(user) raise “wtf” end end I resarted my web server (mongrel) and everything. When I save a user object I don’t get an error at all, it works…

---

## [Refresh a partial](https://www.ruby-forum.com/t/refresh-a-partial/103370)

<div class="topic-metadata">

**Author:** [@adi](https://www.ruby-forum.com/u/adi)\
**Replies:** 1\
**Last updated:** [May 4, 2007, 10:45pm UTC](https://www.ruby-forum.com/t/refresh-a-partial/103370 "2007-05-04T22:45:10Z")

</div>

I have a partial that display me some informations from database When i delete an entry i wan’t to refresh the partial that updates to page too wihtout the deleted item. How can i refresh a partial?

---

## [Custom view through render :inline?](https://www.ruby-forum.com/t/custom-view-through-render-inline/103384)

<div class="topic-metadata">

**Author:** [@AndyV](https://www.ruby-forum.com/u/AndyV)\
**Replies:** 0\
**Last updated:** [May 4, 2007, 10:44pm UTC](https://www.ruby-forum.com/t/custom-view-through-render-inline/103384 "2007-05-04T22:44:49Z")

</div>

Looking for some feedback on this. In the legacy app that I’m moving to Rails we’ve treated customers a bit like “Wheel of Fortune” – you can enter data in a format that matches your paperwork but once it’s in our sy…

---

## [Problem with ActionMailer](https://www.ruby-forum.com/t/problem-with-actionmailer/103379)

<div class="topic-metadata">

**Author:** [@kiran](https://www.ruby-forum.com/u/kiran)\
**Replies:** 0\
**Last updated:** [May 4, 2007, 10:28pm UTC](https://www.ruby-forum.com/t/problem-with-actionmailer/103379 "2007-05-04T22:28:02Z")

</div>

Hi, after installing actionmailer it ran well and i was able to send mail. but after restart its giving the following error: NameError in TestController#sendemail uninitialized constant ActionMailer RAILS\_ROOT: ./sc…

---

## [RailsConf Birds of a Feather sessions announced](https://www.ruby-forum.com/t/railsconf-birds-of-a-feather-sessions-announced/103377)

<div class="topic-metadata">

**Author:** [@Jeremy\_McAnally](https://www.ruby-forum.com/u/Jeremy_McAnally)\
**Replies:** 0\
**Last updated:** [May 4, 2007, 9:42pm UTC](https://www.ruby-forum.com/t/railsconf-birds-of-a-feather-sessions-announced/103377 "2007-05-04T21:42:43Z")

</div>

Hello all, The Birds of a Feather sessions for RailsConf (or at least some of them) have been announced, and can be viewed at: The session I’m guiding will be aimed at those who write books, blogs, or other informa…

---

## [ActionWebService dispatch problem](https://www.ruby-forum.com/t/actionwebservice-dispatch-problem/103373)

<div class="topic-metadata">

**Author:** [@wintermute](https://www.ruby-forum.com/u/wintermute)\
**Replies:** 0\
**Last updated:** [May 4, 2007, 9:06pm UTC](https://www.ruby-forum.com/t/actionwebservice-dispatch-problem/103373 "2007-05-04T21:06:38Z")

</div>

Hello, I am having a problem with an extremely simple web service using ActionWebService. This is basically ‘Hello World’ type of web service: data\_loader\_api.rb: class DataLoaderApi \< ActionWebService::API::Base …

---

## [MVC design question](https://www.ruby-forum.com/t/mvc-design-question/103328)

<div class="topic-metadata">

**Author:** [@mlangenberg](https://www.ruby-forum.com/u/mlangenberg)\
**Replies:** 3\
**Last updated:** [May 4, 2007, 8:29pm UTC](https://www.ruby-forum.com/t/mvc-design-question/103328 "2007-05-04T20:29:35Z")

</div>

How much business logic is actually allowed in a (Rails) controller? In the attachement I’ve put down three different approaches to the same problem. Which if the three approaches is preferable? Calling Payment.crea…

---

## [How to mark all checkboxes](https://www.ruby-forum.com/t/how-to-mark-all-checkboxes/103368)

<div class="topic-metadata">

**Author:** [@Cassiano\_R](https://www.ruby-forum.com/u/Cassiano_R)\
**Replies:** 1\
**Last updated:** [May 4, 2007, 8:25pm UTC](https://www.ruby-forum.com/t/how-to-mark-all-checkboxes/103368 "2007-05-04T20:25:35Z")

</div>

I have a list of checkbox… and I want the first check do “check all / none” \[ \] click to check ALL answers \[x\] blabla \[x\] blabla \[x\] blabla \[x\] blabla How I can do that? thanks.

---

## [Habtm and also has\_many of the same things](https://www.ruby-forum.com/t/habtm-and-also-has-many-of-the-same-things/103362)

<div class="topic-metadata">

**Author:** [@sbeam](https://www.ruby-forum.com/u/sbeam)\
**Replies:** 1\
**Last updated:** [May 4, 2007, 7:52pm UTC](https://www.ruby-forum.com/t/habtm-and-also-has-many-of-the-same-things/103362 "2007-05-04T19:52:33Z")

</div>

Hi, our app is a situation where users can upload files and also mark files uploaded by other users as their favorites. So for the favorites we are using a simple many-to-many with a tie table. So in attempting that …

---

## [Simple attribute copy](https://www.ruby-forum.com/t/simple-attribute-copy/92939)

<div class="topic-metadata">

**Author:** [@Sarah\_Jackson](https://www.ruby-forum.com/u/Sarah_Jackson)\
**Replies:** 2\
**Last updated:** [May 4, 2007, 7:14pm UTC](https://www.ruby-forum.com/t/simple-attribute-copy/92939 "2007-05-04T19:14:03Z")

</div>

Lol don’t ask why but I would like to use to code I found on the forum to copy two values from table A to table B. It looks a bit roundabout but it doesn’t matter to me. Okay so I know that this part goes in the cont…

---

## [Text Column Doesn't Exist?](https://www.ruby-forum.com/t/text-column-doesnt-exist/103266)

<div class="topic-metadata">

**Author:** [@wickie](https://www.ruby-forum.com/u/wickie)\
**Replies:** 3\
**Last updated:** [May 4, 2007, 6:38pm UTC](https://www.ruby-forum.com/t/text-column-doesnt-exist/103266 "2007-05-04T18:38:40Z")

</div>

I have a RoR app that I’m trying to move into production. I’ve built it on my local server, and I’m moving it to an ISP that supports Ruby on Rails. I’m guessing there’s a problem with the version of RoR that they pro…

---

## [Observe\_field and update](https://www.ruby-forum.com/t/observe-field-and-update/103351)

<div class="topic-metadata">

**Author:** [@jimache](https://www.ruby-forum.com/u/jimache)\
**Replies:** 2\
**Last updated:** [May 4, 2007, 6:35pm UTC](https://www.ruby-forum.com/t/observe-field-and-update/103351 "2007-05-04T18:35:00Z")

</div>

Hi everyone, I have a select box with an observe field; i update another select box on first ones change. Is there a way to update more than one select box on change. I need to update 2 select boxes based on the selec…

---

## [Database Sessions with Oracle 10g Problem](https://www.ruby-forum.com/t/database-sessions-with-oracle-10g-problem/103316)

<div class="topic-metadata">

**Author:** [@SteveG](https://www.ruby-forum.com/u/SteveG)\
**Replies:** 1\
**Last updated:** [May 4, 2007, 6:20pm UTC](https://www.ruby-forum.com/t/database-sessions-with-oracle-10g-problem/103316 "2007-05-04T18:20:00Z")

</div>

Hello all, I changed the app to use the active\_record\_store for sessions. This worked fine in my Windows development environment. Then I moved the app over to the Linux Dev environment and now I am seeing oracle ORA-…

---

## [Rails Newbie | Advice please?](https://www.ruby-forum.com/t/rails-newbie-advice-please/103321)

<div class="topic-metadata">

**Author:** [@YoungSun](https://www.ruby-forum.com/u/YoungSun)\
**Replies:** 3\
**Last updated:** [May 4, 2007, 5:51pm UTC](https://www.ruby-forum.com/t/rails-newbie-advice-please/103321 "2007-05-04T17:51:57Z")

</div>

Hi Guys… I am looking to create a Rails app for a Property Company that will allow for the administration of property, adding, editing, deleting etc… That will tie in with a CRM database so that information can be c…

---

## [Error in fastcgi.crash.log](https://www.ruby-forum.com/t/error-in-fastcgi-crash-log/103359)

<div class="topic-metadata">

**Author:** [@alfredogz](https://www.ruby-forum.com/u/alfredogz)\
**Replies:** 0\
**Last updated:** [May 4, 2007, 5:50pm UTC](https://www.ruby-forum.com/t/error-in-fastcgi-crash-log/103359 "2007-05-04T17:50:23Z")

</div>

hello friends, when i start my application i get: Rails application failed to start properly when i see the astcgi.crash.log file i get this: \[04/May/2007:10:27:56 :: 4809\] Dispatcher failed to catch: You have a nil…

---

## [Cartographer/google maps and apache2/mongrel problem](https://www.ruby-forum.com/t/cartographer-google-maps-and-apache2-mongrel-problem/103305)

<div class="topic-metadata">

**Author:** [@paul-au](https://www.ruby-forum.com/u/paul-au)\
**Replies:** 1\
**Last updated:** [May 4, 2007, 5:28pm UTC](https://www.ruby-forum.com/t/cartographer-google-maps-and-apache2-mongrel-problem/103305 "2007-05-04T17:28:55Z")

</div>

Hi, I’m trying to make cartographer/google maps work with an apache2/ mongrel setup. It works fine with lighttpd/fastcgi, however maps don’t render with the above setup. I was wondering if anyone had any success try…

---

## [Mailer class error](https://www.ruby-forum.com/t/mailer-class-error/103355)

<div class="topic-metadata">

**Author:** [@BensPop](https://www.ruby-forum.com/u/BensPop)\
**Replies:** 0\
**Last updated:** [May 4, 2007, 5:05pm UTC](https://www.ruby-forum.com/t/mailer-class-error/103355 "2007-05-04T17:05:52Z")

</div>

I created a helper method in a file called mailer\_helper.rb that I want to use in my mailer class. I included the helper using this statement: helper :mailer even after including this I get this error: undefined loc…

---

## [Validation on different actions](https://www.ruby-forum.com/t/validation-on-different-actions/103344)

<div class="topic-metadata">

**Author:** [@John\_McAuley](https://www.ruby-forum.com/u/John_McAuley)\
**Replies:** 1\
**Last updated:** [May 4, 2007, 4:35pm UTC](https://www.ruby-forum.com/t/validation-on-different-actions/103344 "2007-05-04T16:35:50Z")

</div>

Hello Everyone, I have a User model which uses validation helpers as follows: Model User validates\_presence\_of :name, :email validates\_presence\_of :password, :password\_confirmation, When the user is created by the a…

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

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