# Rails

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

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

---

## [Find city, state from supplied ZIP Code](https://www.ruby-forum.com/t/find-city-state-from-supplied-zip-code/126885)

<div class="topic-metadata">

**Author:** [@jeff](https://www.ruby-forum.com/u/jeff)\
**Replies:** 3\
**Last updated:** [February 8, 2008, 2:04am UTC](https://www.ruby-forum.com/t/find-city-state-from-supplied-zip-code/126885 "2008-02-08T02:04:11Z")

</div>

Is there a simple solution available that would allow me to take a ZIP Code from a user and then populate City and State fields based on that ZIP? Any kind of a plugin, for example?

---

## [Restful\_authentication with --stateful option](https://www.ruby-forum.com/t/restful-authentication-with-stateful-option/128339)

<div class="topic-metadata">

**Author:** [@bruz](https://www.ruby-forum.com/u/bruz)\
**Replies:** 3\
**Last updated:** [February 8, 2008, 2:01am UTC](https://www.ruby-forum.com/t/restful-authentication-with-stateful-option/128339 "2008-02-08T02:01:38Z")

</div>

I’ve been using restful\_authentication for several months, and noticed there have been some security fixes so I figured it was time to upgrade. I ran into an error, and thought it might have been specific to the app I…

---

## [Rake fails with syntax error](https://www.ruby-forum.com/t/rake-fails-with-syntax-error/128484)

<div class="topic-metadata">

**Author:** [@Thufir](https://www.ruby-forum.com/u/Thufir)\
**Replies:** 4\
**Last updated:** [February 8, 2008, 1:39am UTC](https://www.ruby-forum.com/t/rake-fails-with-syntax-error/128484 "2008-02-08T01:39:57Z")

</div>

I’m trying to import csv data as per http://www.jobwd.com/article/show/5 but can’t quite get the syntax: thufir@arrakis ~/goodfellow-tool/db $ thufir@arrakis ~/goodfellow-tool/db $ rake (in /home/thufir/goodfellow-t…

---

## [Object Level Transactions](https://www.ruby-forum.com/t/object-level-transactions/128093)

<div class="topic-metadata">

**Author:** [@startrader](https://www.ruby-forum.com/u/startrader)\
**Replies:** 6\
**Last updated:** [February 8, 2008, 1:36am UTC](https://www.ruby-forum.com/t/object-level-transactions/128093 "2008-02-08T01:36:53Z")

</div>

In the README file of the ActiveRecord docs (http://api.rubyonrails.com/files/vendor/rails/activerecord/README.html) it says: Transaction support on both a database and object level. The latter is implemented by usin…

---

## [ROR supports Enterprise Application?](https://www.ruby-forum.com/t/ror-supports-enterprise-application/128264)

<div class="topic-metadata">

**Author:** [@ayyanar](https://www.ruby-forum.com/u/ayyanar)\
**Replies:** 13\
**Last updated:** [February 8, 2008, 1:19am UTC](https://www.ruby-forum.com/t/ror-supports-enterprise-application/128264 "2008-02-08T01:19:57Z")

</div>

Hi All, People are talking that ROR is not suitable for enterprise application. Iam not sure what are all the qualified features for the enterprise application. If you know, plz post. Also share your view on ROR sup…

---

## [Superclass mismatch for ActiveRecord::Base subclass](https://www.ruby-forum.com/t/superclass-mismatch-for-activerecord-base-subclass/128485)

<div class="topic-metadata">

**Author:** [@Ben\_H](https://www.ruby-forum.com/u/Ben_H)\
**Replies:** 0\
**Last updated:** [February 8, 2008, 12:49am UTC](https://www.ruby-forum.com/t/superclass-mismatch-for-activerecord-base-subclass/128485 "2008-02-08T00:49:26Z")

</div>

I am trying to figure out a superclass mismatch TypeError exception in one of my rails projects. Maybe someone can help here. This occurs when I am attempting to load a file. On the first load, everything is fine, …

---

## [Rails routing and active scaffold fight to the death](https://www.ruby-forum.com/t/rails-routing-and-active-scaffold-fight-to-the-death/127865)

<div class="topic-metadata">

**Author:** [@nightrider](https://www.ruby-forum.com/u/nightrider)\
**Replies:** 1\
**Last updated:** [February 8, 2008, 12:33am UTC](https://www.ruby-forum.com/t/rails-routing-and-active-scaffold-fight-to-the-death/127865 "2008-02-08T00:33:11Z")

</div>

Just kidding, it’s not as bad as it seems. Right now I don’t have much in my route.rb, and I’m getting this in my console: Processing ApplicationController#index (for 127.0.0.1 at 2008-02-01 14:54:00) \[GET\] \[2008-02…

---

## [Multilevel Class inheritance](https://www.ruby-forum.com/t/multilevel-class-inheritance/128477)

<div class="topic-metadata">

**Author:** [@joergbattermann](https://www.ruby-forum.com/u/joergbattermann)\
**Replies:** 0\
**Last updated:** [February 8, 2008, 12:18am UTC](https://www.ruby-forum.com/t/multilevel-class-inheritance/128477 "2008-02-08T00:18:55Z")

</div>

Hello there, I am having a problem inheriting an already inherited class. errr… sounds more complicated than it is… look: class Item \< ActiveRecord::Base has a name and description field end class Reference \< Item h…

---

## [Rake task to populate a table](https://www.ruby-forum.com/t/rake-task-to-populate-a-table/128280)

<div class="topic-metadata">

**Author:** [@Thufir](https://www.ruby-forum.com/u/Thufir)\
**Replies:** 1\
**Last updated:** [February 8, 2008, 12:08am UTC](https://www.ruby-forum.com/t/rake-task-to-populate-a-table/128280 "2008-02-08T00:08:21Z")

</div>

It seems that it’s possible to create a rake task to populate db tables, this is what I want to accomplish and rake seems like the best tool. However, the only examples I found are rather complex. How can I get starte…

---

## [Redirect to new action not working?](https://www.ruby-forum.com/t/redirect-to-new-action-not-working/128335)

<div class="topic-metadata">

**Author:** [@KTU](https://www.ruby-forum.com/u/KTU)\
**Replies:** 6\
**Last updated:** [February 8, 2008, 12:01am UTC](https://www.ruby-forum.com/t/redirect-to-new-action-not-working/128335 "2008-02-08T00:01:52Z")

</div>

any idea what’s wrong here: agreement return either 0 or 1 def select @imitem = Imitem.find(params\[:id\]) if \[params\[:agreement\] == ‘True’\] redirect\_to :action =\> ‘agreement’, :id =\> @imitem and return false else re…

---

## [Yeni Ã‡Ä±kan Full AlbÃ¼mler Åžifresi z SÄ±kÄ±ntÄ±sÄ±z Ä°ndir 2008](https://www.ruby-forum.com/t/yeni-a-a-kan-full-alba-mler-azifresi-z-sa-ka-nta-sa-z-a-ndir-2008/128475)

<div class="topic-metadata">

**Author:** [@www.Bitmezbusevda.c](https://www.ruby-forum.com/u/www.Bitmezbusevda.c)\
**Replies:** 0\
**Last updated:** [February 7, 2008, 11:53pm UTC](https://www.ruby-forum.com/t/yeni-a-a-kan-full-alba-mler-azifresi-z-sa-ka-nta-sa-z-a-ndir-2008/128475 "2008-02-07T23:53:39Z")

</div>

Badem - Sonsuz full albÃ¼m 2008 http://www.bitmezbusevda.com/forum/showthread.php/badem-sonsuz-full-album-2008-2488.html MetÃ¢net - KayÄ±p LehÃ§e Mixtape http://www.bitmezbusevda.com/forum/showthread.php/met-net-kayip…

---

## [Automatically populating models with the defaults from the table definition](https://www.ruby-forum.com/t/automatically-populating-models-with-the-defaults-from-the-table-definition/128473)

<div class="topic-metadata">

**Author:** [@Tim\_U](https://www.ruby-forum.com/u/Tim_U)\
**Replies:** 0\
**Last updated:** [February 7, 2008, 11:33pm UTC](https://www.ruby-forum.com/t/automatically-populating-models-with-the-defaults-from-the-table-definition/128473 "2008-02-07T23:33:04Z")

</div>

I am using SQL server with ODBC adapter. If I have a field defined as “hair\_color string(255) default(“UNK”), not null” it causes problems with saving the record if I don’t specify the hair color. In this case if…

---

## [3rdRail creating new project issue - ubuntu 7.10](https://www.ruby-forum.com/t/3rdrail-creating-new-project-issue-ubuntu-7-10/123252)

<div class="topic-metadata">

**Author:** [@myst\_tt](https://www.ruby-forum.com/u/myst_tt)\
**Replies:** 3\
**Last updated:** [February 7, 2008, 11:24pm UTC](https://www.ruby-forum.com/t/3rdrail-creating-new-project-issue-ubuntu-7-10/123252 "2008-02-07T23:24:43Z")

</div>

Hello, dudes: When I am trying to create new rails project, the console in 3rdRail always says as follow and fails to create project related files! ========================== rails /media/sdb1/xxiao/program/3rdRail…

---

## [Rails 2.0.2 upgrade -\> undefined method \`user\_path'](https://www.ruby-forum.com/t/rails-2-0-2-upgrade-undefined-method-user-path/128430)

<div class="topic-metadata">

**Author:** [@jfoxny](https://www.ruby-forum.com/u/jfoxny)\
**Replies:** 2\
**Last updated:** [February 7, 2008, 11:12pm UTC](https://www.ruby-forum.com/t/rails-2-0-2-upgrade-undefined-method-user-path/128430 "2008-02-07T23:12:54Z")

</div>

I’ve tried to upgrade my Rails 1.5 app to 2.0.2 I’ve run into this error: Showing login/login.rhtml where line #4 raised: undefined method \`user\_path’ for #ActionView::Base:0x35cd55c Extracted source (around line #4)…

---

## [MissingSourceFile (no such file to load -- scruffy)?](https://www.ruby-forum.com/t/missingsourcefile-no-such-file-to-load-scruffy/128466)

<div class="topic-metadata">

**Author:** [@pete](https://www.ruby-forum.com/u/pete)\
**Replies:** 1\
**Last updated:** [February 7, 2008, 11:05pm UTC](https://www.ruby-forum.com/t/missingsourcefile-no-such-file-to-load-scruffy/128466 "2008-02-07T23:05:52Z")

</div>

Hi- Anyone ever seen this error? Related to any library? Thanks.

---

## [Firewall closes database connections resulting in hung mongrel processes](https://www.ruby-forum.com/t/firewall-closes-database-connections-resulting-in-hung-mongrel-processes/128467)

<div class="topic-metadata">

**Author:** [@matt](https://www.ruby-forum.com/u/matt)\
**Replies:** 0\
**Last updated:** [February 7, 2008, 10:57pm UTC](https://www.ruby-forum.com/t/firewall-closes-database-connections-resulting-in-hung-mongrel-processes/128467 "2008-02-07T22:57:21Z")

</div>

There are actually two separate issues I am experiencing: A firewall between our app and database closes the connection behind us after 30 mins After a period of inactivity oracle closes connections on us Both of the…

---

## [REST and backward compatibility](https://www.ruby-forum.com/t/rest-and-backward-compatibility/128432)

<div class="topic-metadata">

**Author:** [@Bas\_van\_Westing](https://www.ruby-forum.com/u/Bas_van_Westing)\
**Replies:** 3\
**Last updated:** [February 7, 2008, 10:52pm UTC](https://www.ruby-forum.com/t/rest-and-backward-compatibility/128432 "2008-02-07T22:52:36Z")

</div>

Hi, I’m struggling with the backward compatibility of a RESTful interface. I can’t find any documentation on the standard way to solving this. I know that as long as you only extend the RESTful interface there is no …

---

## [Strategies for managing state on Rails](https://www.ruby-forum.com/t/strategies-for-managing-state-on-rails/128382)

<div class="topic-metadata">

**Author:** [@bhbrinckerhoff](https://www.ruby-forum.com/u/bhbrinckerhoff)\
**Replies:** 2\
**Last updated:** [February 7, 2008, 10:36pm UTC](https://www.ruby-forum.com/t/strategies-for-managing-state-on-rails/128382 "2008-02-07T22:36:08Z")

</div>

This may be obvious (either obviously simple or, on the other hand, obviously a very hard problem), but I’m working on my first non- trivial Rails app (well, web app in general for that matter) and I’m running time an…

---

## [Caching reverse associations in ActiveRecord](https://www.ruby-forum.com/t/caching-reverse-associations-in-activerecord/127601)

<div class="topic-metadata">

**Author:** [@patnakajima](https://www.ruby-forum.com/u/patnakajima)\
**Replies:** 2\
**Last updated:** [February 7, 2008, 10:24pm UTC](https://www.ruby-forum.com/t/caching-reverse-associations-in-activerecord/127601 "2008-02-07T22:24:56Z")

</div>

Let’s say we have two models with a plain has\_many/belongs\_to relationship. class Driver has\_one :car end class Car belongs\_to :driver end The question is this: Why isn’t the car’s parent driver cached when we …

---

## [Feb. 12th - Don't miss the TSOT Ruby on Rails Project Night](https://www.ruby-forum.com/t/feb-12th-dont-miss-the-tsot-ruby-on-rails-project-night/128465)

<div class="topic-metadata">

**Author:** [@Corina](https://www.ruby-forum.com/u/Corina)\
**Replies:** 0\
**Last updated:** [February 7, 2008, 10:16pm UTC](https://www.ruby-forum.com/t/feb-12th-dont-miss-the-tsot-ruby-on-rails-project-night/128465 "2008-02-07T22:16:06Z")

</div>

TSOT’s Ruby/Rails Project Night takes place next Tuesday, February 12th at our development office at 151 Bloor Street West (just east of Avenue Road), Suite 1130. Doors will open at 5:30pm with presentations beginning…

---

## [Unload Plugin](https://www.ruby-forum.com/t/unload-plugin/128455)

<div class="topic-metadata">

**Author:** [@SmallPaul](https://www.ruby-forum.com/u/SmallPaul)\
**Replies:** 1\
**Last updated:** [February 7, 2008, 10:11pm UTC](https://www.ruby-forum.com/t/unload-plugin/128455 "2008-02-07T22:11:24Z")

</div>

Is there a way to UNLOAD a plugin – short of reverting changes in SVN?

---

## [Deploying Rails app as a product](https://www.ruby-forum.com/t/deploying-rails-app-as-a-product/128448)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [February 7, 2008, 9:06pm UTC](https://www.ruby-forum.com/t/deploying-rails-app-as-a-product/128448 "2008-02-07T21:06:56Z")

</div>

I have a Rails application that I sell as a product. That is, a number of clients use the same software, except for small customizations, such as layouts, css files, etc. I use SVN and Capistrano to manage the softwa…

---

## [Apache configuration](https://www.ruby-forum.com/t/apache-configuration/128454)

<div class="topic-metadata">

**Author:** [@adam](https://www.ruby-forum.com/u/adam)\
**Replies:** 0\
**Last updated:** [February 7, 2008, 8:50pm UTC](https://www.ruby-forum.com/t/apache-configuration/128454 "2008-02-07T20:50:56Z")

</div>

Hi all, I’m trying to use InstantRails to host a Rails app which can be accessed from the internet. I’m very new to this, and can’t seem to get Apache to play along. I’ve set the ServerName to my static IP and set th…

---

## [Ajax with EXTJS](https://www.ruby-forum.com/t/ajax-with-extjs/128099)

<div class="topic-metadata">

**Author:** [@SmallPaul](https://www.ruby-forum.com/u/SmallPaul)\
**Replies:** 1\
**Last updated:** [February 7, 2008, 8:47pm UTC](https://www.ruby-forum.com/t/ajax-with-extjs/128099 "2008-02-07T20:47:13Z")

</div>

I’m on Rails 2.0.2, and can’t get Ajax working with EXTJS. I’m trying this from the EXTJS tutorial: Ext.onReady(function(){ Ext.get('okButton').on('click', function(){ var msg = Ext.get('msg'); msg.load({ …

---

## [Svn: command not found?](https://www.ruby-forum.com/t/svn-command-not-found/128449)

<div class="topic-metadata">

**Author:** [@pete](https://www.ruby-forum.com/u/pete)\
**Replies:** 4\
**Last updated:** [February 7, 2008, 8:46pm UTC](https://www.ruby-forum.com/t/svn-command-not-found/128449 "2008-02-07T20:46:07Z")

</div>

Hi- Trying to install some plugins and I get the following: /path\_to\_ruby/ruby-1.8.6-p111/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/ commands/plugin.rb:258: warning: Insecure world writable dir / path\_to\_ruby/apps in PA…

---

## [Rails Save/Update not working - Oracle](https://www.ruby-forum.com/t/rails-save-update-not-working-oracle/128452)

<div class="topic-metadata">

**Author:** [@miken700](https://www.ruby-forum.com/u/miken700)\
**Replies:** 0\
**Last updated:** [February 7, 2008, 8:24pm UTC](https://www.ruby-forum.com/t/rails-save-update-not-working-oracle/128452 "2008-02-07T20:24:07Z")

</div>

I have a legacy schema (that I cannot change) that I am working with, building a quick maintenance front end using Rails. The problem is that when I process the Update nothing happens on the Oracle system. All the tra…

---

## [Possible to hide html comments using sanitize in rails 2.0?](https://www.ruby-forum.com/t/possible-to-hide-html-comments-using-sanitize-in-rails-2-0/128056)

<div class="topic-metadata">

**Author:** [@vince](https://www.ruby-forum.com/u/vince)\
**Replies:** 1\
**Last updated:** [February 7, 2008, 7:38pm UTC](https://www.ruby-forum.com/t/possible-to-hide-html-comments-using-sanitize-in-rails-2-0/128056 "2008-02-07T19:38:19Z")

</div>

Is it possible to have comments stay commented out when using sanitize? For example, I have this in my view: \<%= sanitize @description %\> and @description = “” but sanitize converts: to \<!-- end time --\> so the …

---

## [Create rows in alternate tables](https://www.ruby-forum.com/t/create-rows-in-alternate-tables/128446)

<div class="topic-metadata">

**Author:** [@Chmeee](https://www.ruby-forum.com/u/Chmeee)\
**Replies:** 0\
**Last updated:** [February 7, 2008, 7:36pm UTC](https://www.ruby-forum.com/t/create-rows-in-alternate-tables/128446 "2008-02-07T19:36:32Z")

</div>

I’ve looked everywhere I could think, but can’t find an answer to this question: I’m writing a Rails application that uses an arbitrary number of groups of 4 tables, each group belonging to a user. Now, I want to in…

---

## [Text\_field\_with\_auto\_complete](https://www.ruby-forum.com/t/text-field-with-auto-complete/128434)

<div class="topic-metadata">

**Author:** [@jfoxny](https://www.ruby-forum.com/u/jfoxny)\
**Replies:** 4\
**Last updated:** [February 7, 2008, 7:33pm UTC](https://www.ruby-forum.com/t/text-field-with-auto-complete/128434 "2008-02-07T19:33:28Z")

</div>

I have the following in my view: \<% form\_tag :action =\> ‘detail’ do %\> Search for Sales Order Number: \<%= text\_field\_with\_auto\_complete :sales\_order, :id %\> \<%= submit\_tag " Go "%\> \<% end %\> And I have the follow…

---

## [Mongrel time out](https://www.ruby-forum.com/t/mongrel-time-out/128444)

<div class="topic-metadata">

**Author:** [@t\_chheng](https://www.ruby-forum.com/u/t_chheng)\
**Replies:** 0\
**Last updated:** [February 7, 2008, 7:09pm UTC](https://www.ruby-forum.com/t/mongrel-time-out/128444 "2008-02-07T19:09:15Z")

</div>

I’m getting this strange error: /usr/local/bin/mongrel\_rails:16Thread #\<Thread:0xb7324cec sleep\> is too old, killing.Thu Feb 07 09:12:11 -0800 2008: Error calling Dispatcher.dispatch #\<Mongrel::TimeoutError: Mongrel t…

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

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