# Rails

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

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

---

## [Modifying the session :key](https://www.ruby-forum.com/t/modifying-the-session-key/178475)

<div class="topic-metadata">

**Author:** [@andrewkendall](https://www.ruby-forum.com/u/andrewkendall)\
**Replies:** 1\
**Last updated:** [November 5, 2009, 7:01am UTC](https://www.ruby-forum.com/t/modifying-the-session-key/178475 "2009-11-05T07:01:26Z")

</div>

Hello, I have my base session settings in config/initializers/session\_store.rb I want to override the :key option in one of my environment files. I’m attempting to do so like this… config.action\_controller.session\[:…

---

## [Hpricot xpath help](https://www.ruby-forum.com/t/hpricot-xpath-help/178471)

<div class="topic-metadata">

**Author:** [@eggie5](https://www.ruby-forum.com/u/eggie5)\
**Replies:** 1\
**Last updated:** [November 5, 2009, 6:07am UTC](https://www.ruby-forum.com/t/hpricot-xpath-help/178471 "2009-11-05T06:07:35Z")

</div>

I have this XML: \<?xml version="1.0" encoding="UTF-8"?\> 111 2009-03-02 - 2009-03-08 2009-03-08T00:00:00 113 2009-02-16 - 2009-02-22 2009-02-22T00:00:00 . . . I want to parse out the Week element with …

---

## [Flex image - processed images generation](https://www.ruby-forum.com/t/flex-image-processed-images-generation/177953)

<div class="topic-metadata">

**Author:** [@ct9a](https://www.ruby-forum.com/u/ct9a)\
**Replies:** 2\
**Last updated:** [November 5, 2009, 5:30am UTC](https://www.ruby-forum.com/t/flex-image-processed-images-generation/177953 "2009-11-05T05:30:42Z")

</div>

hi, guys, I have been researching on an image uploader plugin to use for my application. I have my eyes of fleximage at the moment. One of the links I read was GitHub - AlexJWayne/fleximage: Rails plugin for uploadin…

---

## [Testing - how do i log in different users and have tests done?](https://www.ruby-forum.com/t/testing-how-do-i-log-in-different-users-and-have-tests-done/175712)

<div class="topic-metadata">

**Author:** [@ct9a](https://www.ruby-forum.com/u/ct9a)\
**Replies:** 5\
**Last updated:** [November 5, 2009, 5:27am UTC](https://www.ruby-forum.com/t/testing-how-do-i-log-in-different-users-and-have-tests-done/175712 "2009-11-05T05:27:11Z")

</div>

hi all, I googled a bit and tried looking up several rails books to no success. I have a users.yml file which contains two users: one with admin priviledges and one without My application\_controller.rb has a method …

---

## [RedCloth error](https://www.ruby-forum.com/t/redcloth-error/178355)

<div class="topic-metadata">

**Author:** [@smit\_shah](https://www.ruby-forum.com/u/smit_shah)\
**Replies:** 4\
**Last updated:** [November 5, 2009, 4:36am UTC](https://www.ruby-forum.com/t/redcloth-error/178355 "2009-11-05T04:36:19Z")

</div>

Hi All I have installed RedCloth 4.2.2 & 4.2.1. When I tried to create new post in forum(of my application) it gives me error like " uninitialized constant Rails::Plugin::RedCloth". In local it runs without any error…

---

## [Web Services](https://www.ruby-forum.com/t/web-services/178459)

<div class="topic-metadata">

**Author:** [@christoph\_j](https://www.ruby-forum.com/u/christoph_j)\
**Replies:** 7\
**Last updated:** [November 5, 2009, 3:42am UTC](https://www.ruby-forum.com/t/web-services/178459 "2009-11-05T03:42:38Z")

</div>

Well Greg, it seemed you get the message wrong. Somehow I should have known that it can get emotional when posting non-rails things on the rails list, which I see not that positive. I only said my opinion - just l…

---

## [Filtering of rows during selection](https://www.ruby-forum.com/t/filtering-of-rows-during-selection/178445)

<div class="topic-metadata">

**Author:** [@Jesterz](https://www.ruby-forum.com/u/Jesterz)\
**Replies:** 2\
**Last updated:** [November 5, 2009, 3:20am UTC](https://www.ruby-forum.com/t/filtering-of-rows-during-selection/178445 "2009-11-05T03:20:10Z")

</div>

Hi all, I am new to rails, and for that matter programming for the web. Scenario: In a Purchase Order screen, I am trying to let a user (Fred) select a customer(General Hospital-MA) and some products. Typically, it …

---

## [Simultaneous long-running tasks; Rake, Daemons, Delayed::Jobs?](https://www.ruby-forum.com/t/simultaneous-long-running-tasks-rake-daemons-delayed-jobs/178406)

<div class="topic-metadata">

**Author:** [@Sebastian\_von\_Conra](https://www.ruby-forum.com/u/Sebastian_von_Conra)\
**Replies:** 2\
**Last updated:** [November 5, 2009, 1:17am UTC](https://www.ruby-forum.com/t/simultaneous-long-running-tasks-rake-daemons-delayed-jobs/178406 "2009-11-05T01:17:50Z")

</div>

Hi everyone, I have an application where an essential part is communicating with a remote API via SOAP. I want to be able to run 3-4 of these tasks at once, and one task might take anything from one minute to several …

---

## [Linking to dynamically added html pages](https://www.ruby-forum.com/t/linking-to-dynamically-added-html-pages/178467)

<div class="topic-metadata">

**Author:** [@josihovo](https://www.ruby-forum.com/u/josihovo)\
**Replies:** 1\
**Last updated:** [November 5, 2009, 1:09am UTC](https://www.ruby-forum.com/t/linking-to-dynamically-added-html-pages/178467 "2009-11-05T01:09:03Z")

</div>

Hello All, In my application new HTML pages are added into a folder by some service running in the background. I’ve constructed the links for these pages and I also display them on my ruby application’s home page.…

---

## [Phone number conversions](https://www.ruby-forum.com/t/phone-number-conversions/178456)

<div class="topic-metadata">

**Author:** [@Todd\_ASJacobs](https://www.ruby-forum.com/u/Todd_ASJacobs)\
**Replies:** 6\
**Last updated:** [November 5, 2009, 12:34am UTC](https://www.ruby-forum.com/t/phone-number-conversions/178456 "2009-11-05T00:34:19Z")

</div>

I’m trying to figure out a good way to store phone numbers as an integer in a rails app without having to have separate columns in the table for each part of the phone number. I want people to enter the phone number i…

---

## [Generating Music with restful Url and Ramaze](https://www.ruby-forum.com/t/generating-music-with-restful-url-and-ramaze/178463)

<div class="topic-metadata">

**Author:** [@GabrielG1976](https://www.ruby-forum.com/u/GabrielG1976)\
**Replies:** 0\
**Last updated:** [November 5, 2009, 12:21am UTC](https://www.ruby-forum.com/t/generating-music-with-restful-url-and-ramaze/178463 "2009-11-05T00:21:39Z")

</div>

Just wanted to share My new idea and see if anyone interested in helping out with this project… I have several standalone apps that already work off this Idea now just making it web friendly UI thanks in advanced fo…

---

## [Gem server doc page has broken rdoc link for rails](https://www.ruby-forum.com/t/gem-server-doc-page-has-broken-rdoc-link-for-rails/178372)

<div class="topic-metadata">

**Author:** [@peter](https://www.ruby-forum.com/u/peter)\
**Replies:** 1\
**Last updated:** [November 4, 2009, 11:47pm UTC](https://www.ruby-forum.com/t/gem-server-doc-page-has-broken-rdoc-link-for-rails/178372 "2009-11-04T23:47:06Z")

</div>

Yup, newbie. Working my way through the Agile … Rails book and updated gem, rails, rake, and sqlite3 as per the book instructions. Then tried out the nifty “gem server” command to access the documentation. Everythin…

---

## [Web Services](https://www.ruby-forum.com/t/web-services/178452)

<div class="topic-metadata">

**Author:** [@christoph\_j](https://www.ruby-forum.com/u/christoph_j)\
**Replies:** 2\
**Last updated:** [November 4, 2009, 11:10pm UTC](https://www.ruby-forum.com/t/web-services/178452 "2009-11-04T23:10:14Z")

</div>

Hi Bill, isn’t Rails a bit too much for you (little) WS. How about considering another little “frameworks” like Sinatra? It’s worth a try. Rails is a great framework but it’s not always a (the) right choice. Can give…

---

## [Problem with gem install and rails update](https://www.ruby-forum.com/t/problem-with-gem-install-and-rails-update/178374)

<div class="topic-metadata">

**Author:** [@pixel75](https://www.ruby-forum.com/u/pixel75)\
**Replies:** 2\
**Last updated:** [November 4, 2009, 8:50pm UTC](https://www.ruby-forum.com/t/problem-with-gem-install-and-rails-update/178374 "2009-11-04T20:50:21Z")

</div>

Hi everyone. I’m new to Rails and have been trying to learn something listening to Ryan B.’ podcast. I have tried to install the authlogic gem, inserting the extension as a dependency in the environment.rb file as re…

---

## [Random hang (requiring SIGKILL) in script talking to postgresql using rails application](https://www.ruby-forum.com/t/random-hang-requiring-sigkill-in-script-talking-to-postgresql-using-rails-application/178446)

<div class="topic-metadata">

**Author:** [@Mathias\_MSSSSlster\_S](https://www.ruby-forum.com/u/Mathias_MSSSSlster_S)\
**Replies:** 0\
**Last updated:** [November 4, 2009, 8:12pm UTC](https://www.ruby-forum.com/t/random-hang-requiring-sigkill-in-script-talking-to-postgresql-using-rails-application/178446 "2009-11-04T20:12:19Z")

</div>

Hello We have a ruby-script for running system tests which talks to a database (to e.g. log each testrun) through a rails application. Sometimes this script freezes completely, only responding to SIGKILL. Have anyone…

---

## [Replacement for backgroundrb?](https://www.ruby-forum.com/t/replacement-for-backgroundrb/178404)

<div class="topic-metadata">

**Author:** [@PeteSalty](https://www.ruby-forum.com/u/PeteSalty)\
**Replies:** 3\
**Last updated:** [November 4, 2009, 7:46pm UTC](https://www.ruby-forum.com/t/replacement-for-backgroundrb/178404 "2009-11-04T19:46:38Z")

</div>

We currently run backgroundrb to do a few things that need to happen every minute or so, i.e. check for email from a Google email account, re-index Xapian, that kind of thing. BackgroundRB has served us well but it’s …

---

## [Autocomplete issues](https://www.ruby-forum.com/t/autocomplete-issues/178440)

<div class="topic-metadata">

**Author:** [@srinathbtech](https://www.ruby-forum.com/u/srinathbtech)\
**Replies:** 0\
**Last updated:** [November 4, 2009, 5:48pm UTC](https://www.ruby-forum.com/t/autocomplete-issues/178440 "2009-11-04T17:48:45Z")

</div>

Hi, How to avoid hiding the div on “blur” or when dragging down if the user clicks scrollbar in IE7 when using autocomplete list ?? If i tried to scroll down the div is disappearing in IE7 I am using scriptaculous.j…

---

## [Mysql::Error: query: not connected](https://www.ruby-forum.com/t/mysql-query-not-connected/178398)

<div class="topic-metadata">

**Author:** [@Zovar](https://www.ruby-forum.com/u/Zovar)\
**Replies:** 12\
**Last updated:** [November 4, 2009, 5:20pm UTC](https://www.ruby-forum.com/t/mysql-query-not-connected/178398 "2009-11-04T17:20:48Z")

</div>

Hi there! I am PHP developer and trying to learn ROR. Currently I am building my first Rails website (OS X Snow Leopard, TextMate) and decided to switch from sqlite to mysql. After many-many hours of searching the in…

---

## [Problem with deployment of rails application using passenger and apache (Very Important)](https://www.ruby-forum.com/t/problem-with-deployment-of-rails-application-using-passenger-and-apache-very-important/177447)

<div class="topic-metadata">

**Author:** [@sulabhjain](https://www.ruby-forum.com/u/sulabhjain)\
**Replies:** 3\
**Last updated:** [November 4, 2009, 5:18pm UTC](https://www.ruby-forum.com/t/problem-with-deployment-of-rails-application-using-passenger-and-apache-very-important/177447 "2009-11-04T17:18:28Z")

</div>

Hello All, I have been facing a weird problem since long and sometimes the things worked for me on one or the other server. Again, I have build a new server and facing same problem. Could anyone help me in finding th…

---

## [Error trying to translate a model name in a validation message](https://www.ruby-forum.com/t/error-trying-to-translate-a-model-name-in-a-validation-message/178438)

<div class="topic-metadata">

**Author:** [@pezdude](https://www.ruby-forum.com/u/pezdude)\
**Replies:** 0\
**Last updated:** [November 4, 2009, 5:11pm UTC](https://www.ruby-forum.com/t/error-trying-to-translate-a-model-name-in-a-validation-message/178438 "2009-11-04T17:11:26Z")

</div>

So far I’ve found internationalization with Rails to be a very pleasant experience. But I’ve run into trouble trying to translate model names and I need a little help. Here’s my fr.yml: fr: activerecord: models: p…

---

## [Color is not a module](https://www.ruby-forum.com/t/color-is-not-a-module/178417)

<div class="topic-metadata">

**Author:** [@alexey.Creopolis](https://www.ruby-forum.com/u/alexey.Creopolis)\
**Replies:** 3\
**Last updated:** [November 4, 2009, 4:40pm UTC](https://www.ruby-forum.com/t/color-is-not-a-module/178417 "2009-11-04T16:40:59Z")

</div>

Color is not a module /usr/lib/ruby/gems/1.8/gems/color-1.4.0/lib/color.rb:19 Gems installed in application: pdf-writer 1.1.8 + color 1.4.0 + color-tools 1.3.0 can happen to any pdf-writer version and in any OS (test…

---

## [Capistrano undefined current\_path error](https://www.ruby-forum.com/t/capistrano-undefined-current-path-error/171862)

<div class="topic-metadata">

**Author:** [@artchrst](https://www.ruby-forum.com/u/artchrst)\
**Replies:** 1\
**Last updated:** [November 4, 2009, 3:57pm UTC](https://www.ruby-forum.com/t/capistrano-undefined-current-path-error/171862 "2009-11-04T15:57:54Z")

</div>

Hi Guys, I’ve tried to use capistrano (2.5 or 2.5.8) in my Window to deploy the project. I found the following weird error for not finding current\_path. I have no clue why this happened. it seems that the error occur…

---

## [Moving my app from Development to Production](https://www.ruby-forum.com/t/moving-my-app-from-development-to-production/178420)

<div class="topic-metadata">

**Author:** [@H.P.L](https://www.ruby-forum.com/u/H.P.L)\
**Replies:** 4\
**Last updated:** [November 4, 2009, 12:16pm UTC](https://www.ruby-forum.com/t/moving-my-app-from-development-to-production/178420 "2009-11-04T12:16:30Z")

</div>

I’m new to Rails, coming from Python (Django) and PHP (Zend), and have an issue trying to move my application from development to production. It’s a little mysterious to me, but I’m sure it’s something simple that I’v…

---

## [Order of displaying error messages](https://www.ruby-forum.com/t/order-of-displaying-error-messages/178419)

<div class="topic-metadata">

**Author:** [@sharankruthi](https://www.ruby-forum.com/u/sharankruthi)\
**Replies:** 2\
**Last updated:** [November 4, 2009, 12:04pm UTC](https://www.ruby-forum.com/t/order-of-displaying-error-messages/178419 "2009-11-04T12:04:24Z")

</div>

Hi, Is it possible to display the error messages in a particular order of attributes. ie in error\_messages\_for After validation Name cant be blank etc… can be specify the order of attributes? Thanks, Sharanya

---

## [Manipulating form](https://www.ruby-forum.com/t/manipulating-form/178130)

<div class="topic-metadata">

**Author:** [@khzied](https://www.ruby-forum.com/u/khzied)\
**Replies:** 4\
**Last updated:** [November 4, 2009, 11:50am UTC](https://www.ruby-forum.com/t/manipulating-form/178130 "2009-11-04T11:50:06Z")

</div>

Hi, I work with forms and i won’t to set a name for a form to use javascript functions… How can i do Thanks

---

## [Error "Is not a module"?](https://www.ruby-forum.com/t/error-is-not-a-module/178357)

<div class="topic-metadata">

**Author:** [@andkjaer](https://www.ruby-forum.com/u/andkjaer)\
**Replies:** 12\
**Last updated:** [November 4, 2009, 10:59am UTC](https://www.ruby-forum.com/t/error-is-not-a-module/178357 "2009-11-04T10:59:04Z")

</div>

Hi im working with the Twitter gem, suddenly i get this error: Twitter is not a module /Users/KAN/.gem/ruby/1.8/gems/twitter-0.7.0/lib/twitter/search.rb:1 vendor/rails/activesupport/lib/active\_support/dependencies.rb…

---

## [Installing Feedzirra (and Curl/Curb) on Windows Vista](https://www.ruby-forum.com/t/installing-feedzirra-and-curl-curb-on-windows-vista/178418)

<div class="topic-metadata">

**Author:** [@philostler](https://www.ruby-forum.com/u/philostler)\
**Replies:** 1\
**Last updated:** [November 4, 2009, 10:49am UTC](https://www.ruby-forum.com/t/installing-feedzirra-and-curl-curb-on-windows-vista/178418 "2009-11-04T10:49:07Z")

</div>

I’m trying to use Feedzirra within my rails app and am having a mountain of trouble trying to get the gem installed. Running “gem install pauldix-feedzirra” gives me the following output. ERROR: Error installing paul…

---

## [Opportunity for ROR professionals](https://www.ruby-forum.com/t/opportunity-for-ror-professionals/178421)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [November 4, 2009, 10:37am UTC](https://www.ruby-forum.com/t/opportunity-for-ror-professionals/178421 "2009-11-04T10:37:59Z")

</div>

Hi, We have an exciting opportunity with one of our reputed client based at Chennai. Needed minimum 3+ years experience in Ruby on Rails. Should have exposure in content management system. Salary will be offered the…

---

## [The error occurred while evaluating nil.prefetch\_primary\_key](https://www.ruby-forum.com/t/the-error-occurred-while-evaluating-nil-prefetch-primary-key/178412)

<div class="topic-metadata">

**Author:** [@dk3qu](https://www.ruby-forum.com/u/dk3qu)\
**Replies:** 0\
**Last updated:** [November 4, 2009, 7:14am UTC](https://www.ruby-forum.com/t/the-error-occurred-while-evaluating-nil-prefetch-primary-key/178412 "2009-11-04T07:14:38Z")

</div>

The error occurred while evaluating nil.prefetch\_primary\_key? Hi, I have a problem with a model when I have 3 belongs\_to relations in one the middle. This example is a subset of a grid-routing project: …

---

## [Foreign keys not being saved by nested forms](https://www.ruby-forum.com/t/foreign-keys-not-being-saved-by-nested-forms/178399)

<div class="topic-metadata">

**Author:** [@Todd\_ASJacobs](https://www.ruby-forum.com/u/Todd_ASJacobs)\
**Replies:** 3\
**Last updated:** [November 4, 2009, 6:57am UTC](https://www.ruby-forum.com/t/foreign-keys-not-being-saved-by-nested-forms/178399 "2009-11-04T06:57:18Z")

</div>

I have the following included in my schema: create\_table “users”, :force =\> true do |t| t.string “login” t.string “first\_name” t.string “last\_name” t.string “email” t.string “password” t.integer “contac…

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

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