# Rails

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

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

---

## [PostgreSQL Test Database DNE for rake, does exist for psql](https://www.ruby-forum.com/t/postgresql-test-database-dne-for-rake-does-exist-for-psql/182960)

<div class="topic-metadata">

**Author:** [@steveybaby](https://www.ruby-forum.com/u/steveybaby)\
**Replies:** 5\
**Last updated:** [February 5, 2010, 11:24pm UTC](https://www.ruby-forum.com/t/postgresql-test-database-dne-for-rake-does-exist-for-psql/182960 "2010-02-05T23:24:21Z")

</div>

Hello All, I’m relatively new to Ruby and Rails. I’m working with PostgreSQL successfully as a development database server, and I want to use it in production and testing as well. My development server is called (mya…

---

## [Define a string as a Model object](https://www.ruby-forum.com/t/define-a-string-as-a-model-object/182984)

<div class="topic-metadata">

**Author:** [@Frank\_in\_Tennessee](https://www.ruby-forum.com/u/Frank_in_Tennessee)\
**Replies:** 5\
**Last updated:** [February 5, 2010, 11:22pm UTC](https://www.ruby-forum.com/t/define-a-string-as-a-model-object/182984 "2010-02-05T23:22:54Z")

</div>

Good morning, I’m trying to dynamically define models. This method #1 works: model\_name = User @Model = model\_name @Model.find(params\[:id\]).name This method #2 doesn’t: model\_name = “User” @Model = model\_name @M…

---

## [I'm having trouble with Routes II](https://www.ruby-forum.com/t/im-having-trouble-with-routes-ii/182939)

<div class="topic-metadata">

**Author:** [@ralphshnelvar](https://www.ruby-forum.com/u/ralphshnelvar)\
**Replies:** 7\
**Last updated:** [February 5, 2010, 11:19pm UTC](https://www.ruby-forum.com/t/im-having-trouble-with-routes-ii/182939 "2010-02-05T23:19:33Z")

</div>

I have narrowed my problem in a prior topic (I’m having trouble with Routes) to the fact that I get the problem, below only when I reload my page. Clicking on links to go to the pages I want … I seem not to have prob…

---

## [Ajax Update Status](https://www.ruby-forum.com/t/ajax-update-status/182981)

<div class="topic-metadata">

**Author:** [@Volkan\_SSSSSALISSS\_S](https://www.ruby-forum.com/u/Volkan_SSSSSALISSS_S)\
**Replies:** 4\
**Last updated:** [February 5, 2010, 10:01pm UTC](https://www.ruby-forum.com/t/ajax-update-status/182981 "2010-02-05T22:01:29Z")

</div>

Hello All, I am new to this Ajax update with form\_remote\_tag. I have a model so a table with order\_line\_items which has a order\_line\_item\_status\_code\_id field. I am listing the pending items just fine in a list view w…

---

## [Is this SQL possible with Rails? How can I sanitize?](https://www.ruby-forum.com/t/is-this-sql-possible-with-rails-how-can-i-sanitize/183002)

<div class="topic-metadata">

**Author:** [@captaffy](https://www.ruby-forum.com/u/captaffy)\
**Replies:** 3\
**Last updated:** [February 5, 2010, 9:56pm UTC](https://www.ruby-forum.com/t/is-this-sql-possible-with-rails-how-can-i-sanitize/183002 "2010-02-05T21:56:30Z")

</div>

I want to do something like this in Rails: “SELECT \*, COUNT(post\_id) AS total FROM comments … conditions” Is that SELECT possible in Rails. Ohterwise, I can use find\_by\_sql, but i’m trying to avoid SQL injection and t…

---

## [Possible to refresh divs outside of an iframe? (general web dev question w rails-y flavors)](https://www.ruby-forum.com/t/possible-to-refresh-divs-outside-of-an-iframe-general-web-dev-question-w-rails-y-flavors/183004)

<div class="topic-metadata">

**Author:** [@lunaclaire](https://www.ruby-forum.com/u/lunaclaire)\
**Replies:** 0\
**Last updated:** [February 5, 2010, 9:22pm UTC](https://www.ruby-forum.com/t/possible-to-refresh-divs-outside-of-an-iframe-general-web-dev-question-w-rails-y-flavors/183004 "2010-02-05T21:22:52Z")

</div>

I know this is a general question, but there is an aspect to rails dev that I hope makes it appropriate to post here… I’m building a FB App for a client using the Facebooker plugin. Because of the way FB restricts fil…

---

## [Limit disk space allocation](https://www.ruby-forum.com/t/limit-disk-space-allocation/182965)

<div class="topic-metadata">

**Author:** [@prabesh](https://www.ruby-forum.com/u/prabesh)\
**Replies:** 3\
**Last updated:** [February 5, 2010, 9:03pm UTC](https://www.ruby-forum.com/t/limit-disk-space-allocation/182965 "2010-02-05T21:03:00Z")

</div>

I have a project management application . Anyone can sign up but as the space is limited, I need to limit the space for each user so they can’t upload more than the allocated quota. How Can I allocate the fixed space …

---

## [Accessing reports externally through web interface](https://www.ruby-forum.com/t/accessing-reports-externally-through-web-interface/182999)

<div class="topic-metadata">

**Author:** [@Daxal](https://www.ruby-forum.com/u/Daxal)\
**Replies:** 0\
**Last updated:** [February 5, 2010, 7:39pm UTC](https://www.ruby-forum.com/t/accessing-reports-externally-through-web-interface/182999 "2010-02-05T19:39:15Z")

</div>

Hey guys I was wondering if anyone kknows how to access the reports that jasper server creates externally through a website on another computeR? I am trying to access the reports from another server that i have. I am…

---

## [How to use a variable as a params hash key](https://www.ruby-forum.com/t/how-to-use-a-variable-as-a-params-hash-key/182986)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 5\
**Last updated:** [February 5, 2010, 7:22pm UTC](https://www.ruby-forum.com/t/how-to-use-a-variable-as-a-params-hash-key/182986 "2010-02-05T19:22:16Z")

</div>

Not sure if I worded that Subject line correctly… :stuck\_out\_tongue: Anyway, I want to be able to do something similar to the following when processing form data: 1…5.each do |number| if params\[:data\]\[number\] == ‘1’ …

---

## [Http://planetrubyonrails.net/ now on Rails 3.0 beta](https://www.ruby-forum.com/t/http-planetrubyonrails-net-now-on-rails-3-0-beta/182995)

<div class="topic-metadata">

**Author:** [@anildigital](https://www.ruby-forum.com/u/anildigital)\
**Replies:** 0\
**Last updated:** [February 5, 2010, 6:57pm UTC](https://www.ruby-forum.com/t/http-planetrubyonrails-net-now-on-rails-3-0-beta/182995 "2010-02-05T18:57:41Z")

</div>

http://planetrubyonrails.net/ now on Rails 3.0 beta – Anil

---

## [Multiple "identical" tables](https://www.ruby-forum.com/t/multiple-identical-tables/182940)

<div class="topic-metadata">

**Author:** [@bluegreen](https://www.ruby-forum.com/u/bluegreen)\
**Replies:** 5\
**Last updated:** [February 5, 2010, 6:39pm UTC](https://www.ruby-forum.com/t/multiple-identical-tables/182940 "2010-02-05T18:39:29Z")

</div>

Hi, there. I was wondering if it’s possible to have one controller and view that has multiple tables. Let say there are 10 schools. Each school has a table to stores students’ info. So one Student controller with 1…

---

## [Get a non instantiated object caller](https://www.ruby-forum.com/t/get-a-non-instantiated-object-caller/182989)

<div class="topic-metadata">

**Author:** [@Augusto\_Ruibal\_SShi](https://www.ruby-forum.com/u/Augusto_Ruibal_SShi)\
**Replies:** 0\
**Last updated:** [February 5, 2010, 6:15pm UTC](https://www.ruby-forum.com/t/get-a-non-instantiated-object-caller/182989 "2010-02-05T18:15:32Z")

</div>

Let me explain: class User \< AR:Base has\_many :contacts end class Contact \< AR:Base belongs\_to :user end

---

## [Edge Rails 3: Mongrel stuck in infinite loop, Unicorn missing uninitialized constant Rack::Runtime](https://www.ruby-forum.com/t/edge-rails-3-mongrel-stuck-in-infinite-loop-unicorn-missing-uninitialized-constant-rack-runtime/182975)

<div class="topic-metadata">

**Author:** [@ja-va](https://www.ruby-forum.com/u/ja-va)\
**Replies:** 2\
**Last updated:** [February 5, 2010, 5:42pm UTC](https://www.ruby-forum.com/t/edge-rails-3-mongrel-stuck-in-infinite-loop-unicorn-missing-uninitialized-constant-rack-runtime/182975 "2010-02-05T17:42:46Z")

</div>

Hi, I wanted to try out Edge Rails 3 today and hit a serious problem trying to run mongrel. script/rails server mongrel just hangs. Interrupting and looking up the spot of the lockup revealed $LOAD\_PATH.unshift ‘pro…

---

## [Undefined method â€˜câ€™ error](https://www.ruby-forum.com/t/undefined-method-a-ca-error/182977)

<div class="topic-metadata">

**Author:** [@jmaenpaa](https://www.ruby-forum.com/u/jmaenpaa)\
**Replies:** 4\
**Last updated:** [February 5, 2010, 5:28pm UTC](https://www.ruby-forum.com/t/undefined-method-a-ca-error/182977 "2010-02-05T17:28:40Z")

</div>

Hey all, I’m getting an undefined method ‘c’ error. I’m in the students controller, and I’m trying to find the book associated with the student, and then take that book’s id\_number and assign the room’s id to it and …

---

## [Store HTML select option value](https://www.ruby-forum.com/t/store-html-select-option-value/182946)

<div class="topic-metadata">

**Author:** [@Learn\_by\_D](https://www.ruby-forum.com/u/Learn_by_D)\
**Replies:** 3\
**Last updated:** [February 5, 2010, 4:56pm UTC](https://www.ruby-forum.com/t/store-html-select-option-value/182946 "2010-02-05T16:56:31Z")

</div>

In my app, each user may have one of the 30 predefined occupations. Each occupation is a string of about 30 characters. Should I: a. store this list of occupations in a mysql table and make occupation\_id a foreign k…

---

## [&quot; appearing in email](https://www.ruby-forum.com/t/quot-appearing-in-email/182925)

<div class="topic-metadata">

**Author:** [@bloc](https://www.ruby-forum.com/u/bloc)\
**Replies:** 3\
**Last updated:** [February 5, 2010, 4:22pm UTC](https://www.ruby-forum.com/t/quot-appearing-in-email/182925 "2010-02-05T16:22:35Z")

</div>

I am having problems with the formatting of my email. This is what my code looks like email = NotifyMailer.create\_send\_notifications(@notification,@test) email.set\_content\_type(“text/plain”) NotifyMailer.deliver(…

---

## [Error on deployment from windows xp](https://www.ruby-forum.com/t/error-on-deployment-from-windows-xp/182979)

<div class="topic-metadata">

**Author:** [@msh\_maryam](https://www.ruby-forum.com/u/msh_maryam)\
**Replies:** 0\
**Last updated:** [February 5, 2010, 3:51pm UTC](https://www.ruby-forum.com/t/error-on-deployment-from-windows-xp/182979 "2010-02-05T15:51:22Z")

</div>

Hi guys, I am new in Ruby, I can deploy from linux using capistrano Ruby version 1.9.1 capistrano version 2.5.14 but form Windows XP i got following errors: C:\\project\\canpages\\portal\>cap sandcode deploy executin…

---

## [Problem with Ajax Updater](https://www.ruby-forum.com/t/problem-with-ajax-updater/182957)

<div class="topic-metadata">

**Author:** [@hemantborole](https://www.ruby-forum.com/u/hemantborole)\
**Replies:** 2\
**Last updated:** [February 5, 2010, 12:46pm UTC](https://www.ruby-forum.com/t/problem-with-ajax-updater/182957 "2010-02-05T12:46:33Z")

</div>

Hello Champs, Can i change the visibility of an element in .js.rjs file ?

---

## [Plugin not found: 'attachment\_fu'](https://www.ruby-forum.com/t/plugin-not-found-attachment-fu/182963)

<div class="topic-metadata">

**Author:** [@anilbhat21](https://www.ruby-forum.com/u/anilbhat21)\
**Replies:** 4\
**Last updated:** [February 5, 2010, 12:17pm UTC](https://www.ruby-forum.com/t/plugin-not-found-attachment-fu/182963 "2010-02-05T12:17:58Z")

</div>

Hi, I tried to install ‘attachment\_fu’ by the following command: script/plugin install http://svn.techno-weenie.net/projects/plugins/attachment\_fu/ but its giving me the error: Plugin not found: \["http://svn.techno…

---

## [How to get the multiple selected Combobox value](https://www.ruby-forum.com/t/how-to-get-the-multiple-selected-combobox-value/182964)

<div class="topic-metadata">

**Author:** [@antony\_4u](https://www.ruby-forum.com/u/antony_4u)\
**Replies:** 2\
**Last updated:** [February 5, 2010, 11:54am UTC](https://www.ruby-forum.com/t/how-to-get-the-multiple-selected-combobox-value/182964 "2010-02-05T11:54:02Z")

</div>

\<% users.each do |user| %\> \<%= user %\> \<% end %\> How to get the multiple selected value in the controller. Now if I say " puts params\[:user\_name\] " only the last selected value is coming . Plzz Help Than…

---

## [Skipping rescue handlers in dev mode](https://www.ruby-forum.com/t/skipping-rescue-handlers-in-dev-mode/182428)

<div class="topic-metadata">

**Author:** [@tristan](https://www.ruby-forum.com/u/tristan)\
**Replies:** 1\
**Last updated:** [February 5, 2010, 9:21am UTC](https://www.ruby-forum.com/t/skipping-rescue-handlers-in-dev-mode/182428 "2010-02-05T09:21:10Z")

</div>

Hi all To make my error pages more user-friendly I’m rendering my error messages (404, 500 etc) using the site’s layout. To do this I’m using rescue\_from as below: rescue\_from Exception, :with =\> :server\_error rescu…

---

## [Encrypting the password using Authlogic](https://www.ruby-forum.com/t/encrypting-the-password-using-authlogic/182951)

<div class="topic-metadata">

**Author:** [@gandhi-tush](https://www.ruby-forum.com/u/gandhi-tush)\
**Replies:** 1\
**Last updated:** [February 5, 2010, 9:21am UTC](https://www.ruby-forum.com/t/encrypting-the-password-using-authlogic/182951 "2010-02-05T09:21:10Z")

</div>

Hi, I am using “Authlogic” for user authentication. I have a excel file into which I have user deatils. I have to migrate those details to the “users” table. For that I have written a script which goes through the ex…

---

## [Is there no generator in rails 3?](https://www.ruby-forum.com/t/is-there-no-generator-in-rails-3/182956)

<div class="topic-metadata">

**Author:** [@terrytie](https://www.ruby-forum.com/u/terrytie)\
**Replies:** 1\
**Last updated:** [February 5, 2010, 8:17am UTC](https://www.ruby-forum.com/t/is-there-no-generator-in-rails-3/182956 "2010-02-05T08:17:23Z")

</div>

Hye guys: Just downloaded the rails3 beta for testing. But find there is not ''generator" for me to create some scaffolds. Any ideas guys? –Terry

---

## [Toggling effect](https://www.ruby-forum.com/t/toggling-effect/182815)

<div class="topic-metadata">

**Author:** [@charanya](https://www.ruby-forum.com/u/charanya)\
**Replies:** 2\
**Last updated:** [February 5, 2010, 4:04am UTC](https://www.ruby-forum.com/t/toggling-effect/182815 "2010-02-05T04:04:33Z")

</div>

Hi all, I have a list of links in a page,i have toggling effect associated with them \<%= link\_to\_function("#{article.title}", nil ) do |page| page.visual\_effect :toggle\_blind, “article\_content\_#{article.id}” end %\> …

---

## [Logging all info between browser and Rails app](https://www.ruby-forum.com/t/logging-all-info-between-browser-and-rails-app/182944)

<div class="topic-metadata">

**Author:** [@ralphshnelvar](https://www.ruby-forum.com/u/ralphshnelvar)\
**Replies:** 1\
**Last updated:** [February 5, 2010, 3:42am UTC](https://www.ruby-forum.com/t/logging-all-info-between-browser-and-rails-app/182944 "2010-02-05T03:42:14Z")

</div>

Is there a convenient way to log all the traffic (in both directions) between a browser and a RoR application?

---

## [Acts\_as\_audited - save NAME value not ID value](https://www.ruby-forum.com/t/acts-as-audited-save-name-value-not-id-value/182855)

<div class="topic-metadata">

**Author:** [@Frank\_in\_Tennessee](https://www.ruby-forum.com/u/Frank_in_Tennessee)\
**Replies:** 2\
**Last updated:** [February 5, 2010, 3:36am UTC](https://www.ruby-forum.com/t/acts-as-audited-save-name-value-not-id-value/182855 "2010-02-05T03:36:00Z")

</div>

I have a form with many fields that can be changed. Company, Group, Facility, Department, User, etc… Each field has an associated table with the following fields(ID, NAME) If a Company, Group, or Department is change…

---

## [\[vlad\] migration fails with access denied](https://www.ruby-forum.com/t/vlad-migration-fails-with-access-denied/182938)

<div class="topic-metadata">

**Author:** [@trapper](https://www.ruby-forum.com/u/trapper)\
**Replies:** 0\
**Last updated:** [February 5, 2010, 1:16am UTC](https://www.ruby-forum.com/t/vlad-migration-fails-with-access-denied/182938 "2010-02-05T01:16:20Z")

</div>

I configured a virtual VMware server inside my workstation to run my test on a host only network. Deployment via vlad transfers the repository from the git repository on my workstation to the server and issues several…

---

## [Acts\_as\_list long standing before\_destroy bug](https://www.ruby-forum.com/t/acts-as-list-long-standing-before-destroy-bug/182935)

<div class="topic-metadata">

**Author:** [@Learn\_by\_D](https://www.ruby-forum.com/u/Learn_by_D)\
**Replies:** 0\
**Last updated:** [February 5, 2010, 12:15am UTC](https://www.ruby-forum.com/t/acts-as-list-long-standing-before-destroy-bug/182935 "2010-02-05T00:15:40Z")

</div>

Just a comment: It took me hours to figure out that acts\_as\_list is the culprit of an erratic behaviour in my model (I am still a newb). My model changes some other model before\_save. Upon destroy, those changes see…

---

## [How to start/stop database from rake?](https://www.ruby-forum.com/t/how-to-start-stop-database-from-rake/182932)

<div class="topic-metadata">

**Author:** [@Josef\_W](https://www.ruby-forum.com/u/Josef_W)\
**Replies:** 0\
**Last updated:** [February 4, 2010, 10:42pm UTC](https://www.ruby-forum.com/t/how-to-start-stop-database-from-rake/182932 "2010-02-04T22:42:01Z")

</div>

Hello, I would like to start the database server (postgres) before tests are run and stop it afterwards. For this, I have created a little wrapper around rake: $ cat run-rake #! /bin/sh DB=pwd/db/pgdata init data…

---

## [I'm having trouble with Routes](https://www.ruby-forum.com/t/im-having-trouble-with-routes/182931)

<div class="topic-metadata">

**Author:** [@ralphshnelvar](https://www.ruby-forum.com/u/ralphshnelvar)\
**Replies:** 0\
**Last updated:** [February 4, 2010, 10:40pm UTC](https://www.ruby-forum.com/t/im-having-trouble-with-routes/182931 "2010-02-04T22:40:28Z")

</div>

I don’t understand why I’m getting a routing error. So … in an attempt to fix it I did f:\\Ralph-Rails-Apps\\WebOfTrust\>ruby script/console Loading development environment (Rails 2.3.5) f:/Ralph-Rails-Apps/WebOfTrust…

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

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