# Rails

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

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

---

## [Evaluate javascript in Ajax.Request](https://www.ruby-forum.com/t/evaluate-javascript-in-ajax-request/129886)

<div class="topic-metadata">

**Author:** [@frankiefoo](https://www.ruby-forum.com/u/frankiefoo)\
**Replies:** 1\
**Last updated:** [February 22, 2008, 12:40pm UTC](https://www.ruby-forum.com/t/evaluate-javascript-in-ajax-request/129886 "2008-02-22T12:40:51Z")

</div>

Hi there, does anyone know if it is possible to generate remote\_function calls in a dynamic fashion similar to this: \<%= remote\_function(:url =\> {:action =\> “setComponent”, :component =\> comp, :value =\> document.getE…

---

## [Problem with Autotest and Rails](https://www.ruby-forum.com/t/problem-with-autotest-and-rails/125950)

<div class="topic-metadata">

**Author:** [@esquilax](https://www.ruby-forum.com/u/esquilax)\
**Replies:** 5\
**Last updated:** [February 22, 2008, 11:52am UTC](https://www.ruby-forum.com/t/problem-with-autotest-and-rails/125950 "2008-02-22T11:52:13Z")

</div>

using rails 2.0.2 and ZenTest 3.7.2 I know this must be something dumb I’m doing. But I’m getting this problem both in OSX and ubuntu. On a new rails projects when I run autotest I get the following output loading…

---

## [Rails 2.0 deprecated warning](https://www.ruby-forum.com/t/rails-2-0-deprecated-warning/125953)

<div class="topic-metadata">

**Author:** [@sweetpete](https://www.ruby-forum.com/u/sweetpete)\
**Replies:** 19\
**Last updated:** [February 22, 2008, 11:50am UTC](https://www.ruby-forum.com/t/rails-2-0-deprecated-warning/125953 "2008-02-22T11:50:28Z")

</div>

Hi I am on Rails 1.2.6, but want to get my app running without warning’s so i can move to 2.0.2. I’m currently getting the folowing warning: “has\_avatar? is deprecated and will be removed from Rails 2.0 (use ! avata…

---

## [Unrecoverable exception handling](https://www.ruby-forum.com/t/unrecoverable-exception-handling/129851)

<div class="topic-metadata">

**Author:** [@mr\_tibs](https://www.ruby-forum.com/u/mr_tibs)\
**Replies:** 1\
**Last updated:** [February 22, 2008, 11:28am UTC](https://www.ruby-forum.com/t/unrecoverable-exception-handling/129851 "2008-02-22T11:28:26Z")

</div>

Hi, I asked this question on railsforum.com but nobody replied yet. I wanted to know how new recoverable and unrecoverable exceptions should be handled. Unrecoverable exceptions for standard CRUD operations render th…

---

## [How to debug session error](https://www.ruby-forum.com/t/how-to-debug-session-error/129841)

<div class="topic-metadata">

**Author:** [@oldbug](https://www.ruby-forum.com/u/oldbug)\
**Replies:** 2\
**Last updated:** [February 22, 2008, 11:23am UTC](https://www.ruby-forum.com/t/how-to-debug-session-error/129841 "2008-02-22T11:23:44Z")

</div>

My rails (1.1.6) wep application has been working fine for months, with 15 000 user per day. never had any problem with session. Then I added a new feature to my app, and, after 4 to 6 hours, sessions start to be lost…

---

## [Does a request and the request created by a "link\_to 'xxx', {:action =\> 'xx'} :popup =\> true " shar](https://www.ruby-forum.com/t/does-a-request-and-the-request-created-by-a-link-to-xxx-action-xx-popup-true-shar/129735)

<div class="topic-metadata">

**Author:** [@hei](https://www.ruby-forum.com/u/hei)\
**Replies:** 12\
**Last updated:** [February 22, 2008, 11:20am UTC](https://www.ruby-forum.com/t/does-a-request-and-the-request-created-by-a-link-to-xxx-action-xx-popup-true-shar/129735 "2008-02-22T11:20:12Z")

</div>

I have a url called A, in its resource , this exists: \<%= link\_to ‘XXX’, {:action =\> ‘xxx’}, :popup =\> true %\> and I click it and create a new request with url B Now I have two requests, or two browser pages A and B …

---

## [Association to indicate synonyms](https://www.ruby-forum.com/t/association-to-indicate-synonyms/129881)

<div class="topic-metadata">

**Author:** [@Kless](https://www.ruby-forum.com/u/Kless)\
**Replies:** 0\
**Last updated:** [February 22, 2008, 10:55am UTC](https://www.ruby-forum.com/t/association-to-indicate-synonyms/129881 "2008-02-22T10:55:14Z")

</div>

Which is the better way to indicating synonyms into a table? But I’d get all those synonyms together to the main table. Althought if is choosed a synonym I’d that it were directed to the object of the main table. I d…

---

## [HABTM check\_box + create](https://www.ruby-forum.com/t/habtm-check-box-create/129870)

<div class="topic-metadata">

**Author:** [@sweetpete](https://www.ruby-forum.com/u/sweetpete)\
**Replies:** 1\
**Last updated:** [February 22, 2008, 8:17am UTC](https://www.ruby-forum.com/t/habtm-check-box-create/129870 "2008-02-22T08:17:41Z")

</div>

Hi, I have the following models: Class Question has\_and\_belongs\_to\_many :domains end Class Domain has\_and\_belongs\_to\_many :questions end Class Category belongs\_to :question end I have a ‘domains’ table with a …

---

## [TextMate bundle 2.0](https://www.ruby-forum.com/t/textmate-bundle-2-0/129868)

<div class="topic-metadata">

**Author:** [@rlwinter](https://www.ruby-forum.com/u/rlwinter)\
**Replies:** 0\
**Last updated:** [February 22, 2008, 7:15am UTC](https://www.ruby-forum.com/t/textmate-bundle-2-0/129868 "2008-02-22T07:15:55Z")

</div>

Hi group, Is anyone out there using the two\_point\_ooh TextMate bundle from Dr Nic? http://drnicwilliams.com/2008/01/31/get-ready-for-the-textmate-trundle-to-rails-20-bundle/ I think I would like to try this out, but …

---

## [Difference between nginx and mongrel](https://www.ruby-forum.com/t/difference-between-nginx-and-mongrel/129778)

<div class="topic-metadata">

**Author:** [@Love\_AJAX](https://www.ruby-forum.com/u/Love_AJAX)\
**Replies:** 9\
**Last updated:** [February 22, 2008, 6:58am UTC](https://www.ruby-forum.com/t/difference-between-nginx-and-mongrel/129778 "2008-02-22T06:58:54Z")

</div>

Hi, I could never find out what’s the difference between nginx and mongrel. All my searches say “nginx is a HTTP server …” and “Mongrel is a fast HTTP library and server for Ruby…”. For me they both mean “…HTTP serve…

---

## [Routing?](https://www.ruby-forum.com/t/routing/129856)

<div class="topic-metadata">

**Author:** [@casid](https://www.ruby-forum.com/u/casid)\
**Replies:** 5\
**Last updated:** [February 22, 2008, 6:34am UTC](https://www.ruby-forum.com/t/routing/129856 "2008-02-22T06:34:48Z")

</div>

Hello RoR Developers I want to create parameter in routes.rb which is wanted to be used in javascript code in view page. there is select object in my view page and this parameter will get value from select object howe…

---

## [Multiple Models in one submit](https://www.ruby-forum.com/t/multiple-models-in-one-submit/129866)

<div class="topic-metadata">

**Author:** [@bitsmith](https://www.ruby-forum.com/u/bitsmith)\
**Replies:** 0\
**Last updated:** [February 22, 2008, 6:11am UTC](https://www.ruby-forum.com/t/multiple-models-in-one-submit/129866 "2008-02-22T06:11:57Z")

</div>

I have an application which keeps track of my financial data. Each bank transaction I make is stored as an Entry model. An entry just has a name and an amount. I keep the text\_field for name and amount inside of a p…

---

## [Getting parameter?](https://www.ruby-forum.com/t/getting-parameter/129731)

<div class="topic-metadata">

**Author:** [@casid](https://www.ruby-forum.com/u/casid)\
**Replies:** 8\
**Last updated:** [February 22, 2008, 5:40am UTC](https://www.ruby-forum.com/t/getting-parameter/129731 "2008-02-22T05:40:48Z")

</div>

Hello RoR developers do you know how can I get parameter from selection to method from out of form object? I have selection in view page, I have method in controller and I want to get parameter from selection but sel…

---

## [Select option passes value =\> nil, not name =\> value](https://www.ruby-forum.com/t/select-option-passes-value-nil-not-name-value/129787)

<div class="topic-metadata">

**Author:** [@yetanothergeek](https://www.ruby-forum.com/u/yetanothergeek)\
**Replies:** 2\
**Last updated:** [February 22, 2008, 4:52am UTC](https://www.ruby-forum.com/t/select-option-passes-value-nil-not-name-value/129787 "2008-02-22T04:52:03Z")

</div>

Hello. I’m trying to have a select box in one of my views be observed for change and have the value of the select box be accessible via params\[:name\] in my controller. However, no matter what I try the select paramete…

---

## [Ruby library for Alibaba/Ta obao's (é‡Œå·´å·´/æ·˜å®) Alipay -](https://www.ruby-forum.com/t/ruby-library-for-alibaba-ta-obaos-e-oea-a-ae-a-alipay/129862)

<div class="topic-metadata">

**Author:** [@Jonathan\_Palley](https://www.ruby-forum.com/u/Jonathan_Palley)\
**Replies:** 0\
**Last updated:** [February 22, 2008, 4:40am UTC](https://www.ruby-forum.com/t/ruby-library-for-alibaba-ta-obaos-e-oea-a-ae-a-alipay/129862 "2008-02-22T04:40:35Z")

</div>

Hello - Has anyone written a Ruby library to interface with Alibaba/ Taobao’s Alipay service in China. Would you be willing to Open Source it? We are happy to make any contributions back. å¤§å®¶å¥½ï¼Œ è¯·é—®æœ‰äºº…

---

## [Problem with FxRuby DnD demo](https://www.ruby-forum.com/t/problem-with-fxruby-dnd-demo/129504)

<div class="topic-metadata">

**Author:** [@richard](https://www.ruby-forum.com/u/richard)\
**Replies:** 2\
**Last updated:** [February 22, 2008, 4:00am UTC](https://www.ruby-forum.com/t/problem-with-fxruby-dnd-demo/129504 "2008-02-22T04:00:42Z")

</div>

Hi All, I’m following the excellent tutorial at http://www.fxruby.org/doc/: – clipboardtut.html – ch04s02.html – ch04s03.html In the latter page, the author adds the following to ClipMainWindow#initialize: Handl…

---

## [Ruby app hangs when no new requests come in to http server](https://www.ruby-forum.com/t/ruby-app-hangs-when-no-new-requests-come-in-to-http-server/129850)

<div class="topic-metadata">

**Author:** [@Rodre](https://www.ruby-forum.com/u/Rodre)\
**Replies:** 1\
**Last updated:** [February 22, 2008, 3:49am UTC](https://www.ruby-forum.com/t/ruby-app-hangs-when-no-new-requests-come-in-to-http-server/129850 "2008-02-22T03:49:48Z")

</div>

Hello, I am new to ruby on rails so pardon any ignorance, indiscretions, etc. I have inherited the administration of a RoR web app that runs under mongrel. My problem is that as long as there are http requests coming …

---

## [Looping through a list](https://www.ruby-forum.com/t/looping-through-a-list/129843)

<div class="topic-metadata">

**Author:** [@jimmypalmer](https://www.ruby-forum.com/u/jimmypalmer)\
**Replies:** 7\
**Last updated:** [February 22, 2008, 3:25am UTC](https://www.ruby-forum.com/t/looping-through-a-list/129843 "2008-02-22T03:25:18Z")

</div>

what is the proper way to loop through a list in a rails view (assuming that you need to check if it is empty or not)

---

## [Inheritance: Parent not using Child method](https://www.ruby-forum.com/t/inheritance-parent-not-using-child-method/129845)

<div class="topic-metadata">

**Author:** [@Brenton\_B](https://www.ruby-forum.com/u/Brenton_B)\
**Replies:** 3\
**Last updated:** [February 22, 2008, 2:39am UTC](https://www.ruby-forum.com/t/inheritance-parent-not-using-child-method/129845 "2008-02-22T02:39:41Z")

</div>

Setup: class Parent def foo bar() end def bar # more stuff end end class Child \< Parent def bar # over riding bar end end obj = Child.new obj.foo K, now naturally, due to inheritance this will call Par…

---

## [See the biggest web page in the world!](https://www.ruby-forum.com/t/see-the-biggest-web-page-in-the-world/129847)

<div class="topic-metadata">

**Author:** [@corkywew2](https://www.ruby-forum.com/u/corkywew2)\
**Replies:** 0\
**Last updated:** [February 22, 2008, 1:54am UTC](https://www.ruby-forum.com/t/see-the-biggest-web-page-in-the-world/129847 "2008-02-22T01:54:29Z")

</div>

www.thebiggestwebpageintheworld.com LIKE OH MY GOD THAT’S ONE BIG WEBPAGE !

---

## [Always ignore some records in my model](https://www.ruby-forum.com/t/always-ignore-some-records-in-my-model/129846)

<div class="topic-metadata">

**Author:** [@bcm](https://www.ruby-forum.com/u/bcm)\
**Replies:** 2\
**Last updated:** [February 22, 2008, 1:31am UTC](https://www.ruby-forum.com/t/always-ignore-some-records-in-my-model/129846 "2008-02-22T01:31:27Z")

</div>

Hi all, I’ve got an interesting problem. I’m dealing with a legacy database, and for one of my models I always want to ignore records that have a particular column set. I would like to pretend like they don’t exist. …

---

## [Hostingrails vps?](https://www.ruby-forum.com/t/hostingrails-vps/129844)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [February 22, 2008, 1:11am UTC](https://www.ruby-forum.com/t/hostingrails-vps/129844 "2008-02-22T01:11:05Z")

</div>

Anyone here using a VPS from hostingrails.com ? I’m interested in their Ruby on Rails VPS Image “Ready to Roll”, for obvious reasons. http://www.hostingrails.com/vps\_hosting I’ve searched and all the comments about h…

---

## [Polymorphic has\_many from ActiveRecord::Base?](https://www.ruby-forum.com/t/polymorphic-has-many-from-activerecord-base/129809)

<div class="topic-metadata">

**Author:** [@uncle](https://www.ruby-forum.com/u/uncle)\
**Replies:** 1\
**Last updated:** [February 22, 2008, 1:00am UTC](https://www.ruby-forum.com/t/polymorphic-has-many-from-activerecord-base/129809 "2008-02-22T01:00:36Z")

</div>

I have a polymorphic thingy called fields and I need to on each and every model, so I’d like to do the has\_many from the base class, like this… ActiveRecord::Base.class\_eval do has\_many :fields, :as =\> :model, :depen…

---

## [Error\_messages\_for and custom routes](https://www.ruby-forum.com/t/error-messages-for-and-custom-routes/129840)

<div class="topic-metadata">

**Author:** [@jimmypalmer](https://www.ruby-forum.com/u/jimmypalmer)\
**Replies:** 0\
**Last updated:** [February 22, 2008, 12:31am UTC](https://www.ruby-forum.com/t/error-messages-for-and-custom-routes/129840 "2008-02-22T00:31:41Z")

</div>

My error messages run fine except when I use custom routes. Any ideas why that might be happening?

---

## [Rails csv import with progress bar](https://www.ruby-forum.com/t/rails-csv-import-with-progress-bar/129820)

<div class="topic-metadata">

**Author:** [@nabeelz6](https://www.ruby-forum.com/u/nabeelz6)\
**Replies:** 5\
**Last updated:** [February 21, 2008, 11:58pm UTC](https://www.ruby-forum.com/t/rails-csv-import-with-progress-bar/129820 "2008-02-21T23:58:09Z")

</div>

Hey guys, got a rails question: I’ve finished creating a csv import ability in my web application that parses a csv file and adds records into the MySQL db. I figuired it would be nice to have a progress bar for this …

---

## [CSV Parsing - Shifting Multiple Rows](https://www.ruby-forum.com/t/csv-parsing-shifting-multiple-rows/129835)

<div class="topic-metadata">

**Author:** [@sithadmin](https://www.ruby-forum.com/u/sithadmin)\
**Replies:** 0\
**Last updated:** [February 21, 2008, 11:54pm UTC](https://www.ruby-forum.com/t/csv-parsing-shifting-multiple-rows/129835 "2008-02-21T23:54:11Z")

</div>

Hello, I’m using FasterCSV to parse a CSV, but I need to shift down and start at row 6… Using @parsed\_file.shift(6) tells me its the wrong number of arguments. I can’t seem to find proper documentation on this… Can s…

---

## [Module/Class Best Practices](https://www.ruby-forum.com/t/module-class-best-practices/129833)

<div class="topic-metadata">

**Author:** [@Brenton\_B](https://www.ruby-forum.com/u/Brenton_B)\
**Replies:** 1\
**Last updated:** [February 21, 2008, 11:54pm UTC](https://www.ruby-forum.com/t/module-class-best-practices/129833 "2008-02-21T23:54:02Z")

</div>

ok … once again a co-worker and I are having some disagreements on some setup issues … scenario: using TCPDF (derivative of FPDF) inheriting TCPDF to create our own class to do some basic stuff we need. going to fur…

---

## [Ruby on Rails - Scalability, MySQL Replication, Search](https://www.ruby-forum.com/t/ruby-on-rails-scalability-mysql-replication-search/129834)

<div class="topic-metadata">

**Author:** [@marcbey](https://www.ruby-forum.com/u/marcbey)\
**Replies:** 0\
**Last updated:** [February 21, 2008, 11:43pm UTC](https://www.ruby-forum.com/t/ruby-on-rails-scalability-mysql-replication-search/129834 "2008-02-21T23:43:27Z")

</div>

Hi, I’m a corp-to-corp contractor/consultant available March 7th for Ruby on Rails consulting, especially centering around Model, MySQL, replication (master-slave, multi-master, etc.), memcached, search, etc. I’ve be…

---

## [No view templates found](https://www.ruby-forum.com/t/no-view-templates-found/129832)

<div class="topic-metadata">

**Author:** [@hansdampf10](https://www.ruby-forum.com/u/hansdampf10)\
**Replies:** 0\
**Last updated:** [February 21, 2008, 11:34pm UTC](https://www.ruby-forum.com/t/no-view-templates-found/129832 "2008-02-21T23:34:20Z")

</div>

Hi, i am running two rails application on my server both on the same ip. Now i got new ips and tried to deploy a new application on this ip. The mongrel installation went normal and the mongrel servers are starting u…

---

## [Flex + Rails + Mysql Database Error](https://www.ruby-forum.com/t/flex-rails-mysql-database-error/129830)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [February 21, 2008, 11:03pm UTC](https://www.ruby-forum.com/t/flex-rails-mysql-database-error/129830 "2008-02-21T23:03:26Z")

</div>

Hi, I am integrating flex front end with rails back end. I am simply using XML formatted data. If there is some data in the database then i am able to generate xml data through rails. and using HTTPServices i am disp…

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

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