# Rails

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

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

---

## [How to make a Rails app multi-language](https://www.ruby-forum.com/t/how-to-make-a-rails-app-multi-language/141447)

<div class="topic-metadata">

**Author:** [@metaltree](https://www.ruby-forum.com/u/metaltree)\
**Replies:** 9\
**Last updated:** [June 26, 2008, 11:19am UTC](https://www.ruby-forum.com/t/how-to-make-a-rails-app-multi-language/141447 "2008-06-26T11:19:19Z")

</div>

I need to have a Rails application into at least two languages (French & English), but I hesistate to hardcode it. I’ve read a bit about the GNU gettext library. Does anybody know about a clear tutorial on the topic? …

---

## [Undefined method \`store\_full\_sti\_class=' for ActiveRecord::Base:Class (NoMethodError)](https://www.ruby-forum.com/t/undefined-method-store-full-sti-class-for-activerecord-class-nomethoderror/139274)

<div class="topic-metadata">

**Author:** [@Iros](https://www.ruby-forum.com/u/Iros)\
**Replies:** 3\
**Last updated:** [June 26, 2008, 10:26am UTC](https://www.ruby-forum.com/t/undefined-method-store-full-sti-class-for-activerecord-class-nomethoderror/139274 "2008-06-26T10:26:35Z")

</div>

Hi everyone, I created a new demo app with ‘rails demo’ and proceeded to try and launch the server with ‘ruby scripts/server’. I get the following stack: C:\\railsProj\\demo\>ruby script/server =\> Booting Mongrel (use …

---

## [Using YUI uploader / authentication\_token set but still error / session issue?](https://www.ruby-forum.com/t/using-yui-uploader-authentication-token-set-but-still-error-session-issue/137593)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 5\
**Last updated:** [June 26, 2008, 9:40am UTC](https://www.ruby-forum.com/t/using-yui-uploader-authentication-token-set-but-still-error-session-issue/137593 "2008-06-26T09:40:15Z")

</div>

Hi, Two questions. Or three. Several issues at once. I’m using the YUI uploader with Rails, or at least I’m trying… (http://developer.yahoo.com/yui/uploader/) \[ABOUT: The YUI uploader is a Flash-uploader, which is in…

---

## [Trying to use find my model but I get an error](https://www.ruby-forum.com/t/trying-to-use-find-my-model-but-i-get-an-error/141466)

<div class="topic-metadata">

**Author:** [@DavidPaquet](https://www.ruby-forum.com/u/DavidPaquet)\
**Replies:** 4\
**Last updated:** [June 26, 2008, 9:35am UTC](https://www.ruby-forum.com/t/trying-to-use-find-my-model-but-i-get-an-error/141466 "2008-06-26T09:35:57Z")

</div>

Hello everyone, I’m pretty sure that my problem is easy but I’ve been fiddling with this for an hour and I cannot see why it’s not working So in my model I defined this method : def self.previous find(:first, :condi…

---

## [Managing Google Calendar Integration](https://www.ruby-forum.com/t/managing-google-calendar-integration/133510)

<div class="topic-metadata">

**Author:** [@xgamerx](https://www.ruby-forum.com/u/xgamerx)\
**Replies:** 7\
**Last updated:** [June 26, 2008, 8:27am UTC](https://www.ruby-forum.com/t/managing-google-calendar-integration/133510 "2008-06-26T08:27:48Z")

</div>

Alright, I have an issue and I would love some advice. Here is the situation: I am developing a site which syncs with Google C… You can imagine, the whole bit: list of events, create events, delete events, all from t…

---

## [Calendar implementation](https://www.ruby-forum.com/t/calendar-implementation/140871)

<div class="topic-metadata">

**Author:** [@paradise](https://www.ruby-forum.com/u/paradise)\
**Replies:** 7\
**Last updated:** [June 26, 2008, 7:38am UTC](https://www.ruby-forum.com/t/calendar-implementation/140871 "2008-06-26T07:38:54Z")

</div>

I have a question regarding thoughts on calendar implementation within my ruby on rails site. One of the requirements of the calendar functionality is that other users must be able to make appointments within an indi…

---

## [Searching with char like #](https://www.ruby-forum.com/t/searching-with-char-like/141329)

<div class="topic-metadata">

**Author:** [@eagoweb](https://www.ruby-forum.com/u/eagoweb)\
**Replies:** 1\
**Last updated:** [June 26, 2008, 6:05am UTC](https://www.ruby-forum.com/t/searching-with-char-like/141329 "2008-06-26T06:05:55Z")

</div>

Hello i got a field to search a name in the DB The problem is that the name could have char like # so in my view: \<%= text\_field\_with\_auto\_complete :member, :name%\> \<%= observe\_field ‘member\_name’, :frequency =\> 0.5…

---

## [What's the best way to model this?](https://www.ruby-forum.com/t/whats-the-best-way-to-model-this/141374)

<div class="topic-metadata">

**Author:** [@PeteSalty](https://www.ruby-forum.com/u/PeteSalty)\
**Replies:** 3\
**Last updated:** [June 26, 2008, 5:44am UTC](https://www.ruby-forum.com/t/whats-the-best-way-to-model-this/141374 "2008-06-26T05:44:16Z")

</div>

Let’s say I have a user model and a contacts model (contacts contains name, phone number, email, etc. of people that the user knows). The models would be User: has\_many :contacts Contact: belongs\_to :user Now let’…

---

## [Need some suggestions on search strategy](https://www.ruby-forum.com/t/need-some-suggestions-on-search-strategy/141409)

<div class="topic-metadata">

**Author:** [@schof](https://www.ruby-forum.com/u/schof)\
**Replies:** 3\
**Last updated:** [June 26, 2008, 5:40am UTC](https://www.ruby-forum.com/t/need-some-suggestions-on-search-strategy/141409 "2008-06-26T05:40:11Z")

</div>

I need some suggestions for the best way to implement search for my client. They have several models (project, request, usage, etc.) that they need to search for. Each model will have its own search page with a form…

---

## [Custom select still wrapped in fieldWithErrors?](https://www.ruby-forum.com/t/custom-select-still-wrapped-in-fieldwitherrors/141470)

<div class="topic-metadata">

**Author:** [@Danimal](https://www.ruby-forum.com/u/Danimal)\
**Replies:** 0\
**Last updated:** [June 26, 2008, 5:31am UTC](https://www.ruby-forum.com/t/custom-select-still-wrapped-in-fieldwitherrors/141470 "2008-06-26T05:31:23Z")

</div>

I noticed today that if I build my own \<select …\> tag, even with the right id, it doesn’t get wrapped in the fieldWithErrors div on a validation error. If, I use one of the select or collection\_select helpers, it does…

---

## [Saving belongs\_to associations](https://www.ruby-forum.com/t/saving-belongs-to-associations/141464)

<div class="topic-metadata">

**Author:** [@Jeff\_Lee](https://www.ruby-forum.com/u/Jeff_Lee)\
**Replies:** 0\
**Last updated:** [June 26, 2008, 2:21am UTC](https://www.ruby-forum.com/t/saving-belongs-to-associations/141464 "2008-06-26T02:21:42Z")

</div>

I’m trying to save a username along with profiles (User has\_many Profiles; Profile belongs\_to User). I had a portion of this working (updating user info) but I cannot create new user records. I get the following error…

---

## [Can't access params in my model class](https://www.ruby-forum.com/t/cant-access-params-in-my-model-class/141369)

<div class="topic-metadata">

**Author:** [@RichardOnRails](https://www.ruby-forum.com/u/RichardOnRails)\
**Replies:** 9\
**Last updated:** [June 26, 2008, 2:16am UTC](https://www.ruby-forum.com/t/cant-access-params-in-my-model-class/141369 "2008-06-26T02:16:28Z")

</div>

Hi All, I’ve got a set of constraints in my model that work fine. I wanted to remove leading and trailing blanks in a :symbol entry if it is otherwise valid. So I added lines 9 & 10, as seen in the model class belo…

---

## [Regex question](https://www.ruby-forum.com/t/regex-question/141454)

<div class="topic-metadata">

**Author:** [@staypufd](https://www.ruby-forum.com/u/staypufd)\
**Replies:** 2\
**Last updated:** [June 26, 2008, 1:03am UTC](https://www.ruby-forum.com/t/regex-question/141454 "2008-06-26T01:03:35Z")

</div>

I’m trying to replace all characters that are not letters numbers and white spaces in a string. I’m getting the characters eliminated in this case a comma but the white space is eliminated to. How do I get around that…

---

## [Diff-ing database to test data migration?](https://www.ruby-forum.com/t/diff-ing-database-to-test-data-migration/141453)

<div class="topic-metadata">

**Author:** [@Eric\_LIn](https://www.ruby-forum.com/u/Eric_LIn)\
**Replies:** 1\
**Last updated:** [June 26, 2008, 12:27am UTC](https://www.ruby-forum.com/t/diff-ing-database-to-test-data-migration/141453 "2008-06-26T00:27:40Z")

</div>

Hi All, Is there a tool for diff-ing the before and after state of a database (both table structure and data) for the purpose of ensuring a Rails migration has the desired effect? If that’s not possible, is there a w…

---

## [Saving list of IDs in a :string type field?](https://www.ruby-forum.com/t/saving-list-of-ids-in-a-string-type-field/141445)

<div class="topic-metadata">

**Author:** [@andy](https://www.ruby-forum.com/u/andy)\
**Replies:** 2\
**Last updated:** [June 25, 2008, 10:56pm UTC](https://www.ruby-forum.com/t/saving-list-of-ids-in-a-string-type-field/141445 "2008-06-25T22:56:20Z")

</div>

Hello, I’m using a session variable to store a list of IDs during a session. Basically, a user selects many options from a group of checkboxes, and I save that in a session variable. When I retrieve the session varia…

---

## [Each\_char question](https://www.ruby-forum.com/t/each-char-question/141435)

<div class="topic-metadata">

**Author:** [@jvazquez](https://www.ruby-forum.com/u/jvazquez)\
**Replies:** 6\
**Last updated:** [June 25, 2008, 10:48pm UTC](https://www.ruby-forum.com/t/each-char-question/141435 "2008-06-25T22:48:07Z")

</div>

I am running ruby 1.8.6 patchlevel 111 on Windows XP(same problem with OS X). I am wondering why each\_char doesn’t work for me? I looked at the documentation and it shows ‘each\_char’, however when I look at the result…

---

## [Unable to run tests for acts\_as\_nested\_set](https://www.ruby-forum.com/t/unable-to-run-tests-for-acts-as-nested-set/141438)

<div class="topic-metadata">

**Author:** [@mike](https://www.ruby-forum.com/u/mike)\
**Replies:** 0\
**Last updated:** [June 25, 2008, 9:29pm UTC](https://www.ruby-forum.com/t/unable-to-run-tests-for-acts-as-nested-set/141438 "2008-06-25T21:29:31Z")

</div>

Hi, I have acts\_as\_nested\_set installed in my app under vendor/plugins. When I run ‘rake test:plugins’ I get the following error: /usr/bin/ruby1.8 -Ilib:test “/var/lib/gems/1.8/gems/rake-0.8.1/lib/ rake/rake\_test\_loa…

---

## [Error with mongrel\_rails start](https://www.ruby-forum.com/t/error-with-mongrel-rails-start/141428)

<div class="topic-metadata">

**Author:** [@McLobster](https://www.ruby-forum.com/u/McLobster)\
**Replies:** 4\
**Last updated:** [June 25, 2008, 8:51pm UTC](https://www.ruby-forum.com/t/error-with-mongrel-rails-start/141428 "2008-06-25T20:51:59Z")

</div>

When I make an empty Rails web application, and go through the steps to create/include a database, and scaffold, mongrel\_rails start (or ruby script/server) works just fine. However, I attempted this with a pre-existi…

---

## [How do I run Instanrails alongside WAMP](https://www.ruby-forum.com/t/how-do-i-run-instanrails-alongside-wamp/137695)

<div class="topic-metadata">

**Author:** [@electronicmonkey](https://www.ruby-forum.com/u/electronicmonkey)\
**Replies:** 1\
**Last updated:** [June 25, 2008, 8:40pm UTC](https://www.ruby-forum.com/t/how-do-i-run-instanrails-alongside-wamp/137695 "2008-06-25T20:40:50Z")

</div>

I had initially installed WAMP on my local machine but as I am learning ROR I also downloaded Instantrails and run the install . However there is conflict because the ports needed are not available (used by previous …

---

## [Tracking Who Created What](https://www.ruby-forum.com/t/tracking-who-created-what/141254)

<div class="topic-metadata">

**Author:** [@stimpy](https://www.ruby-forum.com/u/stimpy)\
**Replies:** 9\
**Last updated:** [June 25, 2008, 8:22pm UTC](https://www.ruby-forum.com/t/tracking-who-created-what/141254 "2008-06-25T20:22:00Z")

</div>

I have many tables in my database and I would like to track which user created which object. I know I could use polymorphic relationships between the tables, but I’m not sure of what goes where. Any help?

---

## [Searching with Char like #](https://www.ruby-forum.com/t/searching-with-char-like/196723)

<div class="topic-metadata">

**Author:** [@eagoweb](https://www.ruby-forum.com/u/eagoweb)\
**Replies:** 5\
**Last updated:** [June 25, 2008, 8:08pm UTC](https://www.ruby-forum.com/t/searching-with-char-like/196723 "2008-06-25T20:08:14Z")

</div>

Hello i got a field to search a name in the DB The problem is that the name could have char like # so in my view: \<%= text\_field\_with\_auto\_complete :member, :name%\> \<%= observe\_field ‘member\_name’, :frequency =\> 0.5…

---

## [ActiveRecord 2.1 Migration support](https://www.ruby-forum.com/t/activerecord-2-1-migration-support/141307)

<div class="topic-metadata">

**Author:** [@Grant\_Croker](https://www.ruby-forum.com/u/Grant_Croker)\
**Replies:** 9\
**Last updated:** [June 25, 2008, 6:53pm UTC](https://www.ruby-forum.com/t/activerecord-2-1-migration-support/141307 "2008-06-25T18:53:24Z")

</div>

Hi all, I am in the process of adding Migration support to the Ingres ActiveRecord adapter and have run in to a problem. During the call to create\_table the Ingres adapter some how causes ruby to blow the stack and c…

---

## [Where to put the transaction?](https://www.ruby-forum.com/t/where-to-put-the-transaction/141345)

<div class="topic-metadata">

**Author:** [@kap](https://www.ruby-forum.com/u/kap)\
**Replies:** 1\
**Last updated:** [June 25, 2008, 6:38pm UTC](https://www.ruby-forum.com/t/where-to-put-the-transaction/141345 "2008-06-25T18:38:43Z")

</div>

Hi, I’m rewriting some really old code these days and I’m trying to adhere to the “fat model, skinny controller” approach. I’m wondering how much to actually stuff into the model, and if there’s some rule of thumb. Fo…

---

## [Wrong number of arguments (1 for 0) when using respond\_to?](https://www.ruby-forum.com/t/wrong-number-of-arguments-1-for-0-when-using-respond-to/141338)

<div class="topic-metadata">

**Author:** [@destiney](https://www.ruby-forum.com/u/destiney)\
**Replies:** 2\
**Last updated:** [June 25, 2008, 6:23pm UTC](https://www.ruby-forum.com/t/wrong-number-of-arguments-1-for-0-when-using-respond-to/141338 "2008-06-25T18:23:28Z")

</div>

Trying to get an otherwise working app (in Rails 2.0.2) up to speed with Rails 2.1.0 and Ruby 1.8.7, I have some broken code I can’t seem to fix: module Pathmaker def self.append\_features( base ) base.before\_save do…

---

## [Completely begginer on programming](https://www.ruby-forum.com/t/completely-begginer-on-programming/141380)

<div class="topic-metadata">

**Author:** [@reano](https://www.ruby-forum.com/u/reano)\
**Replies:** 5\
**Last updated:** [June 25, 2008, 6:21pm UTC](https://www.ruby-forum.com/t/completely-begginer-on-programming/141380 "2008-06-25T18:21:08Z")

</div>

Hi guys! I´ve just heard about Rails. It seems really good and I would like to know if anyone could give a tip about how to start programming on Rails. Important: it should be something focused on beginners. Although…

---

## [Repeatable Form Elements](https://www.ruby-forum.com/t/repeatable-form-elements/141365)

<div class="topic-metadata">

**Author:** [@john\_old](https://www.ruby-forum.com/u/john_old)\
**Replies:** 2\
**Last updated:** [June 25, 2008, 6:14pm UTC](https://www.ruby-forum.com/t/repeatable-form-elements/141365 "2008-06-25T18:14:40Z")

</div>

Does anyone know any good “recipe” to have repeatable form elements in Ruby on Rails sites? As an example, let’s say I want users to be able to add as many addresses as possible. An address object consists of two addr…

---

## [Upgrade issues](https://www.ruby-forum.com/t/upgrade-issues/141341)

<div class="topic-metadata">

**Author:** [@destiney](https://www.ruby-forum.com/u/destiney)\
**Replies:** 2\
**Last updated:** [June 25, 2008, 6:05pm UTC](https://www.ruby-forum.com/t/upgrade-issues/141341 "2008-06-25T18:05:50Z")

</div>

I tried upgrading my older 1.8.6 Ruby install to the latest stable 1.8.6 release, version 1.8.6-p230 specifically, to benefit from the latest security updates. I used this configuration: ./configure --prefix=/usr/loc…

---

## [RJS can't modify frozen string](https://www.ruby-forum.com/t/rjs-cant-modify-frozen-string/141041)

<div class="topic-metadata">

**Author:** [@Sav](https://www.ruby-forum.com/u/Sav)\
**Replies:** 5\
**Last updated:** [June 25, 2008, 6:04pm UTC](https://www.ruby-forum.com/t/rjs-cant-modify-frozen-string/141041 "2008-06-25T18:04:40Z")

</div>

Any ideas why RJS would start causing “can’t modify frozen string” errors? This was working last night and I’m not sure what could have been changed to cause this. The app is on a VPS not shared hosting. /!\\ FAILSAF…

---

## [Trying to take :locals out of my partial call in Rails 2.1](https://www.ruby-forum.com/t/trying-to-take-locals-out-of-my-partial-call-in-rails-2-1/141417)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 3\
**Last updated:** [June 25, 2008, 5:57pm UTC](https://www.ruby-forum.com/t/trying-to-take-locals-out-of-my-partial-call-in-rails-2-1/141417 "2008-06-25T17:57:38Z")

</div>

Mr. Cheung, I was reading your http://www.spacevatican.org/ and in your May 3rd blog you discuss a topic of which I show (below); When I try to take the :locals out of my partial call, the form blows up with this mes…

---

## [Undefined method \`auto\_complete\_for'](https://www.ruby-forum.com/t/undefined-method-auto-complete-for/141378)

<div class="topic-metadata">

**Author:** [@Prasanna\_kumar\_N](https://www.ruby-forum.com/u/Prasanna_kumar_N)\
**Replies:** 4\
**Last updated:** [June 25, 2008, 5:28pm UTC](https://www.ruby-forum.com/t/undefined-method-auto-complete-for/141378 "2008-06-25T17:28:46Z")

</div>

Migrated from rails 1.2.2 to rails 2.0 Now i get the following error, which was working earlier. undefined method \`auto\_complete\_for’ Aftter reading several posts…i tried to run script\\plugin install auto\_complte it…

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

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