# Rails

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

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

---

## [Read-only fields](https://www.ruby-forum.com/t/read-only-fields/92355)

<div class="topic-metadata">

**Author:** [@deanhiller](https://www.ruby-forum.com/u/deanhiller)\
**Replies:** 6\
**Last updated:** [April 20, 2007, 5:54pm UTC](https://www.ruby-forum.com/t/read-only-fields/92355 "2007-04-20T17:54:28Z")

</div>

I have a field in my table that I do not want ActiveRecord to update. I would like to retrieve that field, and have it displayed. However, when I perform update, and ActiveRecord generates the SQL, I don’t want it to …

---

## [Getting undefined method \`stringify\_keys!'](https://www.ruby-forum.com/t/getting-undefined-method-stringify-keys/92554)

<div class="topic-metadata">

**Author:** [@sujaldalia](https://www.ruby-forum.com/u/sujaldalia)\
**Replies:** 0\
**Last updated:** [April 20, 2007, 5:39pm UTC](https://www.ruby-forum.com/t/getting-undefined-method-stringify-keys/92554 "2007-04-20T17:39:03Z")

</div>

This is how my edit.rhtml file looks Editing environment \<%= start\_form\_tag :action =\> ‘update’, :id =\> @environment.id %\> Pupose: \<%= text\_field\_tag(‘purpose’,@environment.purpose) %\> Environment: \<%= text\_field…

---

## [Globalize and SQL Server](https://www.ruby-forum.com/t/globalize-and-sql-server/92536)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [April 20, 2007, 5:28pm UTC](https://www.ruby-forum.com/t/globalize-and-sql-server/92536 "2007-04-20T17:28:26Z")

</div>

Hello, At my work we have a lot of international clients and i10n is a big issue. We’re now planning to migrate our main application to ruby on rails. The problem is that we still have to use MS SQL Server because th…

---

## [Rails + Oracle problems](https://www.ruby-forum.com/t/rails-oracle-problems/92551)

<div class="topic-metadata">

**Author:** [@reacher](https://www.ruby-forum.com/u/reacher)\
**Replies:** 1\
**Last updated:** [April 20, 2007, 4:53pm UTC](https://www.ruby-forum.com/t/rails-oracle-problems/92551 "2007-04-20T16:53:24Z")

</div>

I’m having a problem getting Rails to connect to my Oracle database. I have Ruby/Rails installed on a SunOS (sun0) and my Oracle database (mydb) is installed on another SunOS (sun1). sun1 has the Oracle instant clien…

---

## [= FALSE vs. IS NOT TRUE](https://www.ruby-forum.com/t/false-vs-is-not-true/92285)

<div class="topic-metadata">

**Author:** [@jney](https://www.ruby-forum.com/u/jney)\
**Replies:** 7\
**Last updated:** [April 20, 2007, 4:53pm UTC](https://www.ruby-forum.com/t/false-vs-is-not-true/92285 "2007-04-20T16:53:24Z")

</div>

Hello, i have a column in my table ‘is\_inappropriate’ which is boolean, but can be null Here is my simplified code, and i want to keep conditions in hash type. @reviews ||= Review.find( :all, :conditions =\> {:is\_…

---

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

<div class="topic-metadata">

**Author:** [@selvaraj](https://www.ruby-forum.com/u/selvaraj)\
**Replies:** 5\
**Last updated:** [April 20, 2007, 4:39pm UTC](https://www.ruby-forum.com/t/file-upload/92535 "2007-04-20T16:39:18Z")

</div>

Hai Give me an example for file upload. And tell me which one is better storing the file in our public(rails folder structure) folder is better or database? regards selvaraj

---

## [Happy coder == productive coder?](https://www.ruby-forum.com/t/happy-coder-productive-coder/92549)

<div class="topic-metadata">

**Author:** [@Dorren](https://www.ruby-forum.com/u/Dorren)\
**Replies:** 0\
**Last updated:** [April 20, 2007, 4:38pm UTC](https://www.ruby-forum.com/t/happy-coder-productive-coder/92549 "2007-04-20T16:38:21Z")

</div>

just random surfing today, and found this gem. The study lists the happiest countries. guess which one is top of the list? Denmark. Does that implies that a happy environment creates productive coders, like DHH?

---

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

<div class="topic-metadata">

**Author:** [@Bolo](https://www.ruby-forum.com/u/Bolo)\
**Replies:** 1\
**Last updated:** [April 20, 2007, 4:19pm UTC](https://www.ruby-forum.com/t/problem-with-render/92530 "2007-04-20T16:19:19Z")

</div>

Hello All, I have a strange probrem. When i try to create a new “Enseignan” with an error. I have this error Template is missing Missing template /enseignants/#Enseignant:0x31638f4.html.erb However, in my code i hav…

---

## [Restful\_auth undefied logged\_in?](https://www.ruby-forum.com/t/restful-auth-undefied-logged-in/92546)

<div class="topic-metadata">

**Author:** [@guest](https://www.ruby-forum.com/u/guest)\
**Replies:** 2\
**Last updated:** [April 20, 2007, 4:19pm UTC](https://www.ruby-forum.com/t/restful-auth-undefied-logged-in/92546 "2007-04-20T16:19:02Z")

</div>

Hi there, I’ve been using the RESTful Authentication plugin for a long time, and never had trouble with it. Now though with the latest version and Edge Rails (rev 6542), I get an (undefined method \`logged\_in?’ for #\<#…

---

## [How to get visitor details](https://www.ruby-forum.com/t/how-to-get-visitor-details/92539)

<div class="topic-metadata">

**Author:** [@judge](https://www.ruby-forum.com/u/judge)\
**Replies:** 1\
**Last updated:** [April 20, 2007, 4:09pm UTC](https://www.ruby-forum.com/t/how-to-get-visitor-details/92539 "2007-04-20T16:09:18Z")

</div>

Hi guys, I’ve tried to find a way to get the IP of a visitor to my site (rails app) but with no luck. Does anyone know how to get this? Cheers, Paul

---

## [In Place Editing Ideology](https://www.ruby-forum.com/t/in-place-editing-ideology/92521)

<div class="topic-metadata">

**Author:** [@qertoip](https://www.ruby-forum.com/u/qertoip)\
**Replies:** 7\
**Last updated:** [April 20, 2007, 4:02pm UTC](https://www.ruby-forum.com/t/in-place-editing-ideology/92521 "2007-04-20T16:02:17Z")

</div>

How do you think in-place-editing will affect Rails development? I mean, it’s not along with well established conventions, like having RESTful controllers with strict set of actions. Maybe it would be better if we co…

---

## [Nice O'Reilly blog post by Gregory Brown](https://www.ruby-forum.com/t/nice-oreilly-blog-post-by-gregory-brown/92545)

<div class="topic-metadata">

**Author:** [@pate](https://www.ruby-forum.com/u/pate)\
**Replies:** 0\
**Last updated:** [April 20, 2007, 3:58pm UTC](https://www.ruby-forum.com/t/nice-oreilly-blog-post-by-gregory-brown/92545 "2007-04-20T15:58:15Z")

</div>

Understanding ActiveRecord: A Gentle Introduction to the Heart of Rails (Part 1) Rails is advertised as a model-view-controller web framework. In this two-part article, we’ll be focusing on the M in MVC. Specificall…

---

## [Namespaces in Rails](https://www.ruby-forum.com/t/namespaces-in-rails/92449)

<div class="topic-metadata">

**Author:** [@seeah](https://www.ruby-forum.com/u/seeah)\
**Replies:** 4\
**Last updated:** [April 20, 2007, 3:38pm UTC](https://www.ruby-forum.com/t/namespaces-in-rails/92449 "2007-04-20T15:38:14Z")

</div>

Hi everyone, Can someone explain me why Rails does not take full advantage of namespaces? Rails itself is divided into modules but user classes are restricted to use only names that don’t coincide with existing class …

---

## [Integration testing](https://www.ruby-forum.com/t/integration-testing/92531)

<div class="topic-metadata">

**Author:** [@bryanl](https://www.ruby-forum.com/u/bryanl)\
**Replies:** 0\
**Last updated:** [April 20, 2007, 1:21pm UTC](https://www.ruby-forum.com/t/integration-testing/92531 "2007-04-20T13:21:28Z")

</div>

Shouldn’t integration tests rollback after completion, or is there something simple that I am missing here?

---

## [Polymorphic association and saving a has\_one association](https://www.ruby-forum.com/t/polymorphic-association-and-saving-a-has-one-association/92529)

<div class="topic-metadata">

**Author:** [@pixellover](https://www.ruby-forum.com/u/pixellover)\
**Replies:** 0\
**Last updated:** [April 20, 2007, 12:01pm UTC](https://www.ruby-forum.com/t/polymorphic-association-and-saving-a-has-one-association/92529 "2007-04-20T12:01:13Z")

</div>

Hi, I’ve got a little problem with a polymorphic association and has\_one. Here’s my current setup: class Client has\_one :birthday, :dependent =\> :destroy, :as =\> :timeable, :class\_name =\> “Event”, :foreign\_key =\> :…

---

## [KoderBlogz is just launched](https://www.ruby-forum.com/t/koderblogz-is-just-launched/92507)

<div class="topic-metadata">

**Author:** [@Behi](https://www.ruby-forum.com/u/Behi)\
**Replies:** 2\
**Last updated:** [April 20, 2007, 11:47am UTC](https://www.ruby-forum.com/t/koderblogz-is-just-launched/92507 "2007-04-20T11:47:12Z")

</div>

Hi, KoderBlogz (http://www.koderblogz.com) is just launched. Register your Ruby blogs and enter a chance to win an Apple iPod. Cheers, Behrang

---

## [File\_column problem](https://www.ruby-forum.com/t/file-column-problem/92513)

<div class="topic-metadata">

**Author:** [@Michael\_Bamford](https://www.ruby-forum.com/u/Michael_Bamford)\
**Replies:** 1\
**Last updated:** [April 20, 2007, 11:32am UTC](https://www.ruby-forum.com/t/file-column-problem/92513 "2007-04-20T11:32:11Z")

</div>

Hey Everyone- I would really appreciate some help with the use of the file\_column plugin. I have it working very well on my local Windows development machine, but have not been able to get it to work on my shared host …

---

## [Howto stop rails grabbing the auth for another app in subdir](https://www.ruby-forum.com/t/howto-stop-rails-grabbing-the-auth-for-another-app-in-subdir/92448)

<div class="topic-metadata">

**Author:** [@grahamm](https://www.ruby-forum.com/u/grahamm)\
**Replies:** 2\
**Last updated:** [April 20, 2007, 11:15am UTC](https://www.ruby-forum.com/t/howto-stop-rails-grabbing-the-auth-for-another-app-in-subdir/92448 "2007-04-20T11:15:42Z")

</div>

Hi, I have rails running with the rails goldberg content management system which is doing some user authentication etc. I also have OSCommerce running. My public\_html is a symbolic link to my rails app directory. O…

---

## [Doing a SQL sum and getting the result into rails](https://www.ruby-forum.com/t/doing-a-sql-sum-and-getting-the-result-into-rails/92522)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [April 20, 2007, 11:04am UTC](https://www.ruby-forum.com/t/doing-a-sql-sum-and-getting-the-result-into-rails/92522 "2007-04-20T11:04:22Z")

</div>

All, I am trying to execute the following SQL code and have the result returned to my application for further proessing… “select SUM(action) as ‘sum’ from approvals where upload\_id = ?”, @upload.id I have tried this…

---

## [Loop action and view](https://www.ruby-forum.com/t/loop-action-and-view/92489)

<div class="topic-metadata">

**Author:** [@xain](https://www.ruby-forum.com/u/xain)\
**Replies:** 4\
**Last updated:** [April 20, 2007, 9:23am UTC](https://www.ruby-forum.com/t/loop-action-and-view/92489 "2007-04-20T09:23:12Z")

</div>

I want to build a loop action, like: def loop\_action @current\_job = 0 100.each { |i| @current\_job = i } end I want the view to display the @current\_job information in realtime and I’d like to have a stop button t…

---

## [Redesign Ruby on rails](https://www.ruby-forum.com/t/redesign-ruby-on-rails/92519)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [April 20, 2007, 8:51am UTC](https://www.ruby-forum.com/t/redesign-ruby-on-rails/92519 "2007-04-20T08:51:51Z")

</div>

http://www.teenwag.com/show/news

---

## [Has\_many :through failed \<\< returning false](https://www.ruby-forum.com/t/has-many-through-failed-returning-false/91938)

<div class="topic-metadata">

**Author:** [@liquid](https://www.ruby-forum.com/u/liquid)\
**Replies:** 2\
**Last updated:** [April 20, 2007, 8:33am UTC](https://www.ruby-forum.com/t/has-many-through-failed-returning-false/91938 "2007-04-20T08:33:47Z")

</div>

Hi All, I’ve got a situation where I want a has\_many :through association to behave somewhat like a normal has\_many when \<\< is called on the association. ie I would like it to return false instead of throwing an ex…

---

## [File\_column problem](https://www.ruby-forum.com/t/file-column-problem/92501)

<div class="topic-metadata">

**Author:** [@Michael\_Bamford](https://www.ruby-forum.com/u/Michael_Bamford)\
**Replies:** 2\
**Last updated:** [April 20, 2007, 8:19am UTC](https://www.ruby-forum.com/t/file-column-problem/92501 "2007-04-20T08:19:44Z")

</div>

Hey Everyone- I would really appreciate some help with the use of the file\_column plugin. I have it working very well on my local Windows development machine, but have not been able to get it to work on my shared hos…

---

## [Using engines/datetime toolbocks with another plugin](https://www.ruby-forum.com/t/using-engines-datetime-toolbocks-with-another-plugin/92113)

<div class="topic-metadata">

**Author:** [@Myron\_M](https://www.ruby-forum.com/u/Myron_M)\
**Replies:** 9\
**Last updated:** [April 20, 2007, 8:06am UTC](https://www.ruby-forum.com/t/using-engines-datetime-toolbocks-with-another-plugin/92113 "2007-04-20T08:06:42Z")

</div>

Hello, I’m having trouble using datetime toolbocks (which in turn relies on engines) with another plugin. I’m using Goldberg (http://goldberg. 240gl.org/) as a CMS for my rails app. I have some models with date fie…

---

## [STI and validates\_uniqueness](https://www.ruby-forum.com/t/sti-and-validates-uniqueness/92496)

<div class="topic-metadata">

**Author:** [@andywatts](https://www.ruby-forum.com/u/andywatts)\
**Replies:** 2\
**Last updated:** [April 20, 2007, 7:39am UTC](https://www.ruby-forum.com/t/sti-and-validates-uniqueness/92496 "2007-04-20T07:39:12Z")

</div>

Hi, Added STI and it’s messed with my validates\_uniqueness. I was hoping a validate\_uniqueness in the base class would validate a field regardless of the derived classes…but it seems not to be. Any ideas how I can en…

---

## [Youtube killer made in ruby on rails thanks guys](https://www.ruby-forum.com/t/youtube-killer-made-in-ruby-on-rails-thanks-guys/92504)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [April 20, 2007, 7:38am UTC](https://www.ruby-forum.com/t/youtube-killer-made-in-ruby-on-rails-thanks-guys/92504 "2007-04-20T07:38:41Z")

</div>

http://www.teenwag.com/playvideo/2846

---

## [Rails validations, how to improve them](https://www.ruby-forum.com/t/rails-validations-how-to-improve-them/92518)

<div class="topic-metadata">

**Author:** [@skwp](https://www.ruby-forum.com/u/skwp)\
**Replies:** 0\
**Last updated:** [April 20, 2007, 6:49am UTC](https://www.ruby-forum.com/t/rails-validations-how-to-improve-them/92518 "2007-04-20T06:49:07Z")

</div>

Here is a discussion of a problem and potential solution for Rails validations. Rails has a fundamental problem with validations in that it essentially requires you to either Accept the default error messages (which…

---

## [500.html not being returned to IE](https://www.ruby-forum.com/t/500-html-not-being-returned-to-ie/92500)

<div class="topic-metadata">

**Author:** [@dmarkow](https://www.ruby-forum.com/u/dmarkow)\
**Replies:** 3\
**Last updated:** [April 20, 2007, 6:06am UTC](https://www.ruby-forum.com/t/500-html-not-being-returned-to-ie/92500 "2007-04-20T06:06:41Z")

</div>

When I access a “broken” page on my site, most browsers display my 500.html file found in the RAILS\_ROOT/public folder. However, Internet Explorer always shows its own default “The page cannot be displayed” error rath…

---

## [Natual Language processing for Addresses](https://www.ruby-forum.com/t/natual-language-processing-for-addresses/92511)

<div class="topic-metadata">

**Author:** [@PeteSalty](https://www.ruby-forum.com/u/PeteSalty)\
**Replies:** 1\
**Last updated:** [April 20, 2007, 4:52am UTC](https://www.ruby-forum.com/t/natual-language-processing-for-addresses/92511 "2007-04-20T04:52:29Z")

</div>

Does anyone know of a gem or plugin that does for street addresses what Chronic does for dates? And in a similar tone, does anyone know of somthing similar for names of places and people (I’m guessing the answer is no…

---

## [MVC Philosophy](https://www.ruby-forum.com/t/mvc-philosophy/92506)

<div class="topic-metadata">

**Author:** [@zakifataya](https://www.ruby-forum.com/u/zakifataya)\
**Replies:** 2\
**Last updated:** [April 20, 2007, 4:32am UTC](https://www.ruby-forum.com/t/mvc-philosophy/92506 "2007-04-20T04:32:35Z")

</div>

My directory browsing app shows lists of file. If the item is a folder, show a folder icon and link to the action that shows directory contents. If the item is a graphics file, show a thumbnail and link to a larger vi…

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

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