# Rails

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

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

---

## [RoR, Apache2, fcgid and ubuntu](https://www.ruby-forum.com/t/ror-apache2-fcgid-and-ubuntu/156987)

<div class="topic-metadata">

**Author:** [@zeba-momin](https://www.ruby-forum.com/u/zeba-momin)\
**Replies:** 1\
**Last updated:** [January 8, 2009, 6:41am UTC](https://www.ruby-forum.com/t/ror-apache2-fcgid-and-ubuntu/156987 "2009-01-08T06:41:11Z")

</div>

Hi. I’m trying to deploy my rails application on ubuntu server using apache2 and fcgid…but have not been successful… I am using ruby 1.8.6, rails 2.2.2 and fcgi 0.8.7 gem… I am able to start apache successfully and v…

---

## [126: The specified module could not be found. - c:/ruby/lib/ruby/gems/1.8/gems/ruby-postgres-0.7](https://www.ruby-forum.com/t/126-the-specified-module-could-not-be-found-c-ruby-lib-ruby-gems-1-8-gems-ruby-postgres-0-7/157157)

<div class="topic-metadata">

**Author:** [@rubynut](https://www.ruby-forum.com/u/rubynut)\
**Replies:** 1\
**Last updated:** [January 8, 2009, 6:41am UTC](https://www.ruby-forum.com/t/126-the-specified-module-could-not-be-found-c-ruby-lib-ruby-gems-1-8-gems-ruby-postgres-0-7/157157 "2009-01-08T06:41:05Z")

</div>

I have install postgres but I am getting this message when I am starting the application. Please help

---

## [RoR, Apache2, fcgid and ubuntu](https://www.ruby-forum.com/t/ror-apache2-fcgid-and-ubuntu/156998)

<div class="topic-metadata">

**Author:** [@zeba-momin](https://www.ruby-forum.com/u/zeba-momin)\
**Replies:** 6\
**Last updated:** [January 8, 2009, 6:36am UTC](https://www.ruby-forum.com/t/ror-apache2-fcgid-and-ubuntu/156998 "2009-01-08T06:36:59Z")

</div>

Hi. I’m trying to deploy my rails application on ubuntu server using apache2 and fcgid…but have not been successful… I am using ruby 1.8.6, rails 2.2.2 and fcgi 0.8.7 gem… I am able to start apache successfully and v…

---

## [Rails 2.2 on Mac OSX 10.5](https://www.ruby-forum.com/t/rails-2-2-on-mac-osx-10-5/157177)

<div class="topic-metadata">

**Author:** [@adammontgomery](https://www.ruby-forum.com/u/adammontgomery)\
**Replies:** 1\
**Last updated:** [January 8, 2009, 6:18am UTC](https://www.ruby-forum.com/t/rails-2-2-on-mac-osx-10-5/157177 "2009-01-08T06:18:51Z")

</div>

I need some help figuring out what is wrong with my 2.2 installation of rails on Mac OSX 10.5. I performed the following commands prior to creating a sample app. sudo gem update --system sudo gem update rails sudo g…

---

## [Total Date Difference](https://www.ruby-forum.com/t/total-date-difference/157108)

<div class="topic-metadata">

**Author:** [@rakenewuser](https://www.ruby-forum.com/u/rakenewuser)\
**Replies:** 4\
**Last updated:** [January 8, 2009, 5:09am UTC](https://www.ruby-forum.com/t/total-date-difference/157108 "2009-01-08T05:09:31Z")

</div>

Hi, Anyone can help, on how to get the total number of days with this data; {:date\_created=\>“2008-12-19”, :date\_last\_updated=\>“2008-12-23”} The display in “puts” should be the total difference. Thanks in Advance!

---

## [A problem of ignoring newline in textarea](https://www.ruby-forum.com/t/a-problem-of-ignoring-newline-in-textarea/157169)

<div class="topic-metadata">

**Author:** [@youhaodeyi](https://www.ruby-forum.com/u/youhaodeyi)\
**Replies:** 6\
**Last updated:** [January 8, 2009, 4:13am UTC](https://www.ruby-forum.com/t/a-problem-of-ignoring-newline-in-textarea/157169 "2009-01-08T04:13:08Z")

</div>

I use text\_area\_tag in a view page and when its action get its value by params\[:id\], all the newline will be removed. How can I keep the format of textarea?

---

## [Serialized data](https://www.ruby-forum.com/t/serialized-data/157162)

<div class="topic-metadata">

**Author:** [@mafloria](https://www.ruby-forum.com/u/mafloria)\
**Replies:** 1\
**Last updated:** [January 8, 2009, 2:16am UTC](https://www.ruby-forum.com/t/serialized-data/157162 "2009-01-08T02:16:40Z")

</div>

Hi, I have a serialized Hash in a database. How can I acces my data? data is stored as a varchar and text.

---

## [Nested Sentance translation](https://www.ruby-forum.com/t/nested-sentance-translation/157164)

<div class="topic-metadata">

**Author:** [@indigoi](https://www.ruby-forum.com/u/indigoi)\
**Replies:** 0\
**Last updated:** [January 8, 2009, 1:17am UTC](https://www.ruby-forum.com/t/nested-sentance-translation/157164 "2009-01-08T01:17:58Z")

</div>

I want to have a sentence that contains elements i already have translations for. I already have: \<%= t ‘nested’ %\> \<%= t ‘be\_cool’ %\> This is my sentance: “This is an example of where nested translations would be …

---

## [Controller if statement error with param](https://www.ruby-forum.com/t/controller-if-statement-error-with-param/157141)

<div class="topic-metadata">

**Author:** [@fididle](https://www.ruby-forum.com/u/fididle)\
**Replies:** 2\
**Last updated:** [January 8, 2009, 12:26am UTC](https://www.ruby-forum.com/t/controller-if-statement-error-with-param/157141 "2009-01-08T00:26:00Z")

</div>

Hi, Please help me with this maddening little problem. The if statement in the controller (below) does not detect the string “ALL” contained in params\[:state\]. This param was entered in a form (not shown here). I ca…

---

## [Issue with scaffolding with rail 2.2 and mySQL](https://www.ruby-forum.com/t/issue-with-scaffolding-with-rail-2-2-and-mysql/155561)

<div class="topic-metadata">

**Author:** [@mikari](https://www.ruby-forum.com/u/mikari)\
**Replies:** 3\
**Last updated:** [January 7, 2009, 10:05pm UTC](https://www.ruby-forum.com/t/issue-with-scaffolding-with-rail-2-2-and-mysql/155561 "2009-01-07T22:05:13Z")

</div>

Hi guys, I’m having problems when creating basic web applications using rails 2.2 and mySQL databases. If I create the following table in a database named moviecritc\_development: CREATE TABLE movies ( id INT NOT NU…

---

## [Fwd: change javascript default from jquery back to prototype](https://www.ruby-forum.com/t/fwd-change-javascript-default-from-jquery-back-to-prototype/157134)

<div class="topic-metadata">

**Author:** [@felipegiotto](https://www.ruby-forum.com/u/felipegiotto)\
**Replies:** 4\
**Last updated:** [January 7, 2009, 10:04pm UTC](https://www.ruby-forum.com/t/fwd-change-javascript-default-from-jquery-back-to-prototype/157134 "2009-01-07T22:04:55Z")

</div>

Hello all, recently I installed the jrails plugin which changed the javascript\_include\_tag :defaults to include the jquery libraries… The jquery did no good, so I want the prototype back, but i can’t manage to get t…

---

## [Need help](https://www.ruby-forum.com/t/need-help/157075)

<div class="topic-metadata">

**Author:** [@anton\_effendi](https://www.ruby-forum.com/u/anton_effendi)\
**Replies:** 2\
**Last updated:** [January 7, 2009, 10:03pm UTC](https://www.ruby-forum.com/t/need-help/157075 "2009-01-07T22:03:09Z")

</div>

Hai guys. I have problem in Rails… Can u help me? please… My problem: I want to make code for maintenance database… I want like migration… can change to another version… so when I import some data, I must revert to…

---

## [Urgent Hire in NYC](https://www.ruby-forum.com/t/urgent-hire-in-nyc/157152)

<div class="topic-metadata">

**Author:** [@Smiley](https://www.ruby-forum.com/u/Smiley)\
**Replies:** 0\
**Last updated:** [January 7, 2009, 9:51pm UTC](https://www.ruby-forum.com/t/urgent-hire-in-nyc/157152 "2009-01-07T21:51:59Z")

</div>

Our client is a leading NYC-based publisher of web and mobile games, and personalization applications. They are seeking a Senior Server Engineer with Ruby on Rails experience. The Senior Server Engineer works with t…

---

## [Multiple Openings for Wireless/Mobile/BlackBerry Project](https://www.ruby-forum.com/t/multiple-openings-for-wireless-mobile-blackberry-project/157147)

<div class="topic-metadata">

**Author:** [@ajay86dubey](https://www.ruby-forum.com/u/ajay86dubey)\
**Replies:** 0\
**Last updated:** [January 7, 2009, 9:04pm UTC](https://www.ruby-forum.com/t/multiple-openings-for-wireless-mobile-blackberry-project/157147 "2009-01-07T21:04:26Z")

</div>

Job Site: Ideally they would want everyone to work in their new Irvine, CA facility. Job Duration: Contract - 6 months Project Overview: Develop a web-based service for sales contact and campaign management. Provid…

---

## [Uniqueness on has\_many associations](https://www.ruby-forum.com/t/uniqueness-on-has-many-associations/157013)

<div class="topic-metadata">

**Author:** [@tron](https://www.ruby-forum.com/u/tron)\
**Replies:** 3\
**Last updated:** [January 7, 2009, 8:58pm UTC](https://www.ruby-forum.com/t/uniqueness-on-has-many-associations/157013 "2009-01-07T20:58:42Z")

</div>

Dear List, This may not be rails unique but what is the best practice to validate the uniqueness of has\_many associations. In particular the models are class Word end class PhraseComponent belongs\_to :word belong…

---

## [Loading Hash during testing using Fixtures](https://www.ruby-forum.com/t/loading-hash-during-testing-using-fixtures/157079)

<div class="topic-metadata">

**Author:** [@sijomo](https://www.ruby-forum.com/u/sijomo)\
**Replies:** 2\
**Last updated:** [January 7, 2009, 8:45pm UTC](https://www.ruby-forum.com/t/loading-hash-during-testing-using-fixtures/157079 "2009-01-07T20:45:04Z")

</div>

Hi all, I am finally starting to use the testing framework that rails provides, however I have come across a problem that I can’t work out. Our model has a serialized hash as one of the members, and I can’t work out …

---

## [:after\_update\_element and text\_field\_with\_auto\_complete](https://www.ruby-forum.com/t/after-update-element-and-text-field-with-auto-complete/157018)

<div class="topic-metadata">

**Author:** [@sweetpete](https://www.ruby-forum.com/u/sweetpete)\
**Replies:** 2\
**Last updated:** [January 7, 2009, 7:34pm UTC](https://www.ruby-forum.com/t/after-update-element-and-text-field-with-auto-complete/157018 "2009-01-07T19:34:12Z")

</div>

Hi! I’m on Rails 2.2.2 and using text\_field\_with\_auto\_complete which works fine. Now I want to use :after\_update\_element to send some data back to the server when my text field is updated. I have the following code …

---

## [Actionmailer and postfix settings](https://www.ruby-forum.com/t/actionmailer-and-postfix-settings/157140)

<div class="topic-metadata">

**Author:** [@tyanlion](https://www.ruby-forum.com/u/tyanlion)\
**Replies:** 0\
**Last updated:** [January 7, 2009, 6:23pm UTC](https://www.ruby-forum.com/t/actionmailer-and-postfix-settings/157140 "2009-01-07T18:23:57Z")

</div>

Hi, I am having problems configuring my actionmailer to work with postfix. I followed this tutorial: http://howtoforge.org/virtual-users-and-domains-postfix-courier-mysql-centos5.1 and i got the server set up. at fi…

---

## [Radio\_button\_tag](https://www.ruby-forum.com/t/radio-button-tag/157137)

<div class="topic-metadata">

**Author:** [@snantz](https://www.ruby-forum.com/u/snantz)\
**Replies:** 0\
**Last updated:** [January 7, 2009, 6:21pm UTC](https://www.ruby-forum.com/t/radio-button-tag/157137 "2009-01-07T18:21:14Z")

</div>

I have an app that needs to collect data on gender, so I have: Male: \<%= radio\_button\_tag( :gender, :male, :checked =\> @user.gender.to\_s == ‘Male’ ? true : false, :options =\> {:onclick =\> func2} )%\> Female: \<%= r…

---

## [New cheat sheet: Jump Start Credit Card Processing in Ruby](https://www.ruby-forum.com/t/new-cheat-sheet-jump-start-credit-card-processing-in-ruby/157030)

<div class="topic-metadata">

**Author:** [@amyhoy](https://www.ruby-forum.com/u/amyhoy)\
**Replies:** 12\
**Last updated:** [January 7, 2009, 6:17pm UTC](https://www.ruby-forum.com/t/new-cheat-sheet-jump-start-credit-card-processing-in-ruby/157030 "2009-01-07T18:17:24Z")

</div>

Hey guys… it’s me :wink: I’ve come out of a long cheat sheet-free period! I want to share with you my new, really massive “cheat sheet” on credit card processing: the process, how it works, what you need to get the …

---

## [Store file from file\_field](https://www.ruby-forum.com/t/store-file-from-file-field/144500)

<div class="topic-metadata">

**Author:** [@paulbutcher](https://www.ruby-forum.com/u/paulbutcher)\
**Replies:** 1\
**Last updated:** [January 7, 2009, 5:59pm UTC](https://www.ruby-forum.com/t/store-file-from-file-field/144500 "2009-01-07T17:59:02Z")

</div>

I’ve made a file upload. When there is a file already on the server I pass the values and bring them back to question if they want to overwrite or cancel. I pass along the values with session values. But I have proble…

---

## [How rails insert object id to database?](https://www.ruby-forum.com/t/how-rails-insert-object-id-to-database/157132)

<div class="topic-metadata">

**Author:** [@rubyernewbie](https://www.ruby-forum.com/u/rubyernewbie)\
**Replies:** 0\
**Last updated:** [January 7, 2009, 5:30pm UTC](https://www.ruby-forum.com/t/how-rails-insert-object-id-to-database/157132 "2009-01-07T17:30:30Z")

</div>

e\[4;35;1mUser Create (0.5ms)e\[0m e\[0mINSERT INTO users (name, avatar\_file\_name, avatar\_file\_size, created\_at, updated\_at, avatar\_content\_type) VALUES(‘hello’, ‘Screenshot.png’, 253800, ‘2009-01-08 08:27:19’, ‘2009-0…

---

## [How to upgrade an existing application to 2.2.2?](https://www.ruby-forum.com/t/how-to-upgrade-an-existing-application-to-2-2-2/155222)

<div class="topic-metadata">

**Author:** [@oldbug](https://www.ruby-forum.com/u/oldbug)\
**Replies:** 5\
**Last updated:** [January 7, 2009, 5:17pm UTC](https://www.ruby-forum.com/t/how-to-upgrade-an-existing-application-to-2-2-2/155222 "2009-01-07T17:17:49Z")

</div>

I apologize for asking such a basic question, but I have a RoR application I started developing last July and would like to continue working on it now. Since that time, I have updated my rails version to 2.2.2 and, s…

---

## [Gems between two different machines](https://www.ruby-forum.com/t/gems-between-two-different-machines/156788)

<div class="topic-metadata">

**Author:** [@jschank](https://www.ruby-forum.com/u/jschank)\
**Replies:** 3\
**Last updated:** [January 7, 2009, 5:15pm UTC](https://www.ruby-forum.com/t/gems-between-two-different-machines/156788 "2009-01-07T17:15:25Z")

</div>

Hello, I usually develop on a desktop machine, but I also have a laptop. I want to be able to ensure that the gems I’ve installed on one machine are available on the other. $ gem env seems to tell me where the gems …

---

## [Migration problem in rail 2.0 and observers](https://www.ruby-forum.com/t/migration-problem-in-rail-2-0-and-observers/157124)

<div class="topic-metadata">

**Author:** [@marmolin](https://www.ruby-forum.com/u/marmolin)\
**Replies:** 0\
**Last updated:** [January 7, 2009, 5:06pm UTC](https://www.ruby-forum.com/t/migration-problem-in-rail-2-0-and-observers/157124 "2009-01-07T17:06:30Z")

</div>

I have a somewhat confusing error !! U I am using ruby 1.8.7 rails 2.0 and text mate and have observers that are defined in cofiguration file as config.active\_record.observers = :flock\_observer, :text\_observer I can…

---

## [Changing order of hash](https://www.ruby-forum.com/t/changing-order-of-hash/157101)

<div class="topic-metadata">

**Author:** [@vanight](https://www.ruby-forum.com/u/vanight)\
**Replies:** 3\
**Last updated:** [January 7, 2009, 4:56pm UTC](https://www.ruby-forum.com/t/changing-order-of-hash/157101 "2009-01-07T16:56:51Z")

</div>

I’ve got a constant of difficulty levels in my ‘Tutorial’ model which is a hash of DIFFICULTIES = {“Beginner” =\> 1, “Intermediate” =\> 2, “Advanced” =\> 3} However when I pass it to my options\_for\_select helper they app…

---

## [Super Classes and Database Tables](https://www.ruby-forum.com/t/super-classes-and-database-tables/157120)

<div class="topic-metadata">

**Author:** [@daz](https://www.ruby-forum.com/u/daz)\
**Replies:** 1\
**Last updated:** [January 7, 2009, 4:35pm UTC](https://www.ruby-forum.com/t/super-classes-and-database-tables/157120 "2009-01-07T16:35:22Z")

</div>

Hi, I have a database question. I’m trying to plan a simple app for tracking pupil progress at a school. These are the models and associations I had in mind: Teachers :have\_many Classes Classes :have\_many Pupils Cla…

---

## ["No such file to load" error when running Rspec](https://www.ruby-forum.com/t/no-such-file-to-load-error-when-running-rspec/157082)

<div class="topic-metadata">

**Author:** [@eeby](https://www.ruby-forum.com/u/eeby)\
**Replies:** 2\
**Last updated:** [January 7, 2009, 3:40pm UTC](https://www.ruby-forum.com/t/no-such-file-to-load-error-when-running-rspec/157082 "2009-01-07T15:40:39Z")

</div>

Mac OS 10.4 rspec (1.1.11, 1.1.4, 1.1.3, 0.5.15) rspec-rails (1.1.11) rspec\_generator (0.5.15) rails 2.2.2 ruby 1.8.6 (2007-03-13 patchlevel 0) \[universal-darwin8.0\] Created a new project… $ rails myproject Insta…

---

## [Newbie trying self-referencing :through via REST model](https://www.ruby-forum.com/t/newbie-trying-self-referencing-through-via-rest-model/156951)

<div class="topic-metadata">

**Author:** [@itsastickup](https://www.ruby-forum.com/u/itsastickup)\
**Replies:** 3\
**Last updated:** [January 7, 2009, 3:28pm UTC](https://www.ruby-forum.com/t/newbie-trying-self-referencing-through-via-rest-model/156951 "2009-01-07T15:28:51Z")

</div>

I’ve read through countless blogs and the docs and can’t seem to get what I expect. I also tried irc on freenode, but they ignored me. I must have a case of the mange or something. I have a Person model (on a people t…

---

## [Restful\_authentication installation setup problem](https://www.ruby-forum.com/t/restful-authentication-installation-setup-problem/157064)

<div class="topic-metadata">

**Author:** [@ihihih](https://www.ruby-forum.com/u/ihihih)\
**Replies:** 1\
**Last updated:** [January 7, 2009, 3:23pm UTC](https://www.ruby-forum.com/t/restful-authentication-installation-setup-problem/157064 "2009-01-07T15:23:32Z")

</div>

I’m new to rails and trying to get restful\_authentication working, but I am getting errors when I try to create a user or login. I followed the instructions at the github repository and everything generated fine and h…

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

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