# Rails

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

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

---

## [One time shot feed params from development](https://www.ruby-forum.com/t/one-time-shot-feed-params-from-development/190887)

<div class="topic-metadata">

**Author:** [@craigrails](https://www.ruby-forum.com/u/craigrails)\
**Replies:** 2\
**Last updated:** [June 30, 2010, 4:11am UTC](https://www.ruby-forum.com/t/one-time-shot-feed-params-from-development/190887 "2010-06-30T04:11:13Z")

</div>

I got a confirmation on my development system that should have gone to the production system and so I have a ‘Post’ set of data which I know from my development logs that I want to feed to my production system. Is the…

---

## [Rake db:create failing](https://www.ruby-forum.com/t/rake-db-create-failing/190858)

<div class="topic-metadata">

**Author:** [@joe](https://www.ruby-forum.com/u/joe)\
**Replies:** 3\
**Last updated:** [June 30, 2010, 2:53am UTC](https://www.ruby-forum.com/t/rake-db-create-failing/190858 "2010-06-30T02:53:24Z")

</div>

Hi everyone, First of all, I’m running Mac OS X Snow Leopard. Trying to set up a new SQLite database, but when I run rake db:create, I get the following huge message: unable to open database file /System/Library/Fra…

---

## [Mongrel\_cluster --prefix and static content](https://www.ruby-forum.com/t/mongrel-cluster-prefix-and-static-content/190884)

<div class="topic-metadata">

**Author:** [@sjm](https://www.ruby-forum.com/u/sjm)\
**Replies:** 0\
**Last updated:** [June 30, 2010, 12:03am UTC](https://www.ruby-forum.com/t/mongrel-cluster-prefix-and-static-content/190884 "2010-06-30T00:03:03Z")

</div>

Hi Everyone I have been searching for an answer for this all day, stumbling from page to page trying examples that don’t work! Anyway, I am trying to run multiple Rails apps sitting behind Apache2.2. It is nearly th…

---

## [Passenger: configuration problem](https://www.ruby-forum.com/t/passenger-configuration-problem/190882)

<div class="topic-metadata">

**Author:** [@aliibrahim](https://www.ruby-forum.com/u/aliibrahim)\
**Replies:** 2\
**Last updated:** [June 29, 2010, 11:59pm UTC](https://www.ruby-forum.com/t/passenger-configuration-problem/190882 "2010-06-29T23:59:33Z")

</div>

I follow the steps to install passenger , I installed it in the same way, I copy the contents on the same location it asked to do, when i run passenger-install-nginx-module I copy paste the contants in apache.conf w…

---

## [Rails 3 and ActiveSupport::Callbacks](https://www.ruby-forum.com/t/rails-3-and-activesupport-callbacks/190877)

<div class="topic-metadata">

**Author:** [@jdv](https://www.ruby-forum.com/u/jdv)\
**Replies:** 0\
**Last updated:** [June 29, 2010, 8:12pm UTC](https://www.ruby-forum.com/t/rails-3-and-activesupport-callbacks/190877 "2010-06-29T20:12:05Z")

</div>

Hi. Is there a way to access an object within callbacks defined with set\_callback (ActiveSupport 3.0.0-beta4, matching Rails 3)? Use case is as follow: require 'active\_support' class Foo include ActiveSupport::Cal…

---

## [Add a "filter" on the ERB \<%= ... %\>](https://www.ruby-forum.com/t/add-a-filter-on-the-erb/190853)

<div class="topic-metadata">

**Author:** [@tuktuk](https://www.ruby-forum.com/u/tuktuk)\
**Replies:** 8\
**Last updated:** [June 29, 2010, 8:08pm UTC](https://www.ruby-forum.com/t/add-a-filter-on-the-erb/190853 "2010-06-29T20:08:52Z")

</div>

I have a site with a lot of view code like this: \<%=@post.user.name%\> Unfortunately a lot of old posts have had their users deleted, so the code above breaks the entire view. I am working on a larger cleanup on t…

---

## [Is there any way to have observe\_field react to the current value of a field also?](https://www.ruby-forum.com/t/is-there-any-way-to-have-observe-field-react-to-the-current-value-of-a-field-also/190831)

<div class="topic-metadata">

**Author:** [@adistarmid](https://www.ruby-forum.com/u/adistarmid)\
**Replies:** 4\
**Last updated:** [June 29, 2010, 7:41pm UTC](https://www.ruby-forum.com/t/is-there-any-way-to-have-observe-field-react-to-the-current-value-of-a-field-also/190831 "2010-06-29T19:41:56Z")

</div>

I have a view, seen below, that shows a list of churches if the zip code isn’t 01540 or 01537. This part works perfectly. The problem is that this is the page is to edit an existing record also, so observe\_field needs…

---

## [Belongs\_to. Association methods don't pass data to DB](https://www.ruby-forum.com/t/belongs-to-association-methods-dont-pass-data-to-db/190871)

<div class="topic-metadata">

**Author:** [@polunochnik](https://www.ruby-forum.com/u/polunochnik)\
**Replies:** 3\
**Last updated:** [June 29, 2010, 6:49pm UTC](https://www.ruby-forum.com/t/belongs-to-association-methods-dont-pass-data-to-db/190871 "2010-06-29T18:49:15Z")

</div>

Hi. I have a problem with the association methods which passed to a model through a belongs\_to declaration. Here’s an illustration of the issue: GIVEN: migration class CreateArticlesAndAuthorsTables \< ActiveRecord::M…

---

## [How to populate a table with id of selected item from another table](https://www.ruby-forum.com/t/how-to-populate-a-table-with-id-of-selected-item-from-another-table/190768)

<div class="topic-metadata">

**Author:** [@RichardOnRails](https://www.ruby-forum.com/u/RichardOnRails)\
**Replies:** 11\
**Last updated:** [June 29, 2010, 6:10pm UTC](https://www.ruby-forum.com/t/how-to-populate-a-table-with-id-of-selected-item-from-another-table/190768 "2010-06-29T18:10:37Z")

</div>

Hi, I have a “New Expense” form that includes a select field named vendor that provides a a drop-down list of all vendors. When a user makes a selection of a vendor-name, that name populates the vendor field of the n…

---

## [Spreadsheet creation](https://www.ruby-forum.com/t/spreadsheet-creation/190722)

<div class="topic-metadata">

**Author:** [@spex2004](https://www.ruby-forum.com/u/spex2004)\
**Replies:** 1\
**Last updated:** [June 29, 2010, 5:36pm UTC](https://www.ruby-forum.com/t/spreadsheet-creation/190722 "2010-06-29T17:36:26Z")

</div>

Hey guys, I’m trying to create a spreadsheet with Ruby using the spreadsheet gem. I’m able to create a new sheet and add data and everything but I’m wondering, is there any way to preserve macros and vb projects in an …

---

## [Singleton can't be dumped in rails session](https://www.ruby-forum.com/t/singleton-cant-be-dumped-in-rails-session/190864)

<div class="topic-metadata">

**Author:** [@gandhi-tush](https://www.ruby-forum.com/u/gandhi-tush)\
**Replies:** 0\
**Last updated:** [June 29, 2010, 2:06pm UTC](https://www.ruby-forum.com/t/singleton-cant-be-dumped-in-rails-session/190864 "2010-06-29T14:06:33Z")

</div>

Hi, I am doing an integration with commission junction using SOAP to get the result. It is working fine for me. My problem is I have to add the pagination so I have used will\_paginate for pagination. For each page I …

---

## [How to submit a drop down menu using forms](https://www.ruby-forum.com/t/how-to-submit-a-drop-down-menu-using-forms/190859)

<div class="topic-metadata">

**Author:** [@atin](https://www.ruby-forum.com/u/atin)\
**Replies:** 1\
**Last updated:** [June 29, 2010, 12:31pm UTC](https://www.ruby-forum.com/t/how-to-submit-a-drop-down-menu-using-forms/190859 "2010-06-29T12:31:05Z")

</div>

Hi I am learning rails & I am developing a blog site using it so i want to make a drop down menu which would have the title of the blog & on selecting that title i should be redirected to the show page of blog conten…

---

## [3 Month (initially) Contract Ruby Developer role - Full time office based - London - Market Rates](https://www.ruby-forum.com/t/3-month-initially-contract-ruby-developer-role-full-time-office-based-london-market-rates/190860)

<div class="topic-metadata">

**Author:** [@Richard\_Marshall](https://www.ruby-forum.com/u/Richard_Marshall)\
**Replies:** 0\
**Last updated:** [June 29, 2010, 11:55am UTC](https://www.ruby-forum.com/t/3-month-initially-contract-ruby-developer-role-full-time-office-based-london-market-rates/190860 "2010-06-29T11:55:56Z")

</div>

Hi All Looking for a solid Ruby developer who is looking for contract work in London. working for a fantastic online client. Please contact me for this great position. • Ruby on Rails 2.3+ web application develo…

---

## [Jobs - VP Engineering role and ROR developers NEEDED](https://www.ruby-forum.com/t/jobs-vp-engineering-role-and-ror-developers-needed/190856)

<div class="topic-metadata">

**Author:** [@Kelly\_Faber](https://www.ruby-forum.com/u/Kelly_Faber)\
**Replies:** 0\
**Last updated:** [June 29, 2010, 11:42am UTC](https://www.ruby-forum.com/t/jobs-vp-engineering-role-and-ror-developers-needed/190856 "2010-06-29T11:42:28Z")

</div>

San Francisco Bay Area, CA – VP Engineering Position. Rapidly growing social media company whose award-winning technology, is used by thousands of companies including top brands like Pepsi, Facebook, AT&T, Unilever,…

---

## [Editing multiples rows in a single table](https://www.ruby-forum.com/t/editing-multiples-rows-in-a-single-table/190822)

<div class="topic-metadata">

**Author:** [@richardsugg](https://www.ruby-forum.com/u/richardsugg)\
**Replies:** 1\
**Last updated:** [June 29, 2010, 11:33am UTC](https://www.ruby-forum.com/t/editing-multiples-rows-in-a-single-table/190822 "2010-06-29T11:33:06Z")

</div>

I have a table that contains user options, so the table looks like id username option\_name option\_value How do I create a single page that allows me to edit all the options? Would it be something like \<% form\_for …

---

## [Authlogic and persistence token](https://www.ruby-forum.com/t/authlogic-and-persistence-token/190854)

<div class="topic-metadata">

**Author:** [@lesanglier](https://www.ruby-forum.com/u/lesanglier)\
**Replies:** 0\
**Last updated:** [June 29, 2010, 10:31am UTC](https://www.ruby-forum.com/t/authlogic-and-persistence-token/190854 "2010-06-29T10:31:16Z")

</div>

Hello, I would to know if if does it possible to have something like this : acts\_as\_authentic do |c| c.login\_field = :user\_name c.crypted\_password\_field = :user\_passwd c.persistence\_token = :pertok end Using the “…

---

## [Rails3 Jquery link\_to](https://www.ruby-forum.com/t/rails3-jquery-link-to/190837)

<div class="topic-metadata">

**Author:** [@tspore](https://www.ruby-forum.com/u/tspore)\
**Replies:** 2\
**Last updated:** [June 29, 2010, 8:16am UTC](https://www.ruby-forum.com/t/rails3-jquery-link-to/190837 "2010-06-29T08:16:24Z")

</div>

I know that I’m missing something very simple but I setup my application to use for the links a remote=\> true call. In the call it finds the js.erb file, but doesn’t render into the browser the content. LOG: Started…

---

## [How can I improvement concurrence performance?](https://www.ruby-forum.com/t/how-can-i-improvement-concurrence-performance/190705)

<div class="topic-metadata">

**Author:** [@youhaodeyi](https://www.ruby-forum.com/u/youhaodeyi)\
**Replies:** 21\
**Last updated:** [June 29, 2010, 7:31am UTC](https://www.ruby-forum.com/t/how-can-i-improvement-concurrence-performance/190705 "2010-06-29T07:31:20Z")

</div>

I found that if many users access to Rails at the same time, users will wait for a long time. How can I set the concurrence user number in Rails?

---

## [Capybara, webdriver not launching on xvfb display](https://www.ruby-forum.com/t/capybara-webdriver-not-launching-on-xvfb-display/190848)

<div class="topic-metadata">

**Author:** [@85niner](https://www.ruby-forum.com/u/85niner)\
**Replies:** 0\
**Last updated:** [June 29, 2010, 6:04am UTC](https://www.ruby-forum.com/t/capybara-webdriver-not-launching-on-xvfb-display/190848 "2010-06-29T06:04:08Z")

</div>

Hey Guys, I’m trying to run cucumber (capybara) in a xvfb, I’ve set it up correctly, and can manually launch firefox using “DISPLAY=:99 firefox”. I’m 100% this works, because I’ve set up a vncserver bound to that xv…

---

## [Rails Magazine issue #6, 2010](https://www.ruby-forum.com/t/rails-magazine-issue-6-2010/190846)

<div class="topic-metadata">

**Author:** [@Olimpiu\_M](https://www.ruby-forum.com/u/Olimpiu_M)\
**Replies:** 0\
**Last updated:** [June 29, 2010, 5:11am UTC](https://www.ruby-forum.com/t/rails-magazine-issue-6-2010/190846 "2010-06-29T05:11:28Z")

</div>

A new edition of Rails Magazine is now available, both in print and as a free pdf (36 pages, 2.8 MB) at Что такое SEO продвижение сайта. In this number: “Beautifying Your Markup With Haml and Sass” by Ethan Gunderson …

---

## [Adding a new project to git](https://www.ruby-forum.com/t/adding-a-new-project-to-git/190842)

<div class="topic-metadata">

**Author:** [@railsfan\_radha](https://www.ruby-forum.com/u/railsfan_radha)\
**Replies:** 4\
**Last updated:** [June 29, 2010, 5:02am UTC](https://www.ruby-forum.com/t/adding-a-new-project-to-git/190842 "2010-06-29T05:02:40Z")

</div>

I would like to put this in some sort of version control for source control as well as for easy deployment when i am ready for hosting. So, please let me know, which is the post popular one git or sub version? most p…

---

## [Testing image\_tag :src (asset id issue)](https://www.ruby-forum.com/t/testing-image-tag-src-asset-id-issue/190830)

<div class="topic-metadata">

**Author:** [@DKDKDK](https://www.ruby-forum.com/u/DKDKDK)\
**Replies:** 2\
**Last updated:** [June 28, 2010, 10:58pm UTC](https://www.ruby-forum.com/t/testing-image-tag-src-asset-id-issue/190830 "2010-06-28T22:58:44Z")

</div>

This seems like it should be real easy to do but I have not found any documentation: I have an image tag in a page: \<%= image\_tag “arrow\_green.gif”, :alt =\> “image did not load” %\> And a functional test I would like …

---

## [Time-dependent values/constants in Models: An issue or not?](https://www.ruby-forum.com/t/time-dependent-values-constants-in-models-an-issue-or-not/190748)

<div class="topic-metadata">

**Author:** [@tharrisx](https://www.ruby-forum.com/u/tharrisx)\
**Replies:** 4\
**Last updated:** [June 28, 2010, 9:28pm UTC](https://www.ruby-forum.com/t/time-dependent-values-constants-in-models-an-issue-or-not/190748 "2010-06-28T21:28:25Z")

</div>

Hi there, I remember reading in the comments of a Rails blog something along these lines: “Since a Model is loaded only once in production development (at server start), certain time-dependent ‘constants’ that you ha…

---

## [Rails command line](https://www.ruby-forum.com/t/rails-command-line/190826)

<div class="topic-metadata">

**Author:** [@bhoult](https://www.ruby-forum.com/u/bhoult)\
**Replies:** 1\
**Last updated:** [June 28, 2010, 9:12pm UTC](https://www.ruby-forum.com/t/rails-command-line/190826 "2010-06-28T21:12:02Z")

</div>

I’m putting together an application and some of the code will be needed to run some cron jobs. Is this easy with rails?

---

## [Deploy: Steps to use Passenger](https://www.ruby-forum.com/t/deploy-steps-to-use-passenger/190827)

<div class="topic-metadata">

**Author:** [@aliibrahim](https://www.ruby-forum.com/u/aliibrahim)\
**Replies:** 0\
**Last updated:** [June 28, 2010, 9:09pm UTC](https://www.ruby-forum.com/t/deploy-steps-to-use-passenger/190827 "2010-06-28T21:09:41Z")

</div>

My application name is “demo”… I developed it on Ubuntu. I have installed Passenger and all settings are fine. Please help me to which files need to modified and how to FTP my project. I am using site5.com basic hos…

---

## [Best practice for removing leading and trailing whitespaces](https://www.ruby-forum.com/t/best-practice-for-removing-leading-and-trailing-whitespaces/190723)

<div class="topic-metadata">

**Author:** [@rakeshahuja](https://www.ruby-forum.com/u/rakeshahuja)\
**Replies:** 3\
**Last updated:** [June 28, 2010, 8:30pm UTC](https://www.ruby-forum.com/t/best-practice-for-removing-leading-and-trailing-whitespaces/190723 "2010-06-28T20:30:47Z")

</div>

I want to remove the leading and training spaces for most of the resources in my rails application For a new POST request, rails does the xml parsing and passes the params hash to the controller. Some of the parameter…

---

## [Has\_one. Deleting orphan tuples](https://www.ruby-forum.com/t/has-one-deleting-orphan-tuples/190823)

<div class="topic-metadata">

**Author:** [@polunochnik](https://www.ruby-forum.com/u/polunochnik)\
**Replies:** 0\
**Last updated:** [June 28, 2010, 8:26pm UTC](https://www.ruby-forum.com/t/has-one-deleting-orphan-tuples/190823 "2010-06-28T20:26:38Z")

</div>

Hi. How to delete orphan tuples after a new object has been created through has\_one association? Here’s an example: a user model class User \< ActiveRecord::Base Â Â has\_one :account end an account model class Acco…

---

## [Installing MySQL gem on Mac OS X Leopard for Rails 2.3.5](https://www.ruby-forum.com/t/installing-mysql-gem-on-mac-os-x-leopard-for-rails-2-3-5/189733)

<div class="topic-metadata">

**Author:** [@ram](https://www.ruby-forum.com/u/ram)\
**Replies:** 5\
**Last updated:** [June 28, 2010, 8:21pm UTC](https://www.ruby-forum.com/t/installing-mysql-gem-on-mac-os-x-leopard-for-rails-2-3-5/189733 "2010-06-28T20:21:40Z")

</div>

Hi, Ive got Mac OS 10.5.8 and MySQL 5.0.67-osx10.5-x86 (installed in /usr/ local/mysql) working fine with my Rails 2.1.0 applications. Im trying a test run of Rails 2.3.5 and having to install the MySQL gem is litera…

---

## [Form\_for won't generate the correct action path](https://www.ruby-forum.com/t/form-for-wont-generate-the-correct-action-path/190809)

<div class="topic-metadata">

**Author:** [@richardsugg](https://www.ruby-forum.com/u/richardsugg)\
**Replies:** 2\
**Last updated:** [June 28, 2010, 8:18pm UTC](https://www.ruby-forum.com/t/form-for-wont-generate-the-correct-action-path/190809 "2010-06-28T20:18:09Z")

</div>

I’m really baffled since this should be very textbook: \<% form\_for :person, :url =\> { :controller =\> “people”, :action =\> “update”, :id =\> @person.id } do |form| %\> should produce but instead it produces What’s go…

---

## [Downtime notifier](https://www.ruby-forum.com/t/downtime-notifier/190820)

<div class="topic-metadata">

**Author:** [@mariachi77](https://www.ruby-forum.com/u/mariachi77)\
**Replies:** 4\
**Last updated:** [June 28, 2010, 7:47pm UTC](https://www.ruby-forum.com/t/downtime-notifier/190820 "2010-06-28T19:47:07Z")

</div>

What methods do people use to notify users of upcoming downtime in an application, and for handling requests nicely while scheduled downtime is occurring? My Google-fu is not yielding me anything useful-looking.

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

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