# Rails

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

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

---

## [Select\_tag](https://www.ruby-forum.com/t/select-tag/186977)

<div class="topic-metadata">

**Author:** [@krismartin](https://www.ruby-forum.com/u/krismartin)\
**Replies:** 3\
**Last updated:** [April 16, 2010, 7:14am UTC](https://www.ruby-forum.com/t/select-tag/186977 "2010-04-16T07:14:32Z")

</div>

a stupid question from a newbie… how can i populate my select\_tag with the values from a SELECT DISTINCT statement? thanks for bearing with my stupidity…

---

## [Unique RoR Design Issue](https://www.ruby-forum.com/t/unique-ror-design-issue/187046)

<div class="topic-metadata">

**Author:** [@bluebull](https://www.ruby-forum.com/u/bluebull)\
**Replies:** 3\
**Last updated:** [April 16, 2010, 6:51am UTC](https://www.ruby-forum.com/t/unique-ror-design-issue/187046 "2010-04-16T06:51:42Z")

</div>

Hi Folks, I am faced with a unique RoR design Issue and thought of getting some advice on how go about this requirement. I need to: Create a web application to login / Logout/ Manage Users Register queries with bou…

---

## [Some error while installing RedMine no idea what it is](https://www.ruby-forum.com/t/some-error-while-installing-redmine-no-idea-what-it-is/187003)

<div class="topic-metadata">

**Author:** [@abcd-cards](https://www.ruby-forum.com/u/abcd-cards)\
**Replies:** 5\
**Last updated:** [April 16, 2010, 6:45am UTC](https://www.ruby-forum.com/t/some-error-while-installing-redmine-no-idea-what-it-is/187003 "2010-04-16T06:45:43Z")

</div>

I am using a Debian Lenny system. I did the following to install RedMine as mentioned on their wiki page http://www.redmine.org/wiki/redmine/RedmineInstall ruby 1.8.7 Rails 2.3.5 and Rack 1.0.1 redmine-0.9.3 are p…

---

## [How do I redirect my users to video via a proxy server?](https://www.ruby-forum.com/t/how-do-i-redirect-my-users-to-video-via-a-proxy-server/187045)

<div class="topic-metadata">

**Author:** [@obi](https://www.ruby-forum.com/u/obi)\
**Replies:** 0\
**Last updated:** [April 16, 2010, 5:31am UTC](https://www.ruby-forum.com/t/how-do-i-redirect-my-users-to-video-via-a-proxy-server/187045 "2010-04-16T05:31:44Z")

</div>

I have a rails app where I am trying to re-direct my users to a video resource on a remote server via a proxy. I am using the Net::HTTP::Proxy class but I’m not sure the right way to do this. I tried this code; urlT…

---

## [Updated rails now missing rails gem](https://www.ruby-forum.com/t/updated-rails-now-missing-rails-gem/182294)

<div class="topic-metadata">

**Author:** [@morgan](https://www.ruby-forum.com/u/morgan)\
**Replies:** 7\
**Last updated:** [April 16, 2010, 5:23am UTC](https://www.ruby-forum.com/t/updated-rails-now-missing-rails-gem/182294 "2010-04-16T05:23:10Z")

</div>

So i updated rails and this is now what i’m getting. i tried reinstalling rails and it didn’t help. it’s installed. this is driving me nuts. i’m at rails 2.3.5 and ruby 1.8.7 Missing the Rails gem. Please gem insta…

---

## [Same model over multiple databases problem](https://www.ruby-forum.com/t/same-model-over-multiple-databases-problem/187031)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 3\
**Last updated:** [April 16, 2010, 4:11am UTC](https://www.ruby-forum.com/t/same-model-over-multiple-databases-problem/187031 "2010-04-16T04:11:10Z")

</div>

Hello, I run many gameservers (about 10), each gameserver has a different database and all gameserver’s databases has the table “players” which is associated to the model Player. So every time I want to work with the…

---

## [FOR loop.... has many belongs to?](https://www.ruby-forum.com/t/for-loop-has-many-belongs-to/187034)

<div class="topic-metadata">

**Author:** [@davidz101](https://www.ruby-forum.com/u/davidz101)\
**Replies:** 5\
**Last updated:** [April 16, 2010, 4:01am UTC](https://www.ruby-forum.com/t/for-loop-has-many-belongs-to/187034 "2010-04-16T04:01:13Z")

</div>

Hey, I followed Ryan B. tutorials here about implemting checkboxes with has and belongs to many relationships. In case you dont have time to watch it, heres a quick summary– Products and categories have the has an…

---

## [Where are MODULES located?](https://www.ruby-forum.com/t/where-are-modules-located/187036)

<div class="topic-metadata">

**Author:** [@davidz101](https://www.ruby-forum.com/u/davidz101)\
**Replies:** 1\
**Last updated:** [April 16, 2010, 2:12am UTC](https://www.ruby-forum.com/t/where-are-modules-located/187036 "2010-04-16T02:12:18Z")

</div>

where are modules located for gems? like all the authlogic modules… thanks

---

## [Globalize1 to I18n migration plugin](https://www.ruby-forum.com/t/globalize1-to-i18n-migration-plugin/187030)

<div class="topic-metadata">

**Author:** [@JSSS\_rgen\_FeSSSSlme](https://www.ruby-forum.com/u/JSSS_rgen_FeSSSSlme)\
**Replies:** 0\
**Last updated:** [April 15, 2010, 11:50pm UTC](https://www.ruby-forum.com/t/globalize1-to-i18n-migration-plugin/187030 "2010-04-15T23:50:37Z")

</div>

For those of you who are still stuck with Globalize1, due to the lack of a migration path to native I18n, there is a plugin for that. Please find it on: http://github.com/jfesslmeier/globalize\_bridge Have fun, feedba…

---

## [Gem install rails (Errno::ENOENT) No such file or directory](https://www.ruby-forum.com/t/gem-install-rails-errno-enoent-no-such-file-or-directory/186625)

<div class="topic-metadata">

**Author:** [@jdugarte](https://www.ruby-forum.com/u/jdugarte)\
**Replies:** 9\
**Last updated:** [April 15, 2010, 11:29pm UTC](https://www.ruby-forum.com/t/gem-install-rails-errno-enoent-no-such-file-or-directory/186625 "2010-04-15T23:29:34Z")

</div>

I have two PCs, one with Windows XP and another with Windows Vista. I’m working as an administrator in both computers. I’m using Ruby 1.8.7 and Rubygems 1.3.6. When I try to install Rails I get this error: C:\>gem inst…

---

## [Advise sought: Upgrade from Rails 2.0.1 to current](https://www.ruby-forum.com/t/advise-sought-upgrade-from-rails-2-0-1-to-current/186899)

<div class="topic-metadata">

**Author:** [@ptremblett](https://www.ruby-forum.com/u/ptremblett)\
**Replies:** 2\
**Last updated:** [April 15, 2010, 10:36pm UTC](https://www.ruby-forum.com/t/advise-sought-upgrade-from-rails-2-0-1-to-current/186899 "2010-04-15T22:36:15Z")

</div>

I have upgraded from 1.2.6 to 2.0.1 and successfully passed all my test and manual testing. Everything seems to be working correctly. My application is pretty vanilla and so there where few complications. Question is…

---

## [\[Moderator\] Please approve me so I may participate on this list](https://www.ruby-forum.com/t/moderator-please-approve-me-so-i-may-participate-on-this-list/187022)

<div class="topic-metadata">

**Author:** [@anthonys](https://www.ruby-forum.com/u/anthonys)\
**Replies:** 0\
**Last updated:** [April 15, 2010, 10:27pm UTC](https://www.ruby-forum.com/t/moderator-please-approve-me-so-i-may-participate-on-this-list/187022 "2010-04-15T22:27:28Z")

</div>

I have already sent a Rails related question and would like to hear some feedback. Sorry to everyone else who has to read this.

---

## [Display optional db data](https://www.ruby-forum.com/t/display-optional-db-data/186959)

<div class="topic-metadata">

**Author:** [@dkam](https://www.ruby-forum.com/u/dkam)\
**Replies:** 7\
**Last updated:** [April 15, 2010, 10:14pm UTC](https://www.ruby-forum.com/t/display-optional-db-data/186959 "2010-04-15T22:14:00Z")

</div>

ive got a few models that may or may not have some data: urls / phone numbers / dates / times / etc whats the best way to test and format this data for displaying on a webpage? the way im thinking of doing it would b…

---

## [Named scope returns uninitialized objects](https://www.ruby-forum.com/t/named-scope-returns-uninitialized-objects/187021)

<div class="topic-metadata">

**Author:** [@mdeering](https://www.ruby-forum.com/u/mdeering)\
**Replies:** 2\
**Last updated:** [April 15, 2010, 10:10pm UTC](https://www.ruby-forum.com/t/named-scope-returns-uninitialized-objects/187021 "2010-04-15T22:10:30Z")

</div>

Hello, An issue with a Rails named scope has been stumping me for quite sometime, and I’m hoping someone can point out the flaw. I have a model, Machine, with the following named scope: named\_scope :needs\_updates, la…

---

## [JOBS - Mid-Level Ruby on Rails Developer with Fastest Growing Start-up in SF](https://www.ruby-forum.com/t/jobs-mid-level-ruby-on-rails-developer-with-fastest-growing-start-up-in-sf/187020)

<div class="topic-metadata">

**Author:** [@MBTIM](https://www.ruby-forum.com/u/MBTIM)\
**Replies:** 0\
**Last updated:** [April 15, 2010, 10:07pm UTC](https://www.ruby-forum.com/t/jobs-mid-level-ruby-on-rails-developer-with-fastest-growing-start-up-in-sf/187020 "2010-04-15T22:07:34Z")

</div>

We are looking for A+ Ruby on Rails talent to join a team of proven technologist and one of the fastest growing social media platforms on Facebook Fan Pages. This is a great opportunity for any Rails developer to wor…

---

## [Module accessing controller data](https://www.ruby-forum.com/t/module-accessing-controller-data/187015)

<div class="topic-metadata">

**Author:** [@RVince](https://www.ruby-forum.com/u/RVince)\
**Replies:** 2\
**Last updated:** [April 15, 2010, 9:34pm UTC](https://www.ruby-forum.com/t/module-accessing-controller-data/187015 "2010-04-15T21:34:12Z")

</div>

I have data, :current\_user, in my Application Controller: class ApplicationController \< ActionController::Base helper\_method :current\_user private def current\_associate return @current\_associate if defined?(@curr…

---

## [Problems with rake](https://www.ruby-forum.com/t/problems-with-rake/187017)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [April 15, 2010, 9:33pm UTC](https://www.ruby-forum.com/t/problems-with-rake/187017 "2010-04-15T21:33:37Z")

</div>

I receive an error when I try to create or setup database using rake command. Rake is installed. Error: bash: /opt/local/bin/rake: /opt/local/bin/ruby: bad interpreter: No such file or directory. Is it not in the path…

---

## [Confirm b4 submit?](https://www.ruby-forum.com/t/confirm-b4-submit/186906)

<div class="topic-metadata">

**Author:** [@davidz101](https://www.ruby-forum.com/u/davidz101)\
**Replies:** 11\
**Last updated:** [April 15, 2010, 9:06pm UTC](https://www.ruby-forum.com/t/confirm-b4-submit/186906 "2010-04-15T21:06:05Z")

</div>

Before a user submits a form can I redirect them to a confirmation page with all their fields on it, and then finally, there is a final submit button that saves it to the database? Tanks

---

## [People Centric recherche plusieurs dÃ©velopp eurs Ruby on Rails](https://www.ruby-forum.com/t/people-centric-recherche-plusieurs-da-velopp-eurs-ruby-on-rails/186882)

<div class="topic-metadata">

**Author:** [@Roxana\_Stefan\_M](https://www.ruby-forum.com/u/Roxana_Stefan_M)\
**Replies:** 1\
**Last updated:** [April 15, 2010, 6:43pm UTC](https://www.ruby-forum.com/t/people-centric-recherche-plusieurs-da-velopp-eurs-ruby-on-rails/186882 "2010-04-15T18:43:48Z")

</div>

Un bon job de Developpeur Expérimenté Ruby on Rails, sur logiciel marketing digital, équipe pro, Paris 2, Sté Cotée, Paris Rou SiliconValley. Veuillez consulter le lien suivant pour plusieurs détails: Cordialement, …

---

## [Finding it difficult to test a before\_filter on my ApplicationController](https://www.ruby-forum.com/t/finding-it-difficult-to-test-a-before-filter-on-my-applicationcontroller/186996)

<div class="topic-metadata">

**Author:** [@BarryOg](https://www.ruby-forum.com/u/BarryOg)\
**Replies:** 11\
**Last updated:** [April 15, 2010, 6:41pm UTC](https://www.ruby-forum.com/t/finding-it-difficult-to-test-a-before-filter-on-my-applicationcontroller/186996 "2010-04-15T18:41:27Z")

</div>

Hi All, I’m writing tests for my new rails app and I’ve run into a bit of a brick wall. I’m trying to write a test for my ApplicationController which has a simple authorize method. And when I try and run the test …

---

## [Can a model have both a has\_many and has\_many through?](https://www.ruby-forum.com/t/can-a-model-have-both-a-has-many-and-has-many-through/186903)

<div class="topic-metadata">

**Author:** [@andrew](https://www.ruby-forum.com/u/andrew)\
**Replies:** 1\
**Last updated:** [April 15, 2010, 6:41pm UTC](https://www.ruby-forum.com/t/can-a-model-have-both-a-has-many-and-has-many-through/186903 "2010-04-15T18:41:19Z")

</div>

I’ll try to explain this as best as I can… I have an Assignment and User model, with users having many assignments and the assignment belonging to a user. But, along with assignments having one owner, I’d like for ass…

---

## [Adding i18n support to Rails' transliterator](https://www.ruby-forum.com/t/adding-i18n-support-to-rails-transliterator/186957)

<div class="topic-metadata">

**Author:** [@Norman\_Clarke](https://www.ruby-forum.com/u/Norman_Clarke)\
**Replies:** 4\
**Last updated:** [April 15, 2010, 6:30pm UTC](https://www.ruby-forum.com/t/adding-i18n-support-to-rails-transliterator/186957 "2010-04-15T18:30:20Z")

</div>

Hi all, The other day I sent a patch to Rails to improve ActiveSupport::Inflector’s support for transliterating UTF-8 Latin characters to ASCII. In the discussion of the patch, I mentioned the idea of making Inflect…

---

## [Has\_many ... through Association](https://www.ruby-forum.com/t/has-many-through-association/187008)

<div class="topic-metadata">

**Author:** [@gregm](https://www.ruby-forum.com/u/gregm)\
**Replies:** 1\
**Last updated:** [April 15, 2010, 5:49pm UTC](https://www.ruby-forum.com/t/has-many-through-association/187008 "2010-04-15T17:49:35Z")

</div>

Hi, Let’s say I have 4 models: City, Line, Direction, Message City ha many lines lines has many directions and direction has many message Tell me if what’s next is correct Line as many messages through line City h…

---

## [Using Rails.Logger in a gem in Rails 3beta3](https://www.ruby-forum.com/t/using-rails-logger-in-a-gem-in-rails-3beta3/187011)

<div class="topic-metadata">

**Author:** [@k-b](https://www.ruby-forum.com/u/k-b)\
**Replies:** 1\
**Last updated:** [April 15, 2010, 5:42pm UTC](https://www.ruby-forum.com/t/using-rails-logger-in-a-gem-in-rails-3beta3/187011 "2010-04-15T17:42:19Z")

</div>

Hi fellows! I want to use the Rails.logger in my gem. I try the following code in my main gem-file. require ‘rails/logger’ puts “init1” ::Rails.logger.info(“hi”) puts “init2” The funny thing is: It even don’t give…

---

## [Friendly way to deal with invalid authenticity\_tokens?](https://www.ruby-forum.com/t/friendly-way-to-deal-with-invalid-authenticity-tokens/186927)

<div class="topic-metadata">

**Author:** [@cmaxvv](https://www.ruby-forum.com/u/cmaxvv)\
**Replies:** 4\
**Last updated:** [April 15, 2010, 5:19pm UTC](https://www.ruby-forum.com/t/friendly-way-to-deal-with-invalid-authenticity-tokens/186927 "2010-04-15T17:19:23Z")

</div>

hey all. I’m using the hidden authenticity\_token system in my rails app. This is designed as a security measure but sometimes it kicks off in response to fairly innocent user actions like clicking the back button an…

---

## [Continuous integration](https://www.ruby-forum.com/t/continuous-integration/169602)

<div class="topic-metadata">

**Author:** [@destiney](https://www.ruby-forum.com/u/destiney)\
**Replies:** 2\
**Last updated:** [April 15, 2010, 5:15pm UTC](https://www.ruby-forum.com/t/continuous-integration/169602 "2010-04-15T17:15:15Z")

</div>

What is everyone using for continuous integration? I was wanting to use Integrity but it doesn’t currently support subversion. Thanks, – Greg D. http://destiney.com/

---

## [Sort collection by nested model](https://www.ruby-forum.com/t/sort-collection-by-nested-model/186988)

<div class="topic-metadata">

**Author:** [@alexd](https://www.ruby-forum.com/u/alexd)\
**Replies:** 6\
**Last updated:** [April 15, 2010, 4:27pm UTC](https://www.ruby-forum.com/t/sort-collection-by-nested-model/186988 "2010-04-15T16:27:23Z")

</div>

Hi everyone, I have GroupDocument model with following fields: belongs\_to :group belongs\_to :document enum\_attr :status, %w(pending approved banned) Document has fields like ‘title’ or ‘author’. On controller index …

---

## [Model Magic](https://www.ruby-forum.com/t/model-magic/186930)

<div class="topic-metadata">

**Author:** [@algnod](https://www.ruby-forum.com/u/algnod)\
**Replies:** 5\
**Last updated:** [April 15, 2010, 4:24pm UTC](https://www.ruby-forum.com/t/model-magic/186930 "2010-04-15T16:24:35Z")

</div>

\[\].eql? @product.files =\> false @product.files.eql? \[\] =\> true version: 2.3.5 Product :has\_many files

---

## [All about Ruby on Rails](https://www.ruby-forum.com/t/all-about-ruby-on-rails/186981)

<div class="topic-metadata">

**Author:** [@Gaurav\_Kasera](https://www.ruby-forum.com/u/Gaurav_Kasera)\
**Replies:** 5\
**Last updated:** [April 15, 2010, 4:01pm UTC](https://www.ruby-forum.com/t/all-about-ruby-on-rails/186981 "2010-04-15T16:01:01Z")

</div>

Hello all i am very very interested on Ruby on Rails technology presently i am working as SEO and Web analytic and now i want to learn all about Ruby on Rails so please help me for it

---

## [Update on Observer fails validation](https://www.ruby-forum.com/t/update-on-observer-fails-validation/186966)

<div class="topic-metadata">

**Author:** [@Jonhy\_P](https://www.ruby-forum.com/u/Jonhy_P)\
**Replies:** 2\
**Last updated:** [April 15, 2010, 3:48pm UTC](https://www.ruby-forum.com/t/update-on-observer-fails-validation/186966 "2010-04-15T15:48:08Z")

</div>

Hi, I’m puzzzled… I have this model: class UserCampaign \< ActiveRecord::Base belongs\_to :user belongs\_to :campaign attr\_accessible :is\_active, :user\_id, :campaign\_id validates\_presence\_of :is\_active, :user\_id, :cam…

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

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