# Rails

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

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

---

## [Rails production env routing issue](https://www.ruby-forum.com/t/rails-production-env-routing-issue/149095)

<div class="topic-metadata">

**Author:** [@neko](https://www.ruby-forum.com/u/neko)\
**Replies:** 1\
**Last updated:** [September 20, 2008, 11:51am UTC](https://www.ruby-forum.com/t/rails-production-env-routing-issue/149095 "2008-09-20T11:51:56Z")

</div>

I have an annoying problem when i start rails in production mode. Rails starts and is logging to the production log, however when i goto an invalid URL i get an routing error page instead of a 404. This happens with b…

---

## [Form\_for on a nested singleton](https://www.ruby-forum.com/t/form-for-on-a-nested-singleton/149094)

<div class="topic-metadata">

**Author:** [@snowbird122](https://www.ruby-forum.com/u/snowbird122)\
**Replies:** 0\
**Last updated:** [September 20, 2008, 9:03am UTC](https://www.ruby-forum.com/t/form-for-on-a-nested-singleton/149094 "2008-09-20T09:03:15Z")

</div>

Hello- I have a resource for Orders with a nested singleton for Address. I find that is I use the form\_for syntax like this: form\_for(\[@order, @address) I get an error that says: undefined method \`order\_addresses\_pa…

---

## [How do I call "super" if I over-ride a plugins method?](https://www.ruby-forum.com/t/how-do-i-call-super-if-i-over-ride-a-plugins-method/149091)

<div class="topic-metadata">

**Author:** [@greg](https://www.ruby-forum.com/u/greg)\
**Replies:** 1\
**Last updated:** [September 20, 2008, 8:53am UTC](https://www.ruby-forum.com/t/how-do-i-call-super-if-i-over-ride-a-plugins-method/149091 "2008-09-20T08:53:53Z")

</div>

Hi, I want to override a method in a plugin (which itself is a method that when the plugin loads adds them via a mixin technique). I want to add a blank copy of this method outside the plugin (say in /lib/xx\_extns.rb…

---

## [Simple\_captcha does not work in test environment](https://www.ruby-forum.com/t/simple-captcha-does-not-work-in-test-environment/149090)

<div class="topic-metadata">

**Author:** [@sadathiru](https://www.ruby-forum.com/u/sadathiru)\
**Replies:** 0\
**Last updated:** [September 20, 2008, 7:20am UTC](https://www.ruby-forum.com/t/simple-captcha-does-not-work-in-test-environment/149090 "2008-09-20T07:20:18Z")

</div>

Hi, I have been using simple\_captcha and it works fine and make myself happy. When I moved my app to test environment, It does not throwing message when the letters in the image does not match with the user entered t…

---

## [Paperclip vs. Attachment\_fu](https://www.ruby-forum.com/t/paperclip-vs-attachment-fu/148947)

<div class="topic-metadata">

**Author:** [@CPerry](https://www.ruby-forum.com/u/CPerry)\
**Replies:** 5\
**Last updated:** [September 20, 2008, 5:59am UTC](https://www.ruby-forum.com/t/paperclip-vs-attachment-fu/148947 "2008-09-20T05:59:39Z")

</div>

I am working on a Rails app that involves my users uploading used items for sale. When they upload an item, they will also be uploading a photo of that item (in the future, possibly multiple images). So, the image wil…

---

## [Saving to the database using link\_to\_remote?](https://www.ruby-forum.com/t/saving-to-the-database-using-link-to-remote/149071)

<div class="topic-metadata">

**Author:** [@david](https://www.ruby-forum.com/u/david)\
**Replies:** 7\
**Last updated:** [September 20, 2008, 5:03am UTC](https://www.ruby-forum.com/t/saving-to-the-database-using-link-to-remote/149071 "2008-09-20T05:03:33Z")

</div>

I am attempting to save a javascript array that has collected clicks from the user into the database using link\_to\_remote. I am new to ajax, so I do not know all the details but I have been told that in order to get …

---

## [RoR Application Web Template?](https://www.ruby-forum.com/t/ror-application-web-template/149063)

<div class="topic-metadata">

**Author:** [@risknet](https://www.ruby-forum.com/u/risknet)\
**Replies:** 6\
**Last updated:** [September 20, 2008, 4:05am UTC](https://www.ruby-forum.com/t/ror-application-web-template/149063 "2008-09-20T04:05:26Z")

</div>

Hello all, It looks like most of RoR web applications have the same look&feel, and I just wonder if there is any common web design template for RoR that I can use as I develop the application. I am not a web designer…

---

## [Rails 2.1.0 / RSpec 1.1.4 mismatch?](https://www.ruby-forum.com/t/rails-2-1-0-rspec-1-1-4-mismatch/149076)

<div class="topic-metadata">

**Author:** [@Hassan\_S](https://www.ruby-forum.com/u/Hassan_S)\
**Replies:** 0\
**Last updated:** [September 20, 2008, 1:40am UTC](https://www.ruby-forum.com/t/rails-2-1-0-rspec-1-1-4-mismatch/149076 "2008-09-20T01:40:58Z")

</div>

Trying to do a simple controller test with RSpec 1.1.4 on Rails 2.1.0 – it “should render index template” do do\_get response.should render\_template(‘index’) end :: results in a NoMethodError in ‘GroupsControlle…

---

## [Updating a Field in All Records of a Model, Efficiently?](https://www.ruby-forum.com/t/updating-a-field-in-all-records-of-a-model-efficiently/149067)

<div class="topic-metadata">

**Author:** [@JimCifarelli](https://www.ruby-forum.com/u/JimCifarelli)\
**Replies:** 2\
**Last updated:** [September 20, 2008, 1:09am UTC](https://www.ruby-forum.com/t/updating-a-field-in-all-records-of-a-model-efficiently/149067 "2008-09-20T01:09:58Z")

</div>

Hello Everyone, I have a Model for which there are many thousands (hundreds of thousands) of records. I’d like to update the value of one field for each record in a rake task. A ruby based function must be applied t…

---

## [Unpacked activerecord-oracle-adapter vs. system gem](https://www.ruby-forum.com/t/unpacked-activerecord-oracle-adapter-vs-system-gem/149069)

<div class="topic-metadata">

**Author:** [@Flinn](https://www.ruby-forum.com/u/Flinn)\
**Replies:** 0\
**Last updated:** [September 19, 2008, 11:32pm UTC](https://www.ruby-forum.com/t/unpacked-activerecord-oracle-adapter-vs-system-gem/149069 "2008-09-19T23:32:44Z")

</div>

I’m running into a problem using the oracle adapter when I have a newer unpacked gem in vendor/gems and an old gem on the system. It seems rails is failing with \*\* Starting Mongrel listening at 0.0.0.0:7654 \*\* Start…

---

## [When to add mongrel clusters](https://www.ruby-forum.com/t/when-to-add-mongrel-clusters/149059)

<div class="topic-metadata">

**Author:** [@morningovermidnight](https://www.ruby-forum.com/u/morningovermidnight)\
**Replies:** 1\
**Last updated:** [September 19, 2008, 11:05pm UTC](https://www.ruby-forum.com/t/when-to-add-mongrel-clusters/149059 "2008-09-19T23:05:13Z")

</div>

I am running a website right now on one mongrel. Things are going well at present, but of course I expect the site to grow and need to know when, how, and perhaps IF i need to add mongrel clusters. Isn’t adding mongre…

---

## [What's the loweset level between database and ruby](https://www.ruby-forum.com/t/whats-the-loweset-level-between-database-and-ruby/149015)

<div class="topic-metadata">

**Author:** [@maxbohr](https://www.ruby-forum.com/u/maxbohr)\
**Replies:** 3\
**Last updated:** [September 19, 2008, 10:21pm UTC](https://www.ruby-forum.com/t/whats-the-loweset-level-between-database-and-ruby/149015 "2008-09-19T22:21:15Z")

</div>

What’s the lowest abstraction barrier between the database and ruby? Where are the files with the instructions on translating ruby commands to actual database queries for the particular database you’ve set up? Thanks …

---

## [Attachment\_fu file perms](https://www.ruby-forum.com/t/attachment-fu-file-perms/149060)

<div class="topic-metadata">

**Author:** [@johnm1019](https://www.ruby-forum.com/u/johnm1019)\
**Replies:** 0\
**Last updated:** [September 19, 2008, 9:37pm UTC](https://www.ruby-forum.com/t/attachment-fu-file-perms/149060 "2008-09-19T21:37:16Z")

</div>

I have attachment\_fu running for some photos and have 2 nagging problems I can’t seem to resolve. I want to change the default file-mask attachment\_fu uses on all the files it generates (original and thumbs) and did…

---

## [0% experience](https://www.ruby-forum.com/t/0-experience/148909)

<div class="topic-metadata">

**Author:** [@cherrian\_harada](https://www.ruby-forum.com/u/cherrian_harada)\
**Replies:** 14\
**Last updated:** [September 19, 2008, 9:36pm UTC](https://www.ruby-forum.com/t/0-experience/148909 "2008-09-19T21:36:40Z")

</div>

Hi, I want to learn to use ROR but I have 0% experience. Do you think being a member of this group would help me? Thanks, Che

---

## [Unsubscribe](https://www.ruby-forum.com/t/unsubscribe/149058)

<div class="topic-metadata">

**Author:** [@Chris\_Thomas](https://www.ruby-forum.com/u/Chris_Thomas)\
**Replies:** 0\
**Last updated:** [September 19, 2008, 9:23pm UTC](https://www.ruby-forum.com/t/unsubscribe/149058 "2008-09-19T21:23:45Z")

</div>

unsubscribe

---

## [Validates\_uniqueness\_of: passing a method to :scope](https://www.ruby-forum.com/t/validates-uniqueness-of-passing-a-method-to-scope/149048)

<div class="topic-metadata">

**Author:** [@mdaoust](https://www.ruby-forum.com/u/mdaoust)\
**Replies:** 0\
**Last updated:** [September 19, 2008, 8:24pm UTC](https://www.ruby-forum.com/t/validates-uniqueness-of-passing-a-method-to-scope/149048 "2008-09-19T20:24:35Z")

</div>

I was wondering if anybody knows an easy way to pass a method name as the scope option to a validates\_uniqueness\_of validation on a AR model? For example, I have nested models a bit like: class Survey has\_many :areas …

---

## [Element belongs to Form](https://www.ruby-forum.com/t/element-belongs-to-form/148979)

<div class="topic-metadata">

**Author:** [@Commander\_J](https://www.ruby-forum.com/u/Commander_J)\
**Replies:** 2\
**Last updated:** [September 19, 2008, 7:38pm UTC](https://www.ruby-forum.com/t/element-belongs-to-form/148979 "2008-09-19T19:38:59Z")

</div>

Hi, You are welcome to comment on every aspect of this post – not just the core question at the bottom. My application renders forms previously stored in the database. A Form consists of Elements: t.references :f…

---

## [Error on RoR on Linux](https://www.ruby-forum.com/t/error-on-ror-on-linux/149014)

<div class="topic-metadata">

**Author:** [@Gig](https://www.ruby-forum.com/u/Gig)\
**Replies:** 3\
**Last updated:** [September 19, 2008, 6:09pm UTC](https://www.ruby-forum.com/t/error-on-ror-on-linux/149014 "2008-09-19T18:09:07Z")

</div>

Hi There, I have installed rails on my linux server. I want to write little apps or use stuff that is out there to improve our business flow. I have played a bit with php and can do some basic stuff on it. I bought th…

---

## [Freezing Rails to 2.0.2](https://www.ruby-forum.com/t/freezing-rails-to-2-0-2/149035)

<div class="topic-metadata">

**Author:** [@webreservoir](https://www.ruby-forum.com/u/webreservoir)\
**Replies:** 1\
**Last updated:** [September 19, 2008, 5:53pm UTC](https://www.ruby-forum.com/t/freezing-rails-to-2-0-2/149035 "2008-09-19T17:53:15Z")

</div>

Hi, I am using Rails 2.1.1 to stay in touch with the latest. I need to freeze the rails to version 2.0.2 for a project. But… The command in Rake tasks for Freeze allows only to freeze for the latest version I am usi…

---

## [Model newb qustion](https://www.ruby-forum.com/t/model-newb-qustion/149016)

<div class="topic-metadata">

**Author:** [@MCMCMC](https://www.ruby-forum.com/u/MCMCMC)\
**Replies:** 3\
**Last updated:** [September 19, 2008, 5:25pm UTC](https://www.ruby-forum.com/t/model-newb-qustion/149016 "2008-09-19T17:25:38Z")

</div>

Just started learning about Rails and I’m trying to figure modeling out in my head and I was hoping for some direction. Maybe I am thinking too much and have confused myself but I figure if I don’t get it right now it…

---

## [11 deleted messages in this conversation](https://www.ruby-forum.com/t/11-deleted-messages-in-this-conversation/149040)

<div class="topic-metadata">

**Author:** [@Commander\_J](https://www.ruby-forum.com/u/Commander_J)\
**Replies:** 0\
**Last updated:** [September 19, 2008, 4:56pm UTC](https://www.ruby-forum.com/t/11-deleted-messages-in-this-conversation/149040 "2008-09-19T16:56:48Z")

</div>

Hi, I’m using Gmail to follow the list. Way below in the conversation, I see this message: 11 deleted messages in this conversation. Any ideas why this is? Gmail does a good job in showing only the relevant message…

---

## [Naming the visitor's contact object (zena)](https://www.ruby-forum.com/t/naming-the-visitors-contact-object-zena/149028)

<div class="topic-metadata">

**Author:** [@gazoduc](https://www.ruby-forum.com/u/gazoduc)\
**Replies:** 1\
**Last updated:** [September 19, 2008, 4:55pm UTC](https://www.ruby-forum.com/t/naming-the-visitors-contact-object-zena/149028 "2008-09-19T16:55:38Z")

</div>

Hi there ! I’m working on a multi-site CMS (http://zenadmin.org). In this tool, a user can participate in many websites. In each of these websites, there is a Contact node (record) for this user. \[skip\] This record i…

---

## [Active Record 2.1.1- oci8 - Table Name Quoted](https://www.ruby-forum.com/t/active-record-2-1-1-oci8-table-name-quoted/148618)

<div class="topic-metadata">

**Author:** [@Scott\_Robertson](https://www.ruby-forum.com/u/Scott_Robertson)\
**Replies:** 2\
**Last updated:** [September 19, 2008, 4:36pm UTC](https://www.ruby-forum.com/t/active-record-2-1-1-oci8-table-name-quoted/148618 "2008-09-19T16:36:14Z")

</div>

The same code that worked with AR 2.1.0 now doesn’t work in 2.1.1. It seems like the table name is now being quoted which oci8 doesn’t like. In sqlplus quoting the table name causes the table name (“SCHEMA.table\_name…

---

## [Rounding Errors using GeoKit](https://www.ruby-forum.com/t/rounding-errors-using-geokit/149036)

<div class="topic-metadata">

**Author:** [@adam](https://www.ruby-forum.com/u/adam)\
**Replies:** 0\
**Last updated:** [September 19, 2008, 4:30pm UTC](https://www.ruby-forum.com/t/rounding-errors-using-geokit/149036 "2008-09-19T16:30:57Z")

</div>

Hi all, I’m trying to use the excellent GeoKit plugin to geocode addresses entered by users. I use GeoKit to get latitude and longitude values, then plot these using Google Maps. The problem I have is that the maps p…

---

## [Removing Specific ActiveRecord Errors](https://www.ruby-forum.com/t/removing-specific-activerecord-errors/104513)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 5\
**Last updated:** [September 19, 2008, 4:30pm UTC](https://www.ruby-forum.com/t/removing-specific-activerecord-errors/104513 "2008-09-19T16:30:23Z")

</div>

Is there a way to remove a specific error or errors on a specific attribute? I see there is a object.errors.clear, but that clears all the errors associated with the object. I would like to do something like object.…

---

## [ANNOUNCE: Roodi 1.3.0 - Automated ruby code checking](https://www.ruby-forum.com/t/announce-roodi-1-3-0-automated-ruby-code-checking/149034)

<div class="topic-metadata">

**Author:** [@marty](https://www.ruby-forum.com/u/marty)\
**Replies:** 0\
**Last updated:** [September 19, 2008, 4:30pm UTC](https://www.ruby-forum.com/t/announce-roodi-1-3-0-automated-ruby-code-checking/149034 "2008-09-19T16:30:22Z")

</div>

Hi all, Roodi (Ruby Object Oriented Design Inferometer) version 1.3.0 has been released. It parses your Ruby code and warns you about design issues you have based on the checks that is has configured. If you’ve ever …

---

## [Actionmailer](https://www.ruby-forum.com/t/actionmailer/149033)

<div class="topic-metadata">

**Author:** [@fRAnKEnSTEin](https://www.ruby-forum.com/u/fRAnKEnSTEin)\
**Replies:** 0\
**Last updated:** [September 19, 2008, 3:58pm UTC](https://www.ruby-forum.com/t/actionmailer/149033 "2008-09-19T15:58:38Z")

</div>

Hi, Do you know how to validate using actionmailer? I have read a lot of forums even here but no solution found. I need for example to validate that the subject is not blanck etc. It is posibble? Cheers

---

## [Need suggestions for caching strategy](https://www.ruby-forum.com/t/need-suggestions-for-caching-strategy/148997)

<div class="topic-metadata">

**Author:** [@rubynuby](https://www.ruby-forum.com/u/rubynuby)\
**Replies:** 1\
**Last updated:** [September 19, 2008, 3:46pm UTC](https://www.ruby-forum.com/t/need-suggestions-for-caching-strategy/148997 "2008-09-19T15:46:55Z")

</div>

I’m developing a content sharing site. (Closest analogy is something like docstoc.com.) I find that page caching isn’t practical since many things will change depending on whether the user is logged in or not. Exa…

---

## [How to add a root in to a namespace in routes.rb?](https://www.ruby-forum.com/t/how-to-add-a-root-in-to-a-namespace-in-routes-rb/149029)

<div class="topic-metadata">

**Author:** [@mokkai](https://www.ruby-forum.com/u/mokkai)\
**Replies:** 2\
**Last updated:** [September 19, 2008, 3:36pm UTC](https://www.ruby-forum.com/t/how-to-add-a-root-in-to-a-namespace-in-routes-rb/149029 "2008-09-19T15:36:17Z")

</div>

how to add a root in to a namespace in routes.rb ? we can add root in routes.rb like map.root :products suppose if it is a namespace then how to add root to it? map.namespace(:admin) do |admin| admin.root :products …

---

## [Downtown Atlanta - RoR Zealot - looking for peers to chat over beers](https://www.ruby-forum.com/t/downtown-atlanta-ror-zealot-looking-for-peers-to-chat-over-beers/149032)

<div class="topic-metadata">

**Author:** [@blasterpal](https://www.ruby-forum.com/u/blasterpal)\
**Replies:** 0\
**Last updated:** [September 19, 2008, 3:36pm UTC](https://www.ruby-forum.com/t/downtown-atlanta-ror-zealot-looking-for-peers-to-chat-over-beers/149032 "2008-09-19T15:36:15Z")

</div>

I live in downtown area. And I realize the Atlanta RUG has meetings, but I can’t always make them on Wed. evening if I have kid duty. Secondly, they are a little more formal that I was thinking. I’m looking to informa…

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

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