# Rails

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

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

---

## [SortHelper Problem with column name](https://www.ruby-forum.com/t/sorthelper-problem-with-column-name/87109)

<div class="topic-metadata">

**Author:** [@claudio](https://www.ruby-forum.com/u/claudio)\
**Replies:** 3\
**Last updated:** [February 28, 2007, 1:04pm UTC](https://www.ruby-forum.com/t/sorthelper-problem-with-column-name/87109 "2007-02-28T13:04:19Z")

</div>

In my newscontroller I have two lists category\_list and news\_list def category\_list sort\_init ‘name’ sort\_update end

---

## [Legacy fieldnames in model](https://www.ruby-forum.com/t/legacy-fieldnames-in-model/87084)

<div class="topic-metadata">

**Author:** [@shauna](https://www.ruby-forum.com/u/shauna)\
**Replies:** 4\
**Last updated:** [February 28, 2007, 12:51pm UTC](https://www.ruby-forum.com/t/legacy-fieldnames-in-model/87084 "2007-02-28T12:51:01Z")

</div>

If I were creating a Rails app from scratch I would use Rails’s naming conventions for fieldnames (such as first\_name). However, I am doing a prototype for a legacy app that has fieldnames like FirstName and for other…

---

## [Problem with assocations](https://www.ruby-forum.com/t/problem-with-assocations/86867)

<div class="topic-metadata">

**Author:** [@bodikp](https://www.ruby-forum.com/u/bodikp)\
**Replies:** 4\
**Last updated:** [February 28, 2007, 11:29am UTC](https://www.ruby-forum.com/t/problem-with-assocations/86867 "2007-02-28T11:29:52Z")

</div>

Hi there, We’re having some problems with some code in our Engine: This code, in our application’s (not the engine’s) user\_controller goes wrong: current\_company = current\_user.employees\[0\].company it raises an exce…

---

## [Connecting to postgres](https://www.ruby-forum.com/t/connecting-to-postgres/87087)

<div class="topic-metadata">

**Author:** [@georgeuoa](https://www.ruby-forum.com/u/georgeuoa)\
**Replies:** 8\
**Last updated:** [February 28, 2007, 11:15am UTC](https://www.ruby-forum.com/t/connecting-to-postgres/87087 "2007-02-28T11:15:50Z")

</div>

Hello everyone! Please forgive my ignorance, am pretty new to rails. Am creating an application on rails framework that will use a legacy postgres database with about 119 tables and 121 sequences that define the prim…

---

## [Showing errors for saves of 2 records](https://www.ruby-forum.com/t/showing-errors-for-saves-of-2-records/87107)

<div class="topic-metadata">

**Author:** [@GSGSGS](https://www.ruby-forum.com/u/GSGSGS)\
**Replies:** 0\
**Last updated:** [February 28, 2007, 8:59am UTC](https://www.ruby-forum.com/t/showing-errors-for-saves-of-2-records/87107 "2007-02-28T08:59:36Z")

</div>

I accept input for two related records from a user form and in my controller I do the following: Record1.transaction do Record1.save! Record2.save! end Record2 is related to record1, and can only be saved if Record…

---

## [Item\_class special?](https://www.ruby-forum.com/t/item-class-special/87104)

<div class="topic-metadata">

**Author:** [@yottameter](https://www.ruby-forum.com/u/yottameter)\
**Replies:** 0\
**Last updated:** [February 28, 2007, 8:12am UTC](https://www.ruby-forum.com/t/item-class-special/87104 "2007-02-28T08:12:33Z")

</div>

I have a link\_to using an extra option :item\_class. It doesn’t seem to work. When I change item\_class to anything else, it renders fine. I’m on rails 1.2.2. \<%= link\_to “New”, :action =\> ‘new’, :my\_class=\>‘wibble’ %\> …

---

## [Running rails 1.2.2 in \\vendor\\rails problems](https://www.ruby-forum.com/t/running-rails-1-2-2-in-vendor-rails-problems/84927)

<div class="topic-metadata">

**Author:** [@giantcranes](https://www.ruby-forum.com/u/giantcranes)\
**Replies:** 4\
**Last updated:** [February 28, 2007, 7:50am UTC](https://www.ruby-forum.com/t/running-rails-1-2-2-in-vendor-rails-problems/84927 "2007-02-28T07:50:32Z")

</div>

Hi, I am trying to move from gem rails to edge rails (well, 1.2.2 with a patch). I have been running gem rails 1.2.2 successfully. When I do a svn:externals to tag rel\_1-2-2 \[http://dev.rubyonrails.org/svn/rails/tags…

---

## [Search error on this site?](https://www.ruby-forum.com/t/search-error-on-this-site/87043)

<div class="topic-metadata">

**Author:** [@rubysharma](https://www.ruby-forum.com/u/rubysharma)\
**Replies:** 2\
**Last updated:** [February 28, 2007, 6:22am UTC](https://www.ruby-forum.com/t/search-error-on-this-site/87043 "2007-02-28T06:22:02Z")

</div>

Hi Admin, I just started to search for “flash\[:message\]” in the forums on the left hand side. But it results in application error. It seems some error in handling RoR code by RoR forum code. My intention was : any pr…

---

## [Hi guys problem with running gruff](https://www.ruby-forum.com/t/hi-guys-problem-with-running-gruff/87095)

<div class="topic-metadata">

**Author:** [@prem\_anand](https://www.ruby-forum.com/u/prem_anand)\
**Replies:** 1\
**Last updated:** [February 28, 2007, 5:48am UTC](https://www.ruby-forum.com/t/hi-guys-problem-with-running-gruff/87095 "2007-02-28T05:48:41Z")

</div>

Hi guys i am pretty much a newbie to rails and tried to install gruff and run the example given in home page for gruff i am using ubuntu and dapper. first i got two errors when i used this example #!/usr/bin/ruby r…

---

## [Rails 1.2 Bug (?): to\_text\_area\_tag](https://www.ruby-forum.com/t/rails-1-2-bug-to-text-area-tag/87099)

<div class="topic-metadata">

**Author:** [@Brendon\_Davidson](https://www.ruby-forum.com/u/Brendon_Davidson)\
**Replies:** 1\
**Last updated:** [February 28, 2007, 4:54am UTC](https://www.ruby-forum.com/t/rails-1-2-bug-to-text-area-tag/87099 "2007-02-28T04:54:09Z")

</div>

Hi all, I’m fairly new to rails and thus might be missing something here, but I think I have found a but in ActionPack. If this is not the right place to post this, please let me know where. I discovered this issue …

---

## [404 on Directory without forward slash](https://www.ruby-forum.com/t/404-on-directory-without-forward-slash/86818)

<div class="topic-metadata">

**Author:** [@xia](https://www.ruby-forum.com/u/xia)\
**Replies:** 2\
**Last updated:** [February 28, 2007, 3:43am UTC](https://www.ruby-forum.com/t/404-on-directory-without-forward-slash/86818 "2007-02-28T03:43:06Z")

</div>

Has anyone else encountered this problem? Railsplayground support are looking into it but don’t know how to fix it either just yet. Basically a directory sitting under public/ at public/my\_things/ is accessible via ht…

---

## [MD5 hash from crypt and openssl different?](https://www.ruby-forum.com/t/md5-hash-from-crypt-and-openssl-different/87096)

<div class="topic-metadata">

**Author:** [@eno](https://www.ruby-forum.com/u/eno)\
**Replies:** 0\
**Last updated:** [February 28, 2007, 3:37am UTC](https://www.ruby-forum.com/t/md5-hash-from-crypt-and-openssl-different/87096 "2007-02-28T03:37:09Z")

</div>

Im authenticating (system) users by making PAM use a MySQL database. This means Unix passwords are stored as MD5 crypted strings. I can use “openssl passwd -1” on the command-line to generate passwords and set them …

---

## [Creating multiple objects with one form](https://www.ruby-forum.com/t/creating-multiple-objects-with-one-form/86841)

<div class="topic-metadata">

**Author:** [@jko170](https://www.ruby-forum.com/u/jko170)\
**Replies:** 8\
**Last updated:** [February 28, 2007, 3:11am UTC](https://www.ruby-forum.com/t/creating-multiple-objects-with-one-form/86841 "2007-02-28T03:11:06Z")

</div>

How do you create multiple objects with one form? For example: \<% form\_for :user, :url =\> users\_path, :html =\> { :method =\> :post } do |f| %\> Name: \<%= f.text\_field :name %\> Number: \<%= f.text\_field …

---

## [Problem releated to Ruby activerecord](https://www.ruby-forum.com/t/problem-releated-to-ruby-activerecord/87090)

<div class="topic-metadata">

**Author:** [@karry](https://www.ruby-forum.com/u/karry)\
**Replies:** 0\
**Last updated:** [February 28, 2007, 2:51am UTC](https://www.ruby-forum.com/t/problem-releated-to-ruby-activerecord/87090 "2007-02-28T02:51:05Z")

</div>

Hello friends I have written a class in ruby which creates database table in mysql. I have given an option of overwriting the database table if it already exists. when i run the code it creates the table in the databa…

---

## [Problem releated to Ruby activerecord](https://www.ruby-forum.com/t/problem-releated-to-ruby-activerecord/102699)

<div class="topic-metadata">

**Author:** [@karry](https://www.ruby-forum.com/u/karry)\
**Replies:** 0\
**Last updated:** [February 28, 2007, 2:51am UTC](https://www.ruby-forum.com/t/problem-releated-to-ruby-activerecord/102699 "2007-02-28T02:51:05Z")

</div>

Hello friends I have written a class in ruby which creates database table in mysql. I have given an option of overwriting the database table if it already exists. when i run the code it creates the table in the databa…

---

## [Help and guidance](https://www.ruby-forum.com/t/help-and-guidance/87082)

<div class="topic-metadata">

**Author:** [@New2Ruby](https://www.ruby-forum.com/u/New2Ruby)\
**Replies:** 1\
**Last updated:** [February 28, 2007, 2:26am UTC](https://www.ruby-forum.com/t/help-and-guidance/87082 "2007-02-28T02:26:14Z")

</div>

We are trying to develop a website for a new idea of ours. We have been evaluating drupal and asp.net so far as a platform. And then we were referred to ruby on rails. I shall briefly highlight my background in progra…

---

## [Restful Rails DELETE Javascript Question](https://www.ruby-forum.com/t/restful-rails-delete-javascript-question/86902)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 8\
**Last updated:** [February 28, 2007, 2:26am UTC](https://www.ruby-forum.com/t/restful-rails-delete-javascript-question/86902 "2007-02-28T02:26:03Z")

</div>

Hi, Reading over the Restful Rails Development PDF and I had a couple of questions. On pg 13 it says that because DELETE isn’t supported by browsers, the DELETE is faked using client-side Javascript. This implies to…

---

## [Caboo.se Rails documentation project update](https://www.ruby-forum.com/t/caboo-se-rails-documentation-project-update/87086)

<div class="topic-metadata">

**Author:** [@Jeremy\_McAnally](https://www.ruby-forum.com/u/Jeremy_McAnally)\
**Replies:** 0\
**Last updated:** [February 28, 2007, 2:24am UTC](https://www.ruby-forum.com/t/caboo-se-rails-documentation-project-update/87086 "2007-02-28T02:24:03Z")

</div>

Since you guys are the ones who chipped in the money to pay for it, I thought you all might like to get an update on the caboose doc project. Jamie van Dyke (fearoffish) and I have been selected as authors for the AP…

---

## [Call RJS from Another Folder](https://www.ruby-forum.com/t/call-rjs-from-another-folder/87056)

<div class="topic-metadata">

**Author:** [@guest](https://www.ruby-forum.com/u/guest)\
**Replies:** 1\
**Last updated:** [February 28, 2007, 2:14am UTC](https://www.ruby-forum.com/t/call-rjs-from-another-folder/87056 "2007-02-28T02:14:01Z")

</div>

Does anyone know how to call an RJS template from a controller in one directory, where the RJS template lives somewhere else? For example my controller is /controllers/people\_controller.rb, and my template lives in /v…

---

## [Please consider: Session handling too cumbersome and not DRY](https://www.ruby-forum.com/t/please-consider-session-handling-too-cumbersome-and-not-dry/87073)

<div class="topic-metadata">

**Author:** [@mrstudiocat](https://www.ruby-forum.com/u/mrstudiocat)\
**Replies:** 1\
**Last updated:** [February 28, 2007, 1:02am UTC](https://www.ruby-forum.com/t/please-consider-session-handling-too-cumbersome-and-not-dry/87073 "2007-02-28T01:02:55Z")

</div>

Session handling is a bit too cumbersome for my taste in Rails. It seems to go against the DRY spirit of Rails. Using sessions feels like being back in the PHP world or in some other lesser system. So what would you t…

---

## [Rails is secure](https://www.ruby-forum.com/t/rails-is-secure/87079)

<div class="topic-metadata">

**Author:** [@HSWebers](https://www.ruby-forum.com/u/HSWebers)\
**Replies:** 1\
**Last updated:** [February 28, 2007, 1:01am UTC](https://www.ruby-forum.com/t/rails-is-secure/87079 "2007-02-28T01:01:55Z")

</div>

Hi! I think many of us share the perception of Rails being a “secure” framework. And that might well be true, because we need less code to get things done and less code means a better overview of what’s happening. …

---

## [Change default validation error messages](https://www.ruby-forum.com/t/change-default-validation-error-messages/86962)

<div class="topic-metadata">

**Author:** [@Diego](https://www.ruby-forum.com/u/Diego)\
**Replies:** 4\
**Last updated:** [February 28, 2007, 12:52am UTC](https://www.ruby-forum.com/t/change-default-validation-error-messages/86962 "2007-02-28T00:52:55Z")

</div>

Hi all, I was wondering if it was possible to globally change the Rails validation error messages? For example, when I enter a blank field I get the message: “Caption can’t be blank” I’d like for blank fields to sho…

---

## [Get name of nesting controller in route](https://www.ruby-forum.com/t/get-name-of-nesting-controller-in-route/87083)

<div class="topic-metadata">

**Author:** [@werdnativ](https://www.ruby-forum.com/u/werdnativ)\
**Replies:** 0\
**Last updated:** [February 28, 2007, 12:51am UTC](https://www.ruby-forum.com/t/get-name-of-nesting-controller-in-route/87083 "2007-02-28T00:51:54Z")

</div>

If I have nested resources: map.resources ‘projects’ do |project| project.resources ‘members’ end When I send a request to /projects/1/members/, I can find my controller name in my helper by calling: controller.con…

---

## [Rails is secure](https://www.ruby-forum.com/t/rails-is-secure/87078)

<div class="topic-metadata">

**Author:** [@hawe](https://www.ruby-forum.com/u/hawe)\
**Replies:** 0\
**Last updated:** [February 28, 2007, 12:38am UTC](https://www.ruby-forum.com/t/rails-is-secure/87078 "2007-02-28T00:38:54Z")

</div>

Hi! I think many of us share the perception of Rails being a “secure” framework. And that might well be true, because we need less code to get things done and less code means a better overview of what’s happening. …

---

## [File browser](https://www.ruby-forum.com/t/file-browser/87074)

<div class="topic-metadata">

**Author:** [@jney](https://www.ruby-forum.com/u/jney)\
**Replies:** 0\
**Last updated:** [February 28, 2007, 12:16am UTC](https://www.ruby-forum.com/t/file-browser/87074 "2007-02-28T00:16:52Z")

</div>

how to open a file browser without using \<%= file\_field\_tag ‘file’ %\>.? for example by clicking on a div. Regards.

---

## [\[newbie\] rails and rjs](https://www.ruby-forum.com/t/newbie-rails-and-rjs/87068)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [February 27, 2007, 11:12pm UTC](https://www.ruby-forum.com/t/newbie-rails-and-rjs/87068 "2007-02-27T23:12:43Z")

</div>

I am writing an application that is making use of RJS Template. I am using 'page.form.reset ’ to clear the form but it does not seem to set the focus back on the first element in the form. Do I need to execute somethi…

---

## [Supporting multiple customers in a single rails app](https://www.ruby-forum.com/t/supporting-multiple-customers-in-a-single-rails-app/87034)

<div class="topic-metadata">

**Author:** [@chet](https://www.ruby-forum.com/u/chet)\
**Replies:** 4\
**Last updated:** [February 27, 2007, 10:58pm UTC](https://www.ruby-forum.com/t/supporting-multiple-customers-in-a-single-rails-app/87034 "2007-02-27T22:58:42Z")

</div>

Here is what we are trying to do - The idea is to allow different companies to access the same rails application as their own personalized application. The only change in the app per company is the title of the page, …

---

## [Restful\_authentication --need a little help](https://www.ruby-forum.com/t/restful-authentication-need-a-little-help/87059)

<div class="topic-metadata">

**Author:** [@eblatt](https://www.ruby-forum.com/u/eblatt)\
**Replies:** 1\
**Last updated:** [February 27, 2007, 10:51pm UTC](https://www.ruby-forum.com/t/restful-authentication-need-a-little-help/87059 "2007-02-27T22:51:18Z")

</div>

Hello, I’ve adapted an successfully adapted an example from ‘Rails Cookbook’ (6.1) as a means of experiment with the ‘restful\_authentication’ from http://agilewebdevelopment.com/plugins/restful\_authentication Here ar…

---

## [Column name becames invalid after LEFT join](https://www.ruby-forum.com/t/column-name-becames-invalid-after-left-join/86925)

<div class="topic-metadata">

**Author:** [@sneptune](https://www.ruby-forum.com/u/sneptune)\
**Replies:** 2\
**Last updated:** [February 27, 2007, 10:36pm UTC](https://www.ruby-forum.com/t/column-name-becames-invalid-after-left-join/86925 "2007-02-27T22:36:07Z")

</div>

Hi, I was adding a new relationship to my database tables. Basically, previously an application has many hosts, so the paginate statement would be like this when I am listing hosts for abc application: @hosts\_pages,…

---

## [Mongrel woes](https://www.ruby-forum.com/t/mongrel-woes/86877)

<div class="topic-metadata">

**Author:** [@oliver](https://www.ruby-forum.com/u/oliver)\
**Replies:** 2\
**Last updated:** [February 27, 2007, 10:25pm UTC](https://www.ruby-forum.com/t/mongrel-woes/86877 "2007-02-27T22:25:39Z")

</div>

hi, I have a rail app running in development mode, and I usually start it by “mongrel\_rails start” in the development directory. It always run ok when I first start it or even many hours after that. However, the next…

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

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