# Rails

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

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

---

## [Choose ruby version for a Rails](https://www.ruby-forum.com/t/choose-ruby-version-for-a-rails/189987)

<div class="topic-metadata">

**Author:** [@johndel](https://www.ruby-forum.com/u/johndel)\
**Replies:** 4\
**Last updated:** [June 10, 2010, 11:37pm UTC](https://www.ruby-forum.com/t/choose-ruby-version-for-a-rails/189987 "2010-06-10T23:37:33Z")

</div>

Well I am having a really weird problem, I am working on a project of another team and they were using ruby 1.8.7. I has installed ruby 1.8.6 so I’ve got many ruby errors and I couldn’t figures out why. Finally I foun…

---

## [Ajaxful rating question](https://www.ruby-forum.com/t/ajaxful-rating-question/189989)

<div class="topic-metadata">

**Author:** [@badnaam](https://www.ruby-forum.com/u/badnaam)\
**Replies:** 0\
**Last updated:** [June 10, 2010, 11:21pm UTC](https://www.ruby-forum.com/t/ajaxful-rating-question/189989 "2010-06-10T23:21:10Z")

</div>

I impleneted ajaxful rating on a Store model with 3 dimensions. I am caching rating average for each dimension as well as the overall average rating. The individual dimension rates are being saved and shown correctly …

---

## [Difference between belongs\_to and references keyword?](https://www.ruby-forum.com/t/difference-between-belongs-to-and-references-keyword/189612)

<div class="topic-metadata">

**Author:** [@khmckgrp](https://www.ruby-forum.com/u/khmckgrp)\
**Replies:** 7\
**Last updated:** [June 10, 2010, 9:22pm UTC](https://www.ruby-forum.com/t/difference-between-belongs-to-and-references-keyword/189612 "2010-06-10T21:22:18Z")

</div>

First, I am very new to ruby and rails. Searching for “references” is really tough, and so I’ve finally come here. I’m trying to create a scaffold. Let’s say a Business and a School both can have a single Address (n…

---

## [Separate validation file for each model](https://www.ruby-forum.com/t/separate-validation-file-for-each-model/189955)

<div class="topic-metadata">

**Author:** [@krunal\_shah](https://www.ruby-forum.com/u/krunal_shah)\
**Replies:** 4\
**Last updated:** [June 10, 2010, 8:04pm UTC](https://www.ruby-forum.com/t/separate-validation-file-for-each-model/189955 "2010-06-10T20:04:21Z")

</div>

I have a too many models and want to maitain separate validation and relationship files for each model. Is there any way i can maintain it with rails? Any specific advantage to do it?

---

## [Scaffold with parameter](https://www.ruby-forum.com/t/scaffold-with-parameter/189949)

<div class="topic-metadata">

**Author:** [@jmanivannancse](https://www.ruby-forum.com/u/jmanivannancse)\
**Replies:** 1\
**Last updated:** [June 10, 2010, 7:50pm UTC](https://www.ruby-forum.com/t/scaffold-with-parameter/189949 "2010-06-10T19:50:57Z")

</div>

Hi, I have implemented the scaffold crud for users table. My page is having show, edit, delete link and date-wise search option. I have to pass the date in links as a paramater when i clicked the search button. So i…

---

## [Ajax and redirect](https://www.ruby-forum.com/t/ajax-and-redirect/189717)

<div class="topic-metadata">

**Author:** [@badnaam](https://www.ruby-forum.com/u/badnaam)\
**Replies:** 3\
**Last updated:** [June 10, 2010, 7:40pm UTC](https://www.ruby-forum.com/t/ajax-and-redirect/189717 "2010-06-10T19:40:09Z")

</div>

Here is my use case I have a search model with two actions search\_set and search\_show. 1 - A user loads the home page which contains a search\_form, rendered via a partial (search\_form). 2 - User does a search, and th…

---

## [\[JOB\] RoR Developer in NYC @ 65-75/hour for 12 months](https://www.ruby-forum.com/t/job-ror-developer-in-nyc-65-75-hour-for-12-months/189978)

<div class="topic-metadata">

**Author:** [@OSS](https://www.ruby-forum.com/u/OSS)\
**Replies:** 0\
**Last updated:** [June 10, 2010, 7:27pm UTC](https://www.ruby-forum.com/t/job-ror-developer-in-nyc-65-75-hour-for-12-months/189978 "2010-06-10T19:27:37Z")

</div>

This is a full time, on-site, contract/hourly gig that lasts at least 12 months in New York City. No telecommuting allowed. A well funded start up is urgently looking for 2-3 talented developers with expert knowledge…

---

## [Printing in middle of an erb file](https://www.ruby-forum.com/t/printing-in-middle-of-an-erb-file/189969)

<div class="topic-metadata">

**Author:** [@dominic](https://www.ruby-forum.com/u/dominic)\
**Replies:** 1\
**Last updated:** [June 10, 2010, 6:45pm UTC](https://www.ruby-forum.com/t/printing-in-middle-of-an-erb-file/189969 "2010-06-10T18:45:28Z")

</div>

Hello, I’m having a problem to output things in the right order with erb1.9 and lighttpd . I don’t know if it’s the normal behaviour of erb but this is how it works for me: Content of my ERB file: test{\<%= 1 %\>2\<% pu…

---

## [Interpolation of Variables Through Generator Not Working](https://www.ruby-forum.com/t/interpolation-of-variables-through-generator-not-working/189976)

<div class="topic-metadata">

**Author:** [@tom-mac](https://www.ruby-forum.com/u/tom-mac)\
**Replies:** 0\
**Last updated:** [June 10, 2010, 6:31pm UTC](https://www.ruby-forum.com/t/interpolation-of-variables-through-generator-not-working/189976 "2010-06-10T18:31:25Z")

</div>

I have a generator that creates a model amongst other files. We need to be able to interpolate data into that file but nothing is actually being interpolated. It is simply copying the file verbatim. I was wondering if…

---

## [User information not getting if it is a same user](https://www.ruby-forum.com/t/user-information-not-getting-if-it-is-a-same-user/189973)

<div class="topic-metadata">

**Author:** [@vijay](https://www.ruby-forum.com/u/vijay)\
**Replies:** 0\
**Last updated:** [June 10, 2010, 6:03pm UTC](https://www.ruby-forum.com/t/user-information-not-getting-if-it-is-a-same-user/189973 "2010-06-10T18:03:54Z")

</div>

A checklist has many task\_status, I have displayed the view in nested model atttributes form, checklist\_instance attributes and its associated nested attributes are getting updated correctly. while i try to update us…

---

## [Uninitialized constant UserSessionsController::UserSession](https://www.ruby-forum.com/t/uninitialized-constant-usersessionscontroller-usersession/189967)

<div class="topic-metadata">

**Author:** [@sivakumar](https://www.ruby-forum.com/u/sivakumar)\
**Replies:** 0\
**Last updated:** [June 10, 2010, 5:54pm UTC](https://www.ruby-forum.com/t/uninitialized-constant-usersessionscontroller-usersession/189967 "2010-06-10T17:54:24Z")

</div>

This is the error I got. I am working with authlogic and was able to register the user. But when I create user\_sessions and try to login, I got his error. Guys can u help me out in this. Thnak you, Siva

---

## [Where to keep web search results](https://www.ruby-forum.com/t/where-to-keep-web-search-results/189968)

<div class="topic-metadata">

**Author:** [@ryokamiya](https://www.ruby-forum.com/u/ryokamiya)\
**Replies:** 0\
**Last updated:** [June 10, 2010, 5:51pm UTC](https://www.ruby-forum.com/t/where-to-keep-web-search-results/189968 "2010-06-10T17:51:35Z")

</div>

Hi, I’m trying to build a web application to search web and store the results onto my application database. Here’s my screen flow: Screen 1 - User can search by keyword, then click “Search”. Screen 2 - The page retur…

---

## [Ordered hash: order breaks down pretty quickly](https://www.ruby-forum.com/t/ordered-hash-order-breaks-down-pretty-quickly/189965)

<div class="topic-metadata">

**Author:** [@cmaxvv](https://www.ruby-forum.com/u/cmaxvv)\
**Replies:** 4\
**Last updated:** [June 10, 2010, 5:35pm UTC](https://www.ruby-forum.com/t/ordered-hash-order-breaks-down-pretty-quickly/189965 "2010-06-10T17:35:47Z")

</div>

I’m in rails 2.3.4, and i’m trying to convert an array into an ordered hash. Since an ordered hash is kind of an array in disguise i thought this would be simple. But the ordering is breaking down by the time i add …

---

## [ActionMailer or alternatives in Rails 2.X](https://www.ruby-forum.com/t/actionmailer-or-alternatives-in-rails-2-x/189957)

<div class="topic-metadata">

**Author:** [@slindsey3000](https://www.ruby-forum.com/u/slindsey3000)\
**Replies:** 2\
**Last updated:** [June 10, 2010, 5:31pm UTC](https://www.ruby-forum.com/t/actionmailer-or-alternatives-in-rails-2-x/189957 "2010-06-10T17:31:40Z")

</div>

I am developing in Rails 2.X (I forget the latest release!) Anyway. I need to incorporate email capability to my app. Is actionmailer the way to go or is there a plugin that is better. It seems quite easy and strai…

---

## [Rails removes newlines and spaces from ajax requests](https://www.ruby-forum.com/t/rails-removes-newlines-and-spaces-from-ajax-requests/189954)

<div class="topic-metadata">

**Author:** [@teesea](https://www.ruby-forum.com/u/teesea)\
**Replies:** 4\
**Last updated:** [June 10, 2010, 5:17pm UTC](https://www.ruby-forum.com/t/rails-removes-newlines-and-spaces-from-ajax-requests/189954 "2010-06-10T17:17:37Z")

</div>

Hi I have an app which posts an ajax request with with text area content, but when it does post it it gets all the newlines and multiple spaces removed (need to use multiple spacing for use with markdown code snippet…

---

## [Removing apostrophe from possessive](https://www.ruby-forum.com/t/removing-apostrophe-from-possessive/189843)

<div class="topic-metadata">

**Author:** [@merc](https://www.ruby-forum.com/u/merc)\
**Replies:** 11\
**Last updated:** [June 10, 2010, 3:45pm UTC](https://www.ruby-forum.com/t/removing-apostrophe-from-possessive/189843 "2010-06-10T15:45:07Z")

</div>

Hi, I’m using i.e. \<%= t :search\_users\_posts, :possessive =\> true %\> to get “Search user’s posts”. But what if the language I’m translating it to doesn’t use apostrophe, how do I translate such things / remove it? Th…

---

## [Which is the best CMS or blog in Rails?](https://www.ruby-forum.com/t/which-is-the-best-cms-or-blog-in-rails/68539)

<div class="topic-metadata">

**Author:** [@CSSSSdric\_H](https://www.ruby-forum.com/u/CSSSSdric_H)\
**Replies:** 9\
**Last updated:** [June 10, 2010, 3:11pm UTC](https://www.ruby-forum.com/t/which-is-the-best-cms-or-blog-in-rails/68539 "2010-06-10T15:11:28Z")

</div>

Hi guys I need to create a website + blog with Rails. Instead of doing all of this myself I think it’s better to use an existing CMS or blog. It must be easy to extend with others rails applications or controllers an…

---

## [How come need to get MySQL to work in a strange way?](https://www.ruby-forum.com/t/how-come-need-to-get-mysql-to-work-in-a-strange-way/189956)

<div class="topic-metadata">

**Author:** [@winterheat](https://www.ruby-forum.com/u/winterheat)\
**Replies:** 0\
**Last updated:** [June 10, 2010, 3:10pm UTC](https://www.ruby-forum.com/t/how-come-need-to-get-mysql-to-work-in-a-strange-way/189956 "2010-06-10T15:10:07Z")

</div>

The following is an error for using RoR with MySQL: C:\\ror\\shov17\>rake db:migrate (in C:/ror/shov17) !!! The bundled mysql.rb driver has been removed from Rails 2.2. Please install the mysql gem and try again: gem i…

---

## [Migrate generate an error with character utf8](https://www.ruby-forum.com/t/migrate-generate-an-error-with-character-utf8/197140)

<div class="topic-metadata">

**Author:** [@ziburudebian](https://www.ruby-forum.com/u/ziburudebian)\
**Replies:** 0\
**Last updated:** [June 10, 2010, 2:16pm UTC](https://www.ruby-forum.com/t/migrate-generate-an-error-with-character-utf8/197140 "2010-06-10T14:16:50Z")

</div>

hi, i have this message NoMethodError: undefined method \`ord’ for 0:Fixnum: SET NAMES ‘utf8’ when i use the command rake db:migrate Have you an idea ? here my files : http://patxi.mayol.free.fr/public/database.yml …

---

## [AR private methods](https://www.ruby-forum.com/t/ar-private-methods/189950)

<div class="topic-metadata">

**Author:** [@jarl](https://www.ruby-forum.com/u/jarl)\
**Replies:** 0\
**Last updated:** [June 10, 2010, 1:10pm UTC](https://www.ruby-forum.com/t/ar-private-methods/189950 "2010-06-10T13:10:35Z")

</div>

Hi. I have an AR model named Order, and a field in the DB named expired. I dont want this field to be modified from outside the model. Therefore I have declared a private method expired=(value) in my Order model. Th…

---

## [Rails 3 Migration Guide Anywhere?](https://www.ruby-forum.com/t/rails-3-migration-guide-anywhere/189940)

<div class="topic-metadata">

**Author:** [@Owain](https://www.ruby-forum.com/u/Owain)\
**Replies:** 2\
**Last updated:** [June 10, 2010, 12:55pm UTC](https://www.ruby-forum.com/t/rails-3-migration-guide-anywhere/189940 "2010-06-10T12:55:57Z")

</div>

Has anyone developed or come across on how to migrate to Rails 3 from prior releases. I would like an idea of how much work it would be. O.

---

## [How to get back to development mode?](https://www.ruby-forum.com/t/how-to-get-back-to-development-mode/189941)

<div class="topic-metadata">

**Author:** [@Xiaohua\_D](https://www.ruby-forum.com/u/Xiaohua_D)\
**Replies:** 2\
**Last updated:** [June 10, 2010, 12:43pm UTC](https://www.ruby-forum.com/t/how-to-get-back-to-development-mode/189941 "2010-06-10T12:43:40Z")

</div>

Hi , i run RAILS\_ENV=‘production’ rake db:migrate , script/server -e production, i can successfully run in production environment now. But when i wanna go back to development mode with rake db:migrate , script/serv…

---

## [ROR3.beta4 on ubuntu10.04 error](https://www.ruby-forum.com/t/ror3-beta4-on-ubuntu10-04-error/189937)

<div class="topic-metadata">

**Author:** [@c2h2](https://www.ruby-forum.com/u/c2h2)\
**Replies:** 2\
**Last updated:** [June 10, 2010, 12:21pm UTC](https://www.ruby-forum.com/t/ror3-beta4-on-ubuntu10-04-error/189937 "2010-06-10T12:21:25Z")

</div>

hi, im trying to experiment a rails3 on my ubuntu10.04 32bit, with installation guide from rails official website have installed all packages, when i try to run script/rails server it showed my following errors: root…

---

## [Options\_for\_select error](https://www.ruby-forum.com/t/options-for-select-error/189938)

<div class="topic-metadata">

**Author:** [@anjalithampi](https://www.ruby-forum.com/u/anjalithampi)\
**Replies:** 2\
**Last updated:** [June 10, 2010, 12:04pm UTC](https://www.ruby-forum.com/t/options-for-select-error/189938 "2010-06-10T12:04:50Z")

</div>

Hi, I am using rails 2.3.5 with ruby 1.8.7. On using options\_for\_select/options\_from\_collection\_for\_select with select\_tag I get the following error: wrong number of arguments (1 for 0) This the code I am using in m…

---

## [Hi, how can I split line length in Rails?](https://www.ruby-forum.com/t/hi-how-can-i-split-line-length-in-rails/189102)

<div class="topic-metadata">

**Author:** [@Ainar\_A](https://www.ruby-forum.com/u/Ainar_A)\
**Replies:** 4\
**Last updated:** [June 10, 2010, 11:46am UTC](https://www.ruby-forum.com/t/hi-how-can-i-split-line-length-in-rails/189102 "2010-06-10T11:46:53Z")

</div>

Hi to everyone! I need to split one long line in two or multiple lines… how can I do that? I have a form where you can write in for example 200 character long line (“aaaaaaaaa…”), when I submit it(line contains no spa…

---

## [How do I set session\_id cookies securely on an http page?](https://www.ruby-forum.com/t/how-do-i-set-session-id-cookies-securely-on-an-http-page/189859)

<div class="topic-metadata">

**Author:** [@sheepfunk](https://www.ruby-forum.com/u/sheepfunk)\
**Replies:** 4\
**Last updated:** [June 10, 2010, 11:37am UTC](https://www.ruby-forum.com/t/how-do-i-set-session-id-cookies-securely-on-an-http-page/189859 "2010-06-10T11:37:31Z")

</div>

I added ActionController::Base.session\_options\[:secure\] = true to ~/config/environments/production.rb and now my app sets a different session\_id cookie on every request to a non ssl page, making the session useless. …

---

## [Jobs](https://www.ruby-forum.com/t/jobs/189947)

<div class="topic-metadata">

**Author:** [@debadatta](https://www.ruby-forum.com/u/debadatta)\
**Replies:** 0\
**Last updated:** [June 10, 2010, 11:33am UTC](https://www.ruby-forum.com/t/jobs/189947 "2010-06-10T11:33:25Z")

</div>

Hi all I am working with Ruby on Rails,experience of 6Months. I need a job in a company any where in India. Thanks Debadatta Pradhan

---

## [Using partials with XML builder, what's the right way?](https://www.ruby-forum.com/t/using-partials-with-xml-builder-whats-the-right-way/189930)

<div class="topic-metadata">

**Author:** [@Matthew\_Hillsboroug](https://www.ruby-forum.com/u/Matthew_Hillsboroug)\
**Replies:** 2\
**Last updated:** [June 10, 2010, 11:30am UTC](https://www.ruby-forum.com/t/using-partials-with-xml-builder-whats-the-right-way/189930 "2010-06-10T11:30:29Z")

</div>

Hello everyone, Partials in XML builder are proving to be non-trivial. After some initial Google searching, I found the following to work, although it’s not 100% xml.foo do xml.id(foo.id) xml.created\_at(fo…

---

## [Mac OS/X and Rails 3?](https://www.ruby-forum.com/t/mac-os-x-and-rails-3/189678)

<div class="topic-metadata">

**Author:** [@audreylee88](https://www.ruby-forum.com/u/audreylee88)\
**Replies:** 4\
**Last updated:** [June 10, 2010, 10:38am UTC](https://www.ruby-forum.com/t/mac-os-x-and-rails-3/189678 "2010-06-10T10:38:24Z")

</div>

Hello List, Label me a newb, but how do you install Rails 3 on your Mac? Google sent me to these URLs: http://asciicasts.com/episodes/200-rails-3-beta-and-rvm From early Feb 2010 I see this short recipe: gem insta…

---

## [Showing youtube video](https://www.ruby-forum.com/t/showing-youtube-video/189932)

<div class="topic-metadata">

**Author:** [@gandhi-tush](https://www.ruby-forum.com/u/gandhi-tush)\
**Replies:** 4\
**Last updated:** [June 10, 2010, 9:03am UTC](https://www.ruby-forum.com/t/showing-youtube-video/189932 "2010-06-10T09:03:40Z")

</div>

Hi, I want to build an functionality by which user will add the youtube video link into my app. After that he/she should be able to see the video in my application. Like in facebook you can add the video link and tha…

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

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