# Rails

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

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

---

## [Refactoring module](https://www.ruby-forum.com/t/refactoring-module/163108)

<div class="topic-metadata">

**Author:** [@on9west](https://www.ruby-forum.com/u/on9west)\
**Replies:** 11\
**Last updated:** [March 18, 2009, 4:28pm UTC](https://www.ruby-forum.com/t/refactoring-module/163108 "2009-03-18T16:28:58Z")

</div>

Dear all Please see the following module, In module SX3 SX4 and SX5 have similar class Tasklist, but inherit from different class. I will use the following code to connect to different data sources RemoteSX3Model.est…

---

## [How to use a freshly updated Rails gem?](https://www.ruby-forum.com/t/how-to-use-a-freshly-updated-rails-gem/163238)

<div class="topic-metadata">

**Author:** [@tharrisx](https://www.ruby-forum.com/u/tharrisx)\
**Replies:** 6\
**Last updated:** [March 18, 2009, 4:26pm UTC](https://www.ruby-forum.com/t/how-to-use-a-freshly-updated-rails-gem/163238 "2009-03-18T16:26:06Z")

</div>

Hi there, How do IÂ make my app pick up the new Rails gem that I have just updated? I have: just updated rails from version 2.1.0 to version 2.3.2 (console: “rails -v” → “Rails 2.3.2”) in environment.rb set: “RAILS\_…

---

## [Custom error messages](https://www.ruby-forum.com/t/custom-error-messages/163241)

<div class="topic-metadata">

**Author:** [@s-andringa](https://www.ruby-forum.com/u/s-andringa)\
**Replies:** 1\
**Last updated:** [March 18, 2009, 4:15pm UTC](https://www.ruby-forum.com/t/custom-error-messages/163241 "2009-03-18T16:15:12Z")

</div>

I’ve been trying to have a translated custom error message for when the format of a user’s email address is invalid. I’m running rails 2.2.2 and trying to save the translations to the key activerecord.errors.models.us…

---

## [Problem with restful\_authentication](https://www.ruby-forum.com/t/problem-with-restful-authentication/163234)

<div class="topic-metadata">

**Author:** [@indu](https://www.ruby-forum.com/u/indu)\
**Replies:** 9\
**Last updated:** [March 18, 2009, 4:09pm UTC](https://www.ruby-forum.com/t/problem-with-restful-authentication/163234 "2009-03-18T16:09:39Z")

</div>

Hi I am trying to implement restful\_authentication plugin in my rails application. But my user model contains extra fields like country\_id, state\_id, city\_id, phone\_number, status\_id, gender etc. Is it possible to ad…

---

## [Translate model name when validation fails](https://www.ruby-forum.com/t/translate-model-name-when-validation-fails/162404)

<div class="topic-metadata">

**Author:** [@fipa](https://www.ruby-forum.com/u/fipa)\
**Replies:** 2\
**Last updated:** [March 18, 2009, 3:59pm UTC](https://www.ruby-forum.com/t/translate-model-name-when-validation-fails/162404 "2009-03-18T15:59:07Z")

</div>

Let’s say I want to submit a user. Currently if the user submission fails, I get the name “user”, but I would like to translate it into other languages. I can make the translation work for its attributes but not the m…

---

## [Using text\_area helper in a partial](https://www.ruby-forum.com/t/using-text-area-helper-in-a-partial/163009)

<div class="topic-metadata">

**Author:** [@jak4](https://www.ruby-forum.com/u/jak4)\
**Replies:** 3\
**Last updated:** [March 18, 2009, 3:50pm UTC](https://www.ruby-forum.com/t/using-text-area-helper-in-a-partial/163009 "2009-03-18T15:50:42Z")

</div>

Hi, if someone could tell how to work around this. I’m calling a partial like so: render :partial =\> ‘space\_line’, :locals =\> {:external\_space =\> @new\_space.external\_space, :space =\> @new\_space} Within the partial I…

---

## [Legacy MySQL database and relationships](https://www.ruby-forum.com/t/legacy-mysql-database-and-relationships/163239)

<div class="topic-metadata">

**Author:** [@martins](https://www.ruby-forum.com/u/martins)\
**Replies:** 1\
**Last updated:** [March 18, 2009, 2:53pm UTC](https://www.ruby-forum.com/t/legacy-mysql-database-and-relationships/163239 "2009-03-18T14:53:29Z")

</div>

Hi, I´m able to get the data I want with AchievoPerson.find and AchievoProject.find, but the has\_and\_belongs\_to\_many associations wont work. Any suggestions or links to posts that might help me out would be highly a…

---

## [Uninitialized constant ActionController::AbstractRequest (NameError) with rails 2.3](https://www.ruby-forum.com/t/uninitialized-constant-actioncontroller-abstractrequest-nameerror-with-rails-2-3/163236)

<div class="topic-metadata">

**Author:** [@mixandgo](https://www.ruby-forum.com/u/mixandgo)\
**Replies:** 1\
**Last updated:** [March 18, 2009, 2:51pm UTC](https://www.ruby-forum.com/t/uninitialized-constant-actioncontroller-abstractrequest-nameerror-with-rails-2-3/163236 "2009-03-18T14:51:43Z")

</div>

Hi guys, I’ve just installed Rails 2.3 and I am using the clearance plugin with cucumber features. When I run rake features I get this “uninitialized constant ActionController::AbstractRequest (NameError)” error from…

---

## [Rails 2.3.0 - ActionController::AbstractRequest not being loaded](https://www.ruby-forum.com/t/rails-2-3-0-actioncontroller-abstractrequest-not-being-loaded/159954)

<div class="topic-metadata">

**Author:** [@g0nzo](https://www.ruby-forum.com/u/g0nzo)\
**Replies:** 4\
**Last updated:** [March 18, 2009, 2:49pm UTC](https://www.ruby-forum.com/t/rails-2-3-0-actioncontroller-abstractrequest-not-being-loaded/159954 "2009-03-18T14:49:21Z")

</div>

Hi, I got a plugin that extends ActionController::AbstractRequest. After updating Rails from 2.2.2 to 2.3.0 I’m getting the following error: ‘load\_missing\_constant’: uninitialized constant ActionController::AbstractR…

---

## [Reporting Site activity](https://www.ruby-forum.com/t/reporting-site-activity/163233)

<div class="topic-metadata">

**Author:** [@jbhruby](https://www.ruby-forum.com/u/jbhruby)\
**Replies:** 0\
**Last updated:** [March 18, 2009, 2:18pm UTC](https://www.ruby-forum.com/t/reporting-site-activity/163233 "2009-03-18T14:18:09Z")

</div>

Does anyone know of any discussions or blog posts around that discuss effective performance monitoring in Rails? What I’d really like to do is implement a constant feed of activity on my site, across all Models. Rathe…

---

## [Search across models](https://www.ruby-forum.com/t/search-across-models/163229)

<div class="topic-metadata">

**Author:** [@srikanth](https://www.ruby-forum.com/u/srikanth)\
**Replies:** 0\
**Last updated:** [March 18, 2009, 1:34pm UTC](https://www.ruby-forum.com/t/search-across-models/163229 "2009-03-18T13:34:44Z")

</div>

Hi all, I am trying to implement the search across models. But i could not able to do this. let me tell you my application details: i have tables like: 1)containerformats : contains the streamnames 2)transportstre…

---

## [Redbox implementation not showing anything](https://www.ruby-forum.com/t/redbox-implementation-not-showing-anything/196920)

<div class="topic-metadata">

**Author:** [@ram](https://www.ruby-forum.com/u/ram)\
**Replies:** 0\
**Last updated:** [March 18, 2009, 1:00pm UTC](https://www.ruby-forum.com/t/redbox-implementation-not-showing-anything/196920 "2009-03-18T13:00:06Z")

</div>

Hi all, Im trying to implement redbox for submitting some small forms. Here’s the code im using. #redbox link \<%= link\_to\_remote\_redbox ‘Change Password’, :url =\> {:controller =\> :users, :action =\> :change\_password,…

---

## [Security](https://www.ruby-forum.com/t/security/163225)

<div class="topic-metadata">

**Author:** [@Shak](https://www.ruby-forum.com/u/Shak)\
**Replies:** 0\
**Last updated:** [March 18, 2009, 12:52pm UTC](https://www.ruby-forum.com/t/security/163225 "2009-03-18T12:52:27Z")

</div>

Hi all, I’ve currently developing a rails application which relies on a further application server to get and store data. Regarding authentication, I’m currently looking at the brilliant Authlogic as a solution. Howe…

---

## [Update method problem in rails 2.2](https://www.ruby-forum.com/t/update-method-problem-in-rails-2-2/163215)

<div class="topic-metadata">

**Author:** [@senthil\_raja](https://www.ruby-forum.com/u/senthil_raja)\
**Replies:** 1\
**Last updated:** [March 18, 2009, 12:46pm UTC](https://www.ruby-forum.com/t/update-method-problem-in-rails-2-2/163215 "2009-03-18T12:46:33Z")

</div>

Hi Rails passengers While doing update i am facing new type of error in rails 2.2.2 Its having params eg) params\[:me\]\[:like\] while doing @me.update\_attribute(params\[:me\]) i am getting updated successfully but its not…

---

## [Ricerca in una combo](https://www.ruby-forum.com/t/ricerca-in-una-combo/163222)

<div class="topic-metadata">

**Author:** [@cool81](https://www.ruby-forum.com/u/cool81)\
**Replies:** 0\
**Last updated:** [March 18, 2009, 12:32pm UTC](https://www.ruby-forum.com/t/ricerca-in-una-combo/163222 "2009-03-18T12:32:52Z")

</div>

Salve, ho una combo che si riempie con dei nomi, dopo la chiamata ad un server. E’ possibile fare in modo che l’utente digiti sempre nella combo, il nominativo che intende ricercare e man mano vengono visualizzati, se…

---

## [Nested serialization with to\_json and to\_xml with array and hash element](https://www.ruby-forum.com/t/nested-serialization-with-to-json-and-to-xml-with-array-and-hash-element/158253)

<div class="topic-metadata">

**Author:** [@rubynewbie](https://www.ruby-forum.com/u/rubynewbie)\
**Replies:** 3\
**Last updated:** [March 18, 2009, 12:07pm UTC](https://www.ruby-forum.com/t/nested-serialization-with-to-json-and-to-xml-with-array-and-hash-element/158253 "2009-03-18T12:07:49Z")

</div>

Title: Nested serialization with to\_json and to\_xml with array and hash element class Person \< ActiveRecord::Base has\_one :address has\_one :job def office() return “Executive\_Suite” end end class Address \< Activ…

---

## [Creatin abn album using facebook API](https://www.ruby-forum.com/t/creatin-abn-album-using-facebook-api/163219)

<div class="topic-metadata">

**Author:** [@gandhi-tush](https://www.ruby-forum.com/u/gandhi-tush)\
**Replies:** 0\
**Last updated:** [March 18, 2009, 12:07pm UTC](https://www.ruby-forum.com/t/creatin-abn-album-using-facebook-api/163219 "2009-03-18T12:07:36Z")

</div>

Hi, I am integrating facebook with my application. I want to create an album using facebook API. Means I want to create an album in facebook through my application. Anyone know how to do that? I tried their Photos.cr…

---

## [Ruby and SCRUM workshops in Delhi Ruby March Meetup - Coming Saturday - 21 March](https://www.ruby-forum.com/t/ruby-and-scrum-workshops-in-delhi-ruby-march-meetup-coming-saturday-21-march/163216)

<div class="topic-metadata">

**Author:** [@kapil](https://www.ruby-forum.com/u/kapil)\
**Replies:** 1\
**Last updated:** [March 18, 2009, 11:48am UTC](https://www.ruby-forum.com/t/ruby-and-scrum-workshops-in-delhi-ruby-march-meetup-coming-saturday-21-march/163216 "2009-03-18T11:48:25Z")

</div>

Workshop : Meta programming with ruby - Part 2 Presenter : Sur Level : Basic / Intermediate Prerequisite : Basic Knowledge of object oriented programming. Detail : This will be second part of Metaprogramming session …

---

## [Gem to open xls office-2007](https://www.ruby-forum.com/t/gem-to-open-xls-office-2007/163213)

<div class="topic-metadata">

**Author:** [@salil](https://www.ruby-forum.com/u/salil)\
**Replies:** 0\
**Last updated:** [March 18, 2009, 10:57am UTC](https://www.ruby-forum.com/t/gem-to-open-xls-office-2007/163213 "2009-03-18T10:57:23Z")

</div>

Hi All, Is there any gem which support to open the file in office-2007. Roo,spreadsheets and parseExcel support upto office 2003. What i want is, i get xls file which is in office-2007 so it can’t be read by followin…

---

## [Socket#getaddrinfo works in console but not in server](https://www.ruby-forum.com/t/socket-getaddrinfo-works-in-console-but-not-in-server/163119)

<div class="topic-metadata">

**Author:** [@zaczheng](https://www.ruby-forum.com/u/zaczheng)\
**Replies:** 1\
**Last updated:** [March 18, 2009, 10:33am UTC](https://www.ruby-forum.com/t/socket-getaddrinfo-works-in-console-but-not-in-server/163119 "2009-03-18T10:33:58Z")

</div>

I am experiencing a strange problem with Socket#getaddrinfo. It correctly resolves IPs into hostnames while in console mode, but does not when run in server mode. When in server mode, it simply returns the original IP…

---

## [JAX India 2009: International Conference on Java Technologies April 06-10, Bangalore, India](https://www.ruby-forum.com/t/jax-india-2009-international-conference-on-java-technologies-april-06-10-bangalore-india/163208)

<div class="topic-metadata">

**Author:** [@2009jax](https://www.ruby-forum.com/u/2009jax)\
**Replies:** 0\
**Last updated:** [March 18, 2009, 10:28am UTC](https://www.ruby-forum.com/t/jax-india-2009-international-conference-on-java-technologies-april-06-10-bangalore-india/163208 "2009-03-18T10:28:30Z")

</div>

Hi, Here is an update on JAX India 2009, an International Conference on Java Technologies to be held in Bangalore between April 06 and 10. Liferay, SAP, Signsoft, isc2 and many other companies have stepped in as sp…

---

## [\[JOBS\] Bondi Junction, Sydney Australia - Ruby on Rails contractors - 3-6 months - 5 vacancies](https://www.ruby-forum.com/t/jobs-bondi-junction-sydney-australia-ruby-on-rails-contractors-3-6-months-5-vacancies/163210)

<div class="topic-metadata">

**Author:** [@Mark\_Mansour](https://www.ruby-forum.com/u/Mark_Mansour)\
**Replies:** 0\
**Last updated:** [March 18, 2009, 10:28am UTC](https://www.ruby-forum.com/t/jobs-bondi-junction-sydney-australia-ruby-on-rails-contractors-3-6-months-5-vacancies/163210 "2009-03-18T10:28:30Z")

</div>

Ruby On Rails Developer- CONTRACT -3-6 Months -Bondi Junction -$25-$50 per hour A contracting role has just come up with a client based in Bondi Junction (near the station). They require the following; -Mid to Senio…

---

## [How to install ActiveRecord 2.3.2](https://www.ruby-forum.com/t/how-to-install-activerecord-2-3-2/163128)

<div class="topic-metadata">

**Author:** [@OldSSSSSich\_VeteSSS](https://www.ruby-forum.com/u/OldSSSSSich_VeteSSS)\
**Replies:** 1\
**Last updated:** [March 18, 2009, 10:23am UTC](https://www.ruby-forum.com/t/how-to-install-activerecord-2-3-2/163128 "2009-03-18T10:23:48Z")

</div>

Hi, I have a hard time updating. If I run “gem update” it says it needs ActiveRecord 2.3.2. If I run “gem install activerecord” or “gem install activerecord -v 2.3.2” it installs activesupport. What am I doing/gettin…

---

## [Re: HowTo install plugins from github?](https://www.ruby-forum.com/t/re-howto-install-plugins-from-github/160018)

<div class="topic-metadata">

**Author:** [@Master\_Chief\_2007](https://www.ruby-forum.com/u/Master_Chief_2007)\
**Replies:** 6\
**Last updated:** [March 18, 2009, 10:00am UTC](https://www.ruby-forum.com/t/re-howto-install-plugins-from-github/160018 "2009-03-18T10:00:22Z")

</div>

Jason R. wrote: Hi I am a noob on RoR and I will agree that this git dependency came in from the left field for me too!:confused: All the documentation I saw about plugins blithely says use the following command …

---

## [Suggestions for a rails webhost](https://www.ruby-forum.com/t/suggestions-for-a-rails-webhost/158947)

<div class="topic-metadata">

**Author:** [@mrkohrea](https://www.ruby-forum.com/u/mrkohrea)\
**Replies:** 23\
**Last updated:** [March 18, 2009, 9:31am UTC](https://www.ruby-forum.com/t/suggestions-for-a-rails-webhost/158947 "2009-03-18T09:31:23Z")

</div>

I have multiple domains I want to move to a rails host. I would like full SSH access to the servers, ftp, and a knowledgeable support staff that I can get on the phone. Any suggestions?

---

## [Getting Error](https://www.ruby-forum.com/t/getting-error/163113)

<div class="topic-metadata">

**Author:** [@divyamohan](https://www.ruby-forum.com/u/divyamohan)\
**Replies:** 3\
**Last updated:** [March 18, 2009, 9:25am UTC](https://www.ruby-forum.com/t/getting-error/163113 "2009-03-18T09:25:44Z")

</div>

Hello, I am a rails newbie. I am using ruby 1.8.6, rails 2.3.2 & chrome browser in windows XP. I was trying out a hello world application. I ran the following commands. rails\> rails demo rails\> cd demo demo\> ru…

---

## [Default haml views](https://www.ruby-forum.com/t/default-haml-views/163205)

<div class="topic-metadata">

**Author:** [@sbusso](https://www.ruby-forum.com/u/sbusso)\
**Replies:** 0\
**Last updated:** [March 18, 2009, 8:58am UTC](https://www.ruby-forum.com/t/default-haml-views/163205 "2009-03-18T08:58:04Z")

</div>

Hello, Does anybody know a way to make the default view to be generated in haml instead of erb ? I found some scaffold generator for haml but I would like all generators (resources, controller) to generate haml. tha…

---

## [Ajax file upload with remote\_form\_tag](https://www.ruby-forum.com/t/ajax-file-upload-with-remote-form-tag/163204)

<div class="topic-metadata">

**Author:** [@amol](https://www.ruby-forum.com/u/amol)\
**Replies:** 1\
**Last updated:** [March 18, 2009, 8:49am UTC](https://www.ruby-forum.com/t/ajax-file-upload-with-remote-form-tag/163204 "2009-03-18T08:49:28Z")

</div>

when I tried below, it worked I could receive the file at server end through params\[:charts\_file\]. Now i wanted to have it ajax so I just added the ‘onSubmit’ like below, and it didnt work …

---

## [Google meshups](https://www.ruby-forum.com/t/google-meshups/162175)

<div class="topic-metadata">

**Author:** [@chaitanya](https://www.ruby-forum.com/u/chaitanya)\
**Replies:** 1\
**Last updated:** [March 18, 2009, 7:34am UTC](https://www.ruby-forum.com/t/google-meshups/162175 "2009-03-18T07:34:05Z")

</div>

Hello guys, How to change the google Maptype to hybrid instead of satelite/map

---

## [Rail 2.2 Sort multiple Columns in report](https://www.ruby-forum.com/t/rail-2-2-sort-multiple-columns-in-report/163189)

<div class="topic-metadata">

**Author:** [@Ian\_H\_Stewart](https://www.ruby-forum.com/u/Ian_H_Stewart)\
**Replies:** 1\
**Last updated:** [March 18, 2009, 7:19am UTC](https://www.ruby-forum.com/t/rail-2-2-sort-multiple-columns-in-report/163189 "2009-03-18T07:19:53Z")

</div>

My end user would like a report on a single page that he can select the header field and sort by that. First all the data is laid out in a table. Then each row is a different user record. Name State Zip Poin…

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

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