# Rails

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

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

---

## [A few Rails 3 questions](https://www.ruby-forum.com/t/a-few-rails-3-questions/195567)

<div class="topic-metadata">

**Author:** [@Trausti\_Thor\_J](https://www.ruby-forum.com/u/Trausti_Thor_J)\
**Replies:** 1\
**Last updated:** [September 25, 2010, 8:09pm UTC](https://www.ruby-forum.com/t/a-few-rails-3-questions/195567 "2010-09-25T20:09:00Z")

</div>

I am about to start a new project with Ruby 3. How is the speed ? Is it possible to host ruby3 projects on the same server as is hosting ruby 2 projects ? (with passenger) Any foreseeable problems I will run into ? …

---

## [Mysql2 Gem Issue](https://www.ruby-forum.com/t/mysql2-gem-issue/194119)

<div class="topic-metadata">

**Author:** [@Sahil\_D](https://www.ruby-forum.com/u/Sahil_D)\
**Replies:** 1\
**Last updated:** [September 25, 2010, 4:31pm UTC](https://www.ruby-forum.com/t/mysql2-gem-issue/194119 "2010-09-25T16:31:17Z")

</div>

Hi I am trying to migrate to Rails3 final release. I have the mysql2 - 0.2.3 gem installed. While installing the gem, i got two weired notices: Enclosing class/module ‘mMysql2’ for class Client not known Enclosing …

---

## [Ror models relations - advice?](https://www.ruby-forum.com/t/ror-models-relations-advice/195550)

<div class="topic-metadata">

**Author:** [@kay](https://www.ruby-forum.com/u/kay)\
**Replies:** 7\
**Last updated:** [September 25, 2010, 4:16pm UTC](https://www.ruby-forum.com/t/ror-models-relations-advice/195550 "2010-09-25T16:16:04Z")

</div>

Hello guys, pretty simple: table games: team1\_id team2\_id table teams: id designation which relations should i use to access the teams designations from the game model ?

---

## [Invalid argument for file creating](https://www.ruby-forum.com/t/invalid-argument-for-file-creating/195540)

<div class="topic-metadata">

**Author:** [@daociyiyou](https://www.ruby-forum.com/u/daociyiyou)\
**Replies:** 4\
**Last updated:** [September 25, 2010, 3:56pm UTC](https://www.ruby-forum.com/t/invalid-argument-for-file-creating/195540 "2010-09-25T15:56:47Z")

</div>

hi I use song\_title to creat a file named by song\_title.I have many song titles to create many files.but unfortunately,some of song titles contain special characters,such as \[ ,which leads the following error: Errno…

---

## [Routing Error with Apache/Passenger](https://www.ruby-forum.com/t/routing-error-with-apache-passenger/195559)

<div class="topic-metadata">

**Author:** [@prafulh](https://www.ruby-forum.com/u/prafulh)\
**Replies:** 1\
**Last updated:** [September 25, 2010, 12:04pm UTC](https://www.ruby-forum.com/t/routing-error-with-apache-passenger/195559 "2010-09-25T12:04:27Z")

</div>

I have testing a rails app with apache and passenger. The index page or any static pages show correctly. But when I try to go to any other controller… it is never displayed. The sites-available files is as follows \<V…

---

## [Migrated app to rails 3, now very slow bootup times](https://www.ruby-forum.com/t/migrated-app-to-rails-3-now-very-slow-bootup-times/195531)

<div class="topic-metadata">

**Author:** [@Bodo\_T](https://www.ruby-forum.com/u/Bodo_T)\
**Replies:** 2\
**Last updated:** [September 25, 2010, 10:28am UTC](https://www.ruby-forum.com/t/migrated-app-to-rails-3-now-very-slow-bootup-times/195531 "2010-09-25T10:28:59Z")

</div>

We tried to migrate our app to rails 3/ruby 1.9.2 and now have huge problems with the initialization time of the rails instances. After a touch tmp/restart our passenger 2.2.4 needs several minutes(!!) to boot up 20 i…

---

## [Problems ./script/server](https://www.ruby-forum.com/t/problems-script-server/195563)

<div class="topic-metadata">

**Author:** [@mark](https://www.ruby-forum.com/u/mark)\
**Replies:** 0\
**Last updated:** [September 25, 2010, 9:16am UTC](https://www.ruby-forum.com/t/problems-script-server/195563 "2010-09-25T09:16:24Z")

</div>

Hey, everytime i want to start the server i get the error2 below that there were problems with gems. So i update them with “gem update” and it works. But now i get the error1. In the environment i can set the gem\_ver…

---

## [Rails 3 Model attributes localization](https://www.ruby-forum.com/t/rails-3-model-attributes-localization/195538)

<div class="topic-metadata">

**Author:** [@kadoudal](https://www.ruby-forum.com/u/kadoudal)\
**Replies:** 3\
**Last updated:** [September 25, 2010, 8:43am UTC](https://www.ruby-forum.com/t/rails-3-model-attributes-localization/195538 "2010-09-25T08:43:38Z")

</div>

I am trying to localize in Rails 3, and I don’t understand the change w Rails 2 … I wrote the following hierarchy : en: model: user: User attributes: login: Login email: Email password: Password roles: Roles a…

---

## [Using Cookies in a Rails 3.0 Metal Class](https://www.ruby-forum.com/t/using-cookies-in-a-rails-3-0-metal-class/195562)

<div class="topic-metadata">

**Author:** [@bparanj](https://www.ruby-forum.com/u/bparanj)\
**Replies:** 0\
**Last updated:** [September 25, 2010, 8:15am UTC](https://www.ruby-forum.com/t/using-cookies-in-a-rails-3-0-metal-class/195562 "2010-09-25T08:15:33Z")

</div>

I have the following class that works fine as a controller: class Foo \< ApplicationController def check unless cookies\[:user\_id\].nil? logger.info(“Cookies value is : #{cookies\[:user\_id\]}”) redirect\_to “http://www.ya…

---

## [I really cant update gem to 1.3.7 plz help T\_T](https://www.ruby-forum.com/t/i-really-cant-update-gem-to-1-3-7-plz-help-t-t/195552)

<div class="topic-metadata">

**Author:** [@mumza](https://www.ruby-forum.com/u/mumza)\
**Replies:** 5\
**Last updated:** [September 25, 2010, 4:46am UTC](https://www.ruby-forum.com/t/i-really-cant-update-gem-to-1-3-7-plz-help-t-t/195552 "2010-09-25T04:46:03Z")

</div>

I use ubntu10.04 with gem 1.3.5.I try setup.rb.It say only use apt-get is only one way to get updated gem but I try many times to use this command but it did not work. Help me PL…

---

## [Looking for Asst Organizer for my Ruby meet up group](https://www.ruby-forum.com/t/looking-for-asst-organizer-for-my-ruby-meet-up-group/195557)

<div class="topic-metadata">

**Author:** [@A\_Sarkar](https://www.ruby-forum.com/u/A_Sarkar)\
**Replies:** 0\
**Last updated:** [September 25, 2010, 4:06am UTC](https://www.ruby-forum.com/t/looking-for-asst-organizer-for-my-ruby-meet-up-group/195557 "2010-09-25T04:06:50Z")

</div>

Looking for Asst Organizer for my Ruby meet up group. I have several sponsors and this could be a great opportunity to network. Anybody who lives in bay area con contact my meet up group. http://www.meetup.com/ruby-10…

---

## [Rails 3, using helpers in controller](https://www.ruby-forum.com/t/rails-3-using-helpers-in-controller/195553)

<div class="topic-metadata">

**Author:** [@jozefvaclavik](https://www.ruby-forum.com/u/jozefvaclavik)\
**Replies:** 0\
**Last updated:** [September 25, 2010, 1:43am UTC](https://www.ruby-forum.com/t/rails-3-using-helpers-in-controller/195553 "2010-09-25T01:43:34Z")

</div>

Hi everyone, is there any way how to use Helpers in Controllers in Rails 3? I was trying to google about it, but no luck. In old Rails times (2.x) we were using something like this. my\_active\_record\_object.variable =…

---

## [Refiring click event from a custom confirm using Rails 3 UJS data-confirm binding](https://www.ruby-forum.com/t/refiring-click-event-from-a-custom-confirm-using-rails-3-ujs-data-confirm-binding/195546)

<div class="topic-metadata">

**Author:** [@uberllama](https://www.ruby-forum.com/u/uberllama)\
**Replies:** 1\
**Last updated:** [September 25, 2010, 12:29am UTC](https://www.ruby-forum.com/t/refiring-click-event-from-a-custom-confirm-using-rails-3-ujs-data-confirm-binding/195546 "2010-09-25T00:29:42Z")

</div>

Hi folks. Been banging my head against the wall for a while on this one so figure I’d shoot it out there and see if anyone has insight. I’m overriding the document.on(“click”, “\*\[data-confirm\]”, function(event, elemen…

---

## [Error fetching remote gem cache](https://www.ruby-forum.com/t/error-fetching-remote-gem-cache/103272)

<div class="topic-metadata">

**Author:** [@Pei](https://www.ruby-forum.com/u/Pei)\
**Replies:** 5\
**Last updated:** [September 25, 2010, 12:04am UTC](https://www.ruby-forum.com/t/error-fetching-remote-gem-cache/103272 "2010-09-25T00:04:33Z")

</div>

I am getting this error when trying to install rails: gem install rails --include-dependencies Bulk updating Gem source index for: http://gems.rubyforge.org ERROR: While executing gem … (Gem::RemoteSourceException) …

---

## [Should I give up on slickgrid for now?](https://www.ruby-forum.com/t/should-i-give-up-on-slickgrid-for-now/195551)

<div class="topic-metadata">

**Author:** [@Grumpy](https://www.ruby-forum.com/u/Grumpy)\
**Replies:** 0\
**Last updated:** [September 24, 2010, 11:56pm UTC](https://www.ruby-forum.com/t/should-i-give-up-on-slickgrid-for-now/195551 "2010-09-24T23:56:57Z")

</div>

I’m trying to use slickgrid to display a result set from a Rails controller action. It seems like there’s a JSON bug in the way. It’s easy enough to get the “simple” slickgrid working with Rails, but everything falls …

---

## [Validation :if option with Class vars](https://www.ruby-forum.com/t/validation-if-option-with-class-vars/195341)

<div class="topic-metadata">

**Author:** [@S-gw](https://www.ruby-forum.com/u/S-gw)\
**Replies:** 2\
**Last updated:** [September 24, 2010, 9:55pm UTC](https://www.ruby-forum.com/t/validation-if-option-with-class-vars/195341 "2010-09-24T21:55:40Z")

</div>

I have some validations that need to include an :if clause using the Class and not the model. Sounds reasonably straight forward at first by doing this: validates\_presence\_of :field\_one, :field\_two, :if =\> Proc.new…

---

## [I cant update gem more than 1.3.5 on Ubuntu](https://www.ruby-forum.com/t/i-cant-update-gem-more-than-1-3-5-on-ubuntu/195544)

<div class="topic-metadata">

**Author:** [@mumza](https://www.ruby-forum.com/u/mumza)\
**Replies:** 0\
**Last updated:** [September 24, 2010, 9:23pm UTC](https://www.ruby-forum.com/t/i-cant-update-gem-more-than-1-3-5-on-ubuntu/195544 "2010-09-24T21:23:45Z")

</div>

I try many ways to update 1.use ruby setup.rb in /gem1.3.7dir did not work show text NOTE: http://rubygems.org is now the default source for downloading gems. You may have sources set via ~/.gemrc, so you should rep…

---

## [Assertions on ActiveRecord errors array](https://www.ruby-forum.com/t/assertions-on-activerecord-errors-array/195542)

<div class="topic-metadata">

**Author:** [@tnyplz](https://www.ruby-forum.com/u/tnyplz)\
**Replies:** 0\
**Last updated:** [September 24, 2010, 8:51pm UTC](https://www.ruby-forum.com/t/assertions-on-activerecord-errors-array/195542 "2010-09-24T20:51:59Z")

</div>

In Rails 2 if I wanted to check if an ActiveRecord attribute had an error on it I simply called assert user.errors.on(:name) Now that this is depreciated what is a clean way to do this check? This is ugly but it work…

---

## [How to call a method in a controller with link\_to?](https://www.ruby-forum.com/t/how-to-call-a-method-in-a-controller-with-link-to/195539)

<div class="topic-metadata">

**Author:** [@rodrigo3n](https://www.ruby-forum.com/u/rodrigo3n)\
**Replies:** 1\
**Last updated:** [September 24, 2010, 8:37pm UTC](https://www.ruby-forum.com/t/how-to-call-a-method-in-a-controller-with-link-to/195539 "2010-09-24T20:37:49Z")

</div>

Hello everyone, I have a MessagesController created with rails g scaffold and the user may create messages that get saved, in tihs controller I have a method called ‘tweet’ that (using the twitter gem / Twitter API) t…

---

## [Template.base\_path in rails3](https://www.ruby-forum.com/t/template-base-path-in-rails3/195541)

<div class="topic-metadata">

**Author:** [@arvias](https://www.ruby-forum.com/u/arvias)\
**Replies:** 0\
**Last updated:** [September 24, 2010, 8:32pm UTC](https://www.ruby-forum.com/t/template-base-path-in-rails3/195541 "2010-09-24T20:32:40Z")

</div>

Hi! With Rails 2 template.base\_path and template.name were available in views. What are the Rails3 equivalents? – M.

---

## [How to change the order of the group\_method parameter in the grouped\_collection\_select method?](https://www.ruby-forum.com/t/how-to-change-the-order-of-the-group-method-parameter-in-the-grouped-collection-select-method/195507)

<div class="topic-metadata">

**Author:** [@Demetrius](https://www.ruby-forum.com/u/Demetrius)\
**Replies:** 1\
**Last updated:** [September 24, 2010, 7:03pm UTC](https://www.ruby-forum.com/t/how-to-change-the-order-of-the-group-method-parameter-in-the-grouped-collection-select-method/195507 "2010-09-24T19:03:41Z")

</div>

Anyone know how to order the group\_method parameter in the grouped\_collection\_select method? I get a nice list of subjects in my drop down BUT they are not in order (alpha…) My code is below (:subjects is my group\_met…

---

## [Problem with complex function to save in db](https://www.ruby-forum.com/t/problem-with-complex-function-to-save-in-db/195474)

<div class="topic-metadata">

**Author:** [@TEREN](https://www.ruby-forum.com/u/TEREN)\
**Replies:** 9\
**Last updated:** [September 24, 2010, 7:03pm UTC](https://www.ruby-forum.com/t/problem-with-complex-function-to-save-in-db/195474 "2010-09-24T19:03:41Z")

</div>

hello there, i have a problem. i have my own complicated way that i want(must) save in the db i have a form for some table (“factions” in my cans, each field in the form goes to a single row of the “faction\_contents” …

---

## [\[JOBS\] In Search of Sr. RoR Developer at Super Company in Beautiful Portland, OR](https://www.ruby-forum.com/t/jobs-in-search-of-sr-ror-developer-at-super-company-in-beautiful-portland-or/195537)

<div class="topic-metadata">

**Author:** [@Kat\_Gomm](https://www.ruby-forum.com/u/Kat_Gomm)\
**Replies:** 0\
**Last updated:** [September 24, 2010, 6:23pm UTC](https://www.ruby-forum.com/t/jobs-in-search-of-sr-ror-developer-at-super-company-in-beautiful-portland-or/195537 "2010-09-24T18:23:17Z")

</div>

Come add your experience and thought-leadership to an incredible team and established company. We are looking for someone with great code and people skills who wants to not only advance a great product, but also put t…

---

## [Mongrel failures but nothing in logs](https://www.ruby-forum.com/t/mongrel-failures-but-nothing-in-logs/195534)

<div class="topic-metadata">

**Author:** [@mohits](https://www.ruby-forum.com/u/mohits)\
**Replies:** 0\
**Last updated:** [September 24, 2010, 5:20pm UTC](https://www.ruby-forum.com/t/mongrel-failures-but-nothing-in-logs/195534 "2010-09-24T17:20:04Z")

</div>

Hi All, We are having a few strange problems in production. The Rails 2.3/ Ruby 1.8.6 application is hosted using Apache/ mod\_proxy/ mongrel\_cluster (managed by monit) running on CentOS. This connects to a PostgreSQ…

---

## [Problems rake db:create](https://www.ruby-forum.com/t/problems-rake-db-create/195008)

<div class="topic-metadata">

**Author:** [@mark](https://www.ruby-forum.com/u/mark)\
**Replies:** 4\
**Last updated:** [September 24, 2010, 3:34pm UTC](https://www.ruby-forum.com/t/problems-rake-db-create/195008 "2010-09-24T15:34:07Z")

</div>

Hi, i have some problems by type in rake db:create It always says: rake aborted! can’t activate rails (= 2.3.5, runtime) for \[\], already activated rails-3.0.0 for \[\] I have set Rails version to 2.3.5 but the proble…

---

## [2.2.2 rails for juggernaut](https://www.ruby-forum.com/t/2-2-2-rails-for-juggernaut/195528)

<div class="topic-metadata">

**Author:** [@ouikoto](https://www.ruby-forum.com/u/ouikoto)\
**Replies:** 2\
**Last updated:** [September 24, 2010, 3:05pm UTC](https://www.ruby-forum.com/t/2-2-2-rails-for-juggernaut/195528 "2010-09-24T15:05:56Z")

</div>

Hi gurus is there any site where i can obtain some guidelines in Juggernaut for 2.2.2 I follwed this http://www.slightlycoded.com/blog/the-juggernaut-a-push-server-for-ruby-on-rails seems not to work after running ju…

---

## [Uploading and playing .mp4 files in rails application](https://www.ruby-forum.com/t/uploading-and-playing-mp4-files-in-rails-application/195522)

<div class="topic-metadata">

**Author:** [@atheeq](https://www.ruby-forum.com/u/atheeq)\
**Replies:** 1\
**Last updated:** [September 24, 2010, 2:40pm UTC](https://www.ruby-forum.com/t/uploading-and-playing-mp4-files-in-rails-application/195522 "2010-09-24T14:40:16Z")

</div>

can any one let me know how to proceed with this? Or do we have any pluggin for this? Thanks in advance :slight\_smile:

---

## [Anyone can provide me rails 3.0 manual](https://www.ruby-forum.com/t/anyone-can-provide-me-rails-3-0-manual/195529)

<div class="topic-metadata">

**Author:** [@tanawatl](https://www.ruby-forum.com/u/tanawatl)\
**Replies:** 1\
**Last updated:** [September 24, 2010, 2:36pm UTC](https://www.ruby-forum.com/t/anyone-can-provide-me-rails-3-0-manual/195529 "2010-09-24T14:36:45Z")

</div>

I’m very confused with it’s command.The syntax very different from the older version.I 've already try google searching but I did not find. Thanks

---

## [Heroku: command not found](https://www.ruby-forum.com/t/heroku-command-not-found/195518)

<div class="topic-metadata">

**Author:** [@sprsquish](https://www.ruby-forum.com/u/sprsquish)\
**Replies:** 2\
**Last updated:** [September 24, 2010, 2:00pm UTC](https://www.ruby-forum.com/t/heroku-command-not-found/195518 "2010-09-24T14:00:28Z")

</div>

Hi, I’m trying to install and use Heroku and having the following problem: Here’s what I do and what I get: Run: sudo gem install heroku Get: Successfully installed heroku-1.10.5 1 gem installed Installing ri doc…

---

## [Failed to allocate memory](https://www.ruby-forum.com/t/failed-to-allocate-memory/195530)

<div class="topic-metadata">

**Author:** [@amit-singh](https://www.ruby-forum.com/u/amit-singh)\
**Replies:** 0\
**Last updated:** [September 24, 2010, 1:12pm UTC](https://www.ruby-forum.com/t/failed-to-allocate-memory/195530 "2010-09-24T13:12:40Z")

</div>

Hi all, Am running apache as frontend to mongrel ,i am passing request to mongrel using passproxy like ProxyPass / http://localhost:3000/ i have download routine in one of controller and now i would like Apache to …

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

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