# Rails

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

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

---

## [Globalize and Rails 2.0.2](https://www.ruby-forum.com/t/globalize-and-rails-2-0-2/124949)

<div class="topic-metadata">

**Author:** [@demoversion](https://www.ruby-forum.com/u/demoversion)\
**Replies:** 0\
**Last updated:** [January 3, 2008, 11:21pm UTC](https://www.ruby-forum.com/t/globalize-and-rails-2-0-2/124949 "2008-01-03T23:21:35Z")

</div>

Hello, Who tried Globalize with Rails 2.0.2? I need help to start work it. For example i can’t globalize links for map.resource :books Thanks for any help

---

## [What happen? when I update rails from 1.2.6 to 2.0.2](https://www.ruby-forum.com/t/what-happen-when-i-update-rails-from-1-2-6-to-2-0-2/124945)

<div class="topic-metadata">

**Author:** [@OnRails](https://www.ruby-forum.com/u/OnRails)\
**Replies:** 1\
**Last updated:** [January 3, 2008, 11:00pm UTC](https://www.ruby-forum.com/t/what-happen-when-i-update-rails-from-1-2-6-to-2-0-2/124945 "2008-01-03T23:00:10Z")

</div>

/!\\ FAILSAFE /!\\ Thu Jan 03 13:49:24 -0800 2008 Status: 500 Internal Server Error You have a nil object when you didn’t expect it! You might have expected an instance of ActiveRecord::Base. The error occurred while …

---

## [Translate text, labels, pages](https://www.ruby-forum.com/t/translate-text-labels-pages/124939)

<div class="topic-metadata">

**Author:** [@demoversion](https://www.ruby-forum.com/u/demoversion)\
**Replies:** 0\
**Last updated:** [January 3, 2008, 9:53pm UTC](https://www.ruby-forum.com/t/translate-text-labels-pages/124939 "2008-01-03T21:53:42Z")

</div>

Hello, Please recommend me something to translate web-pages, model fields, web-pages or tell me plz how to use globalize with rails 2.0 Before rails 2.0 i used globalize but not i got problems with globalize. Thanks

---

## [Using ActionWebService with Edge Rails/Rails 2.0](https://www.ruby-forum.com/t/using-actionwebservice-with-edge-rails-rails-2-0/121408)

<div class="topic-metadata">

**Author:** [@elliotb](https://www.ruby-forum.com/u/elliotb)\
**Replies:** 2\
**Last updated:** [January 3, 2008, 9:45pm UTC](https://www.ruby-forum.com/t/using-actionwebservice-with-edge-rails-rails-2-0/121408 "2008-01-03T21:45:26Z")

</div>

Hi We have a Rails app running Edge Rails R8041, serving up a RESTful API and have recently had the need arise to add a SOAP API. After a bit of fighting with load paths setting the following in environment.rb: confi…

---

## [Autotest and rspec always tests everything](https://www.ruby-forum.com/t/autotest-and-rspec-always-tests-everything/124834)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 3\
**Last updated:** [January 3, 2008, 9:23pm UTC](https://www.ruby-forum.com/t/autotest-and-rspec-always-tests-everything/124834 "2008-01-03T21:23:45Z")

</div>

Is there a way to limit autotest to just what is saved? I have a small app that as four models/controllers. and testing was fast but testing everything. I added Restful-Authentication and it tested fine. Now whenever …

---

## [Standard route but having errors](https://www.ruby-forum.com/t/standard-route-but-having-errors/124922)

<div class="topic-metadata">

**Author:** [@Chubbs](https://www.ruby-forum.com/u/Chubbs)\
**Replies:** 6\
**Last updated:** [January 3, 2008, 9:02pm UTC](https://www.ruby-forum.com/t/standard-route-but-having-errors/124922 "2008-01-03T21:02:34Z")

</div>

hey i have routes defined as, map.question ‘question/:id’, :controller =\> ‘question’, :action =\> ‘show’ Install the default route as the lowest priority. map.connect ‘:controller/:action/:id.:format’ map.connect ‘:co…

---

## [Database.yml - "password: #MY\_PASS" not working because '#' is interpreted as the start of a commen](https://www.ruby-forum.com/t/database-yml-password-my-pass-not-working-because-is-interpreted-as-the-start-of-a-commen/124932)

<div class="topic-metadata">

**Author:** [@Sazima](https://www.ruby-forum.com/u/Sazima)\
**Replies:** 1\
**Last updated:** [January 3, 2008, 8:59pm UTC](https://www.ruby-forum.com/t/database-yml-password-my-pass-not-working-because-is-interpreted-as-the-start-of-a-commen/124932 "2008-01-03T20:59:33Z")

</div>

Searched a bit, but couldn’t find anything… Any ideas? Cheers, Sazima

---

## [Faker gem with automatic script](https://www.ruby-forum.com/t/faker-gem-with-automatic-script/124928)

<div class="topic-metadata">

**Author:** [@dacbo](https://www.ruby-forum.com/u/dacbo)\
**Replies:** 0\
**Last updated:** [January 3, 2008, 8:36pm UTC](https://www.ruby-forum.com/t/faker-gem-with-automatic-script/124928 "2008-01-03T20:36:15Z")

</div>

I’m trying to use the faker gem to put random data in my demo app. How do I run a ruby script from the command line and have it run within my rails development environment?

---

## [Caching some classes, not others](https://www.ruby-forum.com/t/caching-some-classes-not-others/124846)

<div class="topic-metadata">

**Author:** [@bbennett](https://www.ruby-forum.com/u/bbennett)\
**Replies:** 8\
**Last updated:** [January 3, 2008, 8:29pm UTC](https://www.ruby-forum.com/t/caching-some-classes-not-others/124846 "2008-01-03T20:29:42Z")

</div>

Hi all, I’ve got an issue that came up once I went to two production servers with a class (a set of classes actually) that gets updated dynamically. It only gets updated on one server and not the other until I do a …

---

## [Scaffolding hates me, please help](https://www.ruby-forum.com/t/scaffolding-hates-me-please-help/123618)

<div class="topic-metadata">

**Author:** [@kevin](https://www.ruby-forum.com/u/kevin)\
**Replies:** 5\
**Last updated:** [January 3, 2008, 8:23pm UTC](https://www.ruby-forum.com/t/scaffolding-hates-me-please-help/123618 "2008-01-03T20:23:14Z")

</div>

Hello folks, Well, I am really new to RoR, but I am doing my best to learn. I have followed the Apple tutorial as well as the ONLamp one. However, both have resulted in problems. So, I decided to hit Lynda.com, hop…

---

## [File permissions in railsapp for non-root mongrel](https://www.ruby-forum.com/t/file-permissions-in-railsapp-for-non-root-mongrel/124923)

<div class="topic-metadata">

**Author:** [@msojka](https://www.ruby-forum.com/u/msojka)\
**Replies:** 0\
**Last updated:** [January 3, 2008, 8:04pm UTC](https://www.ruby-forum.com/t/file-permissions-in-railsapp-for-non-root-mongrel/124923 "2008-01-03T20:04:25Z")

</div>

Hello, Short version: what files and dirs need to be owned by the user mongrel is running as, for my rails app to work? I’ve set up a mongrel cluster to serve my rails app. At first, I loaded up the mongrels using la…

---

## [Validation errors and file uploads](https://www.ruby-forum.com/t/validation-errors-and-file-uploads/124916)

<div class="topic-metadata">

**Author:** [@mrkohrea](https://www.ruby-forum.com/u/mrkohrea)\
**Replies:** 1\
**Last updated:** [January 3, 2008, 7:43pm UTC](https://www.ruby-forum.com/t/validation-errors-and-file-uploads/124916 "2008-01-03T19:43:46Z")

</div>

I’ve got a form that contains a number of textfields, as well as a file upload element. I’ve noticed that this field doesn’t retain it’s data after validation errors. While I know html/http doesn’t allow form fields …

---

## [Vlad problem with rake 0.8.1 - revert to rake 0.7.3](https://www.ruby-forum.com/t/vlad-problem-with-rake-0-8-1-revert-to-rake-0-7-3/124901)

<div class="topic-metadata">

**Author:** [@apie](https://www.ruby-forum.com/u/apie)\
**Replies:** 1\
**Last updated:** [January 3, 2008, 7:39pm UTC](https://www.ruby-forum.com/t/vlad-problem-with-rake-0-8-1-revert-to-rake-0-7-3/124901 "2008-01-03T19:39:40Z")

</div>

Hi Incase anyone is having trouble with rake 0.8.1 and vlad: Installing rake 0.7.3 works Successfully installed rake-0.8.1 1 gem installed Installing ri documentation for rake-0.8.1… Installing RDoc documentation f…

---

## [Project Management Training Videos - http://video.learnedvalue.com/index.php?cat=1](https://www.ruby-forum.com/t/project-management-training-videos-http-video-learnedvalue-com-index-php-cat-1/124920)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [January 3, 2008, 7:22pm UTC](https://www.ruby-forum.com/t/project-management-training-videos-http-video-learnedvalue-com-index-php-cat-1/124920 "2008-01-03T19:22:01Z")

</div>

Hi, Greeting to all. I came across a website for PMP Videos. The website contains numerous videos on basics of Project Management and PMP. Interesting and enlightening ! If you are interested, have a look at Learne…

---

## [Videos on Software Testing - http://video.learnedvalue.com/index.php?cat=5](https://www.ruby-forum.com/t/videos-on-software-testing-http-video-learnedvalue-com-index-php-cat-5/124918)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [January 3, 2008, 7:19pm UTC](https://www.ruby-forum.com/t/videos-on-software-testing-http-video-learnedvalue-com-index-php-cat-5/124918 "2008-01-03T19:19:38Z")

</div>

Hi, I usually search web to get more info about Software Testing. If you are interested, you can have a look at which contains lot of Software Testing videos. Hope you also can benefit… The website also has got …

---

## [Fields\_for giving undefined method exception](https://www.ruby-forum.com/t/fields-for-giving-undefined-method-exception/60723)

<div class="topic-metadata">

**Author:** [@jose](https://www.ruby-forum.com/u/jose)\
**Replies:** 1\
**Last updated:** [January 3, 2008, 7:15pm UTC](https://www.ruby-forum.com/t/fields-for-giving-undefined-method-exception/60723 "2008-01-03T19:15:54Z")

</div>

I’m getting an undefined method exception with the fields\_for method. I’m following the gem examples. The form\_for works but when I add fields\_for it breaks. Are there other examples of how this works anywhere?

---

## [Highlight member of has\_many association](https://www.ruby-forum.com/t/highlight-member-of-has-many-association/124845)

<div class="topic-metadata">

**Author:** [@reynar](https://www.ruby-forum.com/u/reynar)\
**Replies:** 1\
**Last updated:** [January 3, 2008, 7:15pm UTC](https://www.ruby-forum.com/t/highlight-member-of-has-many-association/124845 "2008-01-03T19:15:32Z")

</div>

Hi, I am trying to work out the best way to designate a member of a has\_many relationship with a specific responsibility. In this instance I have a customer model with many addresses, however I need to flag one of th…

---

## [Problems with fields\_for](https://www.ruby-forum.com/t/problems-with-fields-for/81970)

<div class="topic-metadata">

**Author:** [@mr\_brownstone](https://www.ruby-forum.com/u/mr_brownstone)\
**Replies:** 1\
**Last updated:** [January 3, 2008, 7:15pm UTC](https://www.ruby-forum.com/t/problems-with-fields-for/81970 "2008-01-03T19:15:10Z")

</div>

my models class Empresa \< ActiveRecord::Base has\_many :usuario end class Usuario \< ActiveRecord::Base has\_one :empresa (…) partial \_form \<% form\_for :empresa, @empresa, :url =\> {:action =\> ‘new’…

---

## [How to create a select list box and be able to write in it](https://www.ruby-forum.com/t/how-to-create-a-select-list-box-and-be-able-to-write-in-it/124915)

<div class="topic-metadata">

**Author:** [@captaffy](https://www.ruby-forum.com/u/captaffy)\
**Replies:** 1\
**Last updated:** [January 3, 2008, 7:14pm UTC](https://www.ruby-forum.com/t/how-to-create-a-select-list-box-and-be-able-to-write-in-it/124915 "2008-01-03T19:14:51Z")

</div>

I’m trying to create some kind of select box, with multiple names. I would like to have a sidebar but also be able to write the first later of those names. For example, if I am writing “Col” then the name Colsa, witch…

---

## [Does reload set session\[myvariable\] = nil?](https://www.ruby-forum.com/t/does-reload-set-session-myvariable-nil/124914)

<div class="topic-metadata">

**Author:** [@gavin](https://www.ruby-forum.com/u/gavin)\
**Replies:** 0\
**Last updated:** [January 3, 2008, 6:53pm UTC](https://www.ruby-forum.com/t/does-reload-set-session-myvariable-nil/124914 "2008-01-03T18:53:40Z")

</div>

I’ve got this in my index.html.erb @show\_statistics = session\[:show\_statistics\] Using the default 2.0 cookies session, it comes up as nil everytime I reload the browser. What’s the deal?

---

## [\[patch\] rake 0.7.3 to 0.8.x broke engines rake redefine\_task](https://www.ruby-forum.com/t/patch-rake-0-7-3-to-0-8-x-broke-engines-rake-redefine-task/124560)

<div class="topic-metadata">

**Author:** [@jdunneuk](https://www.ruby-forum.com/u/jdunneuk)\
**Replies:** 4\
**Last updated:** [January 3, 2008, 6:39pm UTC](https://www.ruby-forum.com/t/patch-rake-0-7-3-to-0-8-x-broke-engines-rake-redefine-task/124560 "2008-01-03T18:39:33Z")

</div>

Hi, The collaboa site for engines is having serious problems, so I’m posting here. As mentioned previously, rake 0.8.x broke the code for redefining rake tasks. The problem is that in rake 0.8.x, the first argument …

---

## [Overwriting association accesor](https://www.ruby-forum.com/t/overwriting-association-accesor/124710)

<div class="topic-metadata">

**Author:** [@Borja\_MartSSS\_n](https://www.ruby-forum.com/u/Borja_MartSSS_n)\
**Replies:** 3\
**Last updated:** [January 3, 2008, 6:38pm UTC](https://www.ruby-forum.com/t/overwriting-association-accesor/124710 "2008-01-03T18:38:01Z")

</div>

Hi, first of all I would like to wish a happy new year to all the list members. Here is my problem. I have a model class where I need to overwrite an accessor method in order to add some extra behaviour: class LineI…

---

## [Great news from acts\_as\_conference](https://www.ruby-forum.com/t/great-news-from-acts-as-conference/124828)

<div class="topic-metadata">

**Author:** [@flatekmonkey](https://www.ruby-forum.com/u/flatekmonkey)\
**Replies:** 1\
**Last updated:** [January 3, 2008, 6:09pm UTC](https://www.ruby-forum.com/t/great-news-from-acts-as-conference/124828 "2008-01-03T18:09:26Z")

</div>

Hey all, A quick acts\_as\_conference update. We are happy to announce the following: InfoQ Ruby editor Robert B. posted an interview about acts\_as\_conference :: Talking about Acts\_As\_Conference with Robert Dempsey C…

---

## [Please help getting error in fields\_for](https://www.ruby-forum.com/t/please-help-getting-error-in-fields-for/124905)

<div class="topic-metadata">

**Author:** [@ankit2584](https://www.ruby-forum.com/u/ankit2584)\
**Replies:** 0\
**Last updated:** [January 3, 2008, 5:43pm UTC](https://www.ruby-forum.com/t/please-help-getting-error-in-fields-for/124905 "2008-01-03T17:43:13Z")

</div>

Hi, I am using the fields\_for and am getting a problem of “undefined local variable or method \`organisation’ for #\<#Class:0x4775534:0x477550c\>” my person model is as class Person \< ActiveRecord::Base has\_and\_belong…

---

## [Remote\_form\_for with auto\_complete\_field](https://www.ruby-forum.com/t/remote-form-for-with-auto-complete-field/124904)

<div class="topic-metadata">

**Author:** [@karnirevuri](https://www.ruby-forum.com/u/karnirevuri)\
**Replies:** 0\
**Last updated:** [January 3, 2008, 5:33pm UTC](https://www.ruby-forum.com/t/remote-form-for-with-auto-complete-field/124904 "2008-01-03T17:33:01Z")

</div>

Hi friends I have problem with auto\_complete\_field. I have used auto\_complete\_field with in the remote\_form\_for. But when we enter the text in auto\_complete\_field two actions are calling auto\_complete\_field action …

---

## [Problem using rake to expire caches](https://www.ruby-forum.com/t/problem-using-rake-to-expire-caches/124902)

<div class="topic-metadata">

**Author:** [@vinay](https://www.ruby-forum.com/u/vinay)\
**Replies:** 0\
**Last updated:** [January 3, 2008, 5:23pm UTC](https://www.ruby-forum.com/t/problem-using-rake-to-expire-caches/124902 "2008-01-03T17:23:29Z")

</div>

I am trying to expire a fragment cache in rake. I know that the best practice to expire the cache is in the Sweepers. But as I have to expire the cache at the end of the month I was thinking on the lines of doing it …

---

## [Ajax error on Safari](https://www.ruby-forum.com/t/ajax-error-on-safari/124891)

<div class="topic-metadata">

**Author:** [@vapor](https://www.ruby-forum.com/u/vapor)\
**Replies:** 0\
**Last updated:** [January 3, 2008, 3:57pm UTC](https://www.ruby-forum.com/t/ajax-error-on-safari/124891 "2008-01-03T15:57:44Z")

</div>

Whenever page.hide ‘header’ is called from controller, it shows TypeError: value undefined … not an object. What could be wrong? Works fine on FF and IE

---

## [WIKI web hosting](https://www.ruby-forum.com/t/wiki-web-hosting/124617)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 5\
**Last updated:** [January 3, 2008, 3:17pm UTC](https://www.ruby-forum.com/t/wiki-web-hosting/124617 "2008-01-03T15:17:52Z")

</div>

Hello everyone. First of all I am a total newby to ROR. I was asked to come up and host a wiki website on my biz-data class. Heard that ROR is one of the easiest approaches to the given problem. I would really appreci…

---

## [TemplateError while moving to Rails 2.0.2 @ Ubuntu 7.10](https://www.ruby-forum.com/t/templateerror-while-moving-to-rails-2-0-2-ubuntu-7-10/124885)

<div class="topic-metadata">

**Author:** [@eddie](https://www.ruby-forum.com/u/eddie)\
**Replies:** 0\
**Last updated:** [January 3, 2008, 2:46pm UTC](https://www.ruby-forum.com/t/templateerror-while-moving-to-rails-2-0-2-ubuntu-7-10/124885 "2008-01-03T14:46:03Z")

</div>

Hi Guys, I got some weird error while moving to production box (Rails 2.0.2 @ Ubuntu 7.10): ActionView::TemplateError (undefined method \`topics\_path’ for #ActionView::Base:0xb6406170) /usr/lib/ruby/gems/1.8/gems/act…

---

## [Model question](https://www.ruby-forum.com/t/model-question/124880)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [January 3, 2008, 2:10pm UTC](https://www.ruby-forum.com/t/model-question/124880 "2008-01-03T14:10:26Z")

</div>

Situation: we’re creating an application for orders and order tracking. base class : Qoi (quotations, orders, invoices). Quotations \< Qoi, Orders \< Qoi , Invoices \< Qoi Each Qoi has\_many :line\_items (each line item h…

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

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