# Rails

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

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

---

## [Dispatcher failed to catch: with empty/new app](https://www.ruby-forum.com/t/dispatcher-failed-to-catch-with-empty-new-app/107817)

<div class="topic-metadata">

**Author:** [@hanoc](https://www.ruby-forum.com/u/hanoc)\
**Replies:** 5\
**Last updated:** [June 27, 2007, 11:25pm UTC](https://www.ruby-forum.com/t/dispatcher-failed-to-catch-with-empty-new-app/107817 "2007-06-27T23:25:59Z")

</div>

Hi there, I recently made some changes to my Gems and upgraded rails and ruby and now I’m getting a very weird error message. If I create a new and empty app with rails and execute dispatch.fcgi I get the following e…

---

## [Wierd problem with attachment\_fu plugin?](https://www.ruby-forum.com/t/wierd-problem-with-attachment-fu-plugin/107889)

<div class="topic-metadata">

**Author:** [@chirag](https://www.ruby-forum.com/u/chirag)\
**Replies:** 2\
**Last updated:** [June 27, 2007, 10:29pm UTC](https://www.ruby-forum.com/t/wierd-problem-with-attachment-fu-plugin/107889 "2007-06-27T22:29:54Z")

</div>

I’m using the attachment\_fu plugin in the following manner to upload a file. http://khamsouk.souvanlasy.com/2007/5/1/ajax-file-uploads-in-rails-using-attachment\_fu-and-responds\_to\_parent I ge tthe following error if I…

---

## [Monkey-patching generators?](https://www.ruby-forum.com/t/monkey-patching-generators/107206)

<div class="topic-metadata">

**Author:** [@mgreenly](https://www.ruby-forum.com/u/mgreenly)\
**Replies:** 2\
**Last updated:** [June 27, 2007, 10:22pm UTC](https://www.ruby-forum.com/t/monkey-patching-generators/107206 "2007-06-27T22:22:54Z")

</div>

The new scaffold and resource generators are pretty nifty. One drawback they have is that they do not support the --skip-migration option that the model generator does. I’ve made a patch for the scaffold and resource …

---

## [Render\_json only outputs to file..simple driving me nuts](https://www.ruby-forum.com/t/render-json-only-outputs-to-file-simple-driving-me-nuts/107967)

<div class="topic-metadata">

**Author:** [@louiscollinsjr](https://www.ruby-forum.com/u/louiscollinsjr)\
**Replies:** 0\
**Last updated:** [June 27, 2007, 10:16pm UTC](https://www.ruby-forum.com/t/render-json-only-outputs-to-file-simple-driving-me-nuts/107967 "2007-06-27T22:16:02Z")

</div>

Simple simple… I need some help when requesting json output from my server the browser wants to save the json to a file. How can I just have this json string output to the screen? Thanks, Louis.

---

## [Collection\_select does not return empty array if no options](https://www.ruby-forum.com/t/collection-select-does-not-return-empty-array-if-no-options/107966)

<div class="topic-metadata">

**Author:** [@dotjake](https://www.ruby-forum.com/u/dotjake)\
**Replies:** 0\
**Last updated:** [June 27, 2007, 10:15pm UTC](https://www.ruby-forum.com/t/collection-select-does-not-return-empty-array-if-no-options/107966 "2007-06-27T22:15:54Z")

</div>

Hello, I have two separate category collection\_selects for two separate models each with a habtm relationship to categories. With the update form for one model, de-selecting all of the options submits a parameter suc…

---

## [Pagination](https://www.ruby-forum.com/t/pagination/107919)

<div class="topic-metadata">

**Author:** [@mani](https://www.ruby-forum.com/u/mani)\
**Replies:** 3\
**Last updated:** [June 27, 2007, 10:10pm UTC](https://www.ruby-forum.com/t/pagination/107919 "2007-06-27T22:10:53Z")

</div>

hi all… iam new to rails… iam developing a app and unable to solve one problem…the problem is regarding pagination… im my app in controller class i have these two methods: i have two tables one is chatusers and the o…

---

## [Acts\_as\_ferret and reindexing objects](https://www.ruby-forum.com/t/acts-as-ferret-and-reindexing-objects/107964)

<div class="topic-metadata">

**Author:** [@quik77](https://www.ruby-forum.com/u/quik77)\
**Replies:** 0\
**Last updated:** [June 27, 2007, 10:00pm UTC](https://www.ruby-forum.com/t/acts-as-ferret-and-reindexing-objects/107964 "2007-06-27T22:00:46Z")

</div>

I’m having trouble with returning sorted data from acts\_as\_ferret. Is there a way to explicitly ask ferret to re-index a specific object? Is re-indexing supposed to happen automatically after save, regardless of wheth…

---

## [1.2.1 -\> 1.23 Upgrade; New Projects Frozen at 1.2.1?](https://www.ruby-forum.com/t/1-2-1-1-23-upgrade-new-projects-frozen-at-1-2-1/107949)

<div class="topic-metadata">

**Author:** [@Geoffrey\_W](https://www.ruby-forum.com/u/Geoffrey_W)\
**Replies:** 3\
**Last updated:** [June 27, 2007, 9:41pm UTC](https://www.ruby-forum.com/t/1-2-1-1-23-upgrade-new-projects-frozen-at-1-2-1/107949 "2007-06-27T21:41:49Z")

</div>

Disclaimer: I’m a Rails newbie, be gentle. I’ve got an Ubuntu Feisty install here. After adding Ruby and Rails via Synaptic, I’ve got Rails 1.2.1. To get up to date, I did a “gem update rails”. So far, so good, AFA…

---

## [Very Stuck](https://www.ruby-forum.com/t/very-stuck/107925)

<div class="topic-metadata">

**Author:** [@vince](https://www.ruby-forum.com/u/vince)\
**Replies:** 3\
**Last updated:** [June 27, 2007, 9:37pm UTC](https://www.ruby-forum.com/t/very-stuck/107925 "2007-06-27T21:37:48Z")

</div>

Ok I have been trying to get started with Ruby on Rails and I want to tie it together with a mysql database. I have been using the examples in teh Agile Web Developkent with Rails, which has you setup the database.y…

---

## [Using a helper within a controller](https://www.ruby-forum.com/t/using-a-helper-within-a-controller/107867)

<div class="topic-metadata">

**Author:** [@snantz](https://www.ruby-forum.com/u/snantz)\
**Replies:** 3\
**Last updated:** [June 27, 2007, 9:33pm UTC](https://www.ruby-forum.com/t/using-a-helper-within-a-controller/107867 "2007-06-27T21:33:27Z")

</div>

I would like to use the link\_to\_remote method in my controller so I can update a list within my .rhtml file without having to re-load the entire page. Basically, what I am doing is adding stuff to a list and then allo…

---

## [Strange message rendering link\_to](https://www.ruby-forum.com/t/strange-message-rendering-link-to/107953)

<div class="topic-metadata">

**Author:** [@mark](https://www.ruby-forum.com/u/mark)\
**Replies:** 1\
**Last updated:** [June 27, 2007, 9:02pm UTC](https://www.ruby-forum.com/t/strange-message-rendering-link-to/107953 "2007-06-27T21:02:07Z")

</div>

I’ve included ActionView::Helpers::UrlHelper on my ActionMailer class to render tags like link\_to, but for some reason whenever my email template renders the link\_to tag the results come out as “(click to that page, or …

---

## [Rortlet, portlets on rails](https://www.ruby-forum.com/t/rortlet-portlets-on-rails/107957)

<div class="topic-metadata">

**Author:** [@gcnovus](https://www.ruby-forum.com/u/gcnovus)\
**Replies:** 0\
**Last updated:** [June 27, 2007, 8:58pm UTC](https://www.ruby-forum.com/t/rortlet-portlets-on-rails/107957 "2007-06-27T20:58:44Z")

</div>

I’ve started a new project to create a plugin for portlets in Rails. It’s at http://www.assembla.com/space/rortlet If anyone is interested, I’d love some help. Please email james@knowledgeincorporated if you want to …

---

## [Polymorphic FK mapped to field other than ID](https://www.ruby-forum.com/t/polymorphic-fk-mapped-to-field-other-than-id/107959)

<div class="topic-metadata">

**Author:** [@jon](https://www.ruby-forum.com/u/jon)\
**Replies:** 0\
**Last updated:** [June 27, 2007, 8:51pm UTC](https://www.ruby-forum.com/t/polymorphic-fk-mapped-to-field-other-than-id/107959 "2007-06-27T20:51:44Z")

</div>

Here’s the scenario: I have a table that looks something like: containers id name external\_id created\_ts and another for tracking like: trackings id created\_ts event trackable\_id trackable\_type My containers …

---

## [Re: selectbox issues](https://www.ruby-forum.com/t/re-selectbox-issues/107955)

<div class="topic-metadata">

**Author:** [@Jonathan\_Bradley](https://www.ruby-forum.com/u/Jonathan_Bradley)\
**Replies:** 0\
**Last updated:** [June 27, 2007, 8:48pm UTC](https://www.ruby-forum.com/t/re-selectbox-issues/107955 "2007-06-27T20:48:43Z")

</div>

Ok I’m working on a select statement right now but, I’m having issues rendering certain aspects Here is the code from my view: %label#disabled\_area{:onclick =\> “$(‘disabled\_button’).hide(); $(!=0).disable(); $(‘submi…

---

## [Multi-statement transactions with ActiveRecord (CORRECTED)](https://www.ruby-forum.com/t/multi-statement-transactions-with-activerecord-corrected/107942)

<div class="topic-metadata">

**Author:** [@weyus](https://www.ruby-forum.com/u/weyus)\
**Replies:** 2\
**Last updated:** [June 27, 2007, 8:08pm UTC](https://www.ruby-forum.com/t/multi-statement-transactions-with-activerecord-corrected/107942 "2007-06-27T20:08:07Z")

</div>

All, I didn’t finish writing this before I posted the previous post. Sigh. Using Rails 1.1.6 AR against MS SQL Server (ODBC mode). I need to do some fancy bulk inserting of data, which I need to ensure is within a …

---

## [PHP & Ruby -- Rendered to One Page](https://www.ruby-forum.com/t/php-ruby-rendered-to-one-page/107675)

<div class="topic-metadata">

**Author:** [@bill](https://www.ruby-forum.com/u/bill)\
**Replies:** 8\
**Last updated:** [June 27, 2007, 8:02pm UTC](https://www.ruby-forum.com/t/php-ruby-rendered-to-one-page/107675 "2007-06-27T20:02:38Z")

</div>

All, I’ve been looking through these boards and the Internet at large for the last few hours trying to determine if it’s possible to render a single page that has both PHP and Ruby elements in it. Specifically, I am…

---

## [Atomic transactions in rails controllers](https://www.ruby-forum.com/t/atomic-transactions-in-rails-controllers/107859)

<div class="topic-metadata">

**Author:** [@halfgaar](https://www.ruby-forum.com/u/halfgaar)\
**Replies:** 4\
**Last updated:** [June 27, 2007, 7:57pm UTC](https://www.ruby-forum.com/t/atomic-transactions-in-rails-controllers/107859 "2007-06-27T19:57:37Z")

</div>

Hi, When I have a transaction block like this: ActiveRecord::Base.Transaction do cars.each do | car | car.dosomething car.save! end end When the last car in the collection fails, all the others will have gotten …

---

## [Caching and ruby exceptions](https://www.ruby-forum.com/t/caching-and-ruby-exceptions/107951)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [June 27, 2007, 7:48pm UTC](https://www.ruby-forum.com/t/caching-and-ruby-exceptions/107951 "2007-06-27T19:48:36Z")

</div>

How do I prevent an action from being cached when a ruby exception occurs in that action? Right now it seems to cache an empty file. Thanks, B

---

## [Bad Smells sing in a rails application](https://www.ruby-forum.com/t/bad-smells-sing-in-a-rails-application/107947)

<div class="topic-metadata">

**Author:** [@pedro](https://www.ruby-forum.com/u/pedro)\
**Replies:** 0\
**Last updated:** [June 27, 2007, 7:32pm UTC](https://www.ruby-forum.com/t/bad-smells-sing-in-a-rails-application/107947 "2007-06-27T19:32:34Z")

</div>

Hi all, Sometime ago, i read the slides “when V is for Vexing: Patterns to DRY Up Your Views” (Bruce W. railsconf). They are not online anymore. I post one slide in my\[1}… But only the bad smells sign in the view,…

---

## [Rails - MySQL UNIX Timestap issue](https://www.ruby-forum.com/t/rails-mysql-unix-timestap-issue/107946)

<div class="topic-metadata">

**Author:** [@urf](https://www.ruby-forum.com/u/urf)\
**Replies:** 0\
**Last updated:** [June 27, 2007, 7:23pm UTC](https://www.ruby-forum.com/t/rails-mysql-unix-timestap-issue/107946 "2007-06-27T19:23:33Z")

</div>

Apologies if this has been posted before but I’m all googled out looking for a solution to this! I have a database that contains a number of pre-1970 dates which seems to be causing a update error in Rails when I try …

---

## [Forms within forms](https://www.ruby-forum.com/t/forms-within-forms/107932)

<div class="topic-metadata">

**Author:** [@snantz](https://www.ruby-forum.com/u/snantz)\
**Replies:** 3\
**Last updated:** [June 27, 2007, 7:14pm UTC](https://www.ruby-forum.com/t/forms-within-forms/107932 "2007-06-27T19:14:33Z")

</div>

Simple question…I think. Can you use the helper methods to create form\_remote\_tag within one another? I have tried but everytime the page seems to become confused on which form is which.

---

## [Multi-statement transactions with ActiveRecord](https://www.ruby-forum.com/t/multi-statement-transactions-with-activerecord/107941)

<div class="topic-metadata">

**Author:** [@weyus](https://www.ruby-forum.com/u/weyus)\
**Replies:** 0\
**Last updated:** [June 27, 2007, 6:50pm UTC](https://www.ruby-forum.com/t/multi-statement-transactions-with-activerecord/107941 "2007-06-27T18:50:40Z")

</div>

All, Using Rails 1.1.6 AR against MS SQL Server (ODBC mode). I need to do some fancy bulk inserting of data, which I need to ensure is within a transaction. But as I think about it, it isn’t clear to me whether wha…

---

## [Show a loading image while a new view is rendered](https://www.ruby-forum.com/t/show-a-loading-image-while-a-new-view-is-rendered/107799)

<div class="topic-metadata">

**Author:** [@mffreire](https://www.ruby-forum.com/u/mffreire)\
**Replies:** 4\
**Last updated:** [June 27, 2007, 6:46pm UTC](https://www.ruby-forum.com/t/show-a-loading-image-while-a-new-view-is-rendered/107799 "2007-06-27T18:46:43Z")

</div>

I need a help in here… I wanna show a loading image after i click a submit tag (button). This button generates a list of items and i wanna show the image while the list is created. What show i do? Does the ruby have …

---

## [Help w/ parseexcel](https://www.ruby-forum.com/t/help-w-parseexcel/107934)

<div class="topic-metadata">

**Author:** [@ligerdave](https://www.ruby-forum.com/u/ligerdave)\
**Replies:** 1\
**Last updated:** [June 27, 2007, 6:44pm UTC](https://www.ruby-forum.com/t/help-w-parseexcel/107934 "2007-06-27T18:44:28Z")

</div>

when i try to get a text type cell, i always end up w/ getting the text divided by ‘?’. for example, instead of getting “hello”, i will get something like “h?e?l?l?o?”. im really frustrated. does anyone know anything …

---

## [Re: multiple keys](https://www.ruby-forum.com/t/re-multiple-keys/107937)

<div class="topic-metadata">

**Author:** [@Jonathan\_Bradley](https://www.ruby-forum.com/u/Jonathan_Bradley)\
**Replies:** 0\
**Last updated:** [June 27, 2007, 6:40pm UTC](https://www.ruby-forum.com/t/re-multiple-keys/107937 "2007-06-27T18:40:28Z")

</div>

I’m trying to find some videos from a table by the columns comedy\_type and round. I tried the following with no luck current\_contest.videos.find(:round =\> 1, :comedy\_type =\> 1, :limit =\> 6, :order =\> “rank ASC”) any…

---

## [Iframe](https://www.ruby-forum.com/t/iframe/107933)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [June 27, 2007, 6:04pm UTC](https://www.ruby-forum.com/t/iframe/107933 "2007-06-27T18:04:29Z")

</div>

Hai I am newbie for Rails I have one question, I have one IFRAME ,and i have one action called refer.rhtml what my question is,I want to refresh the iframe content because i have one grid in refer.rhtml and another …

---

## [Disabled submit button](https://www.ruby-forum.com/t/disabled-submit-button/107929)

<div class="topic-metadata">

**Author:** [@difei](https://www.ruby-forum.com/u/difei)\
**Replies:** 0\
**Last updated:** [June 27, 2007, 5:27pm UTC](https://www.ruby-forum.com/t/disabled-submit-button/107929 "2007-06-27T17:27:23Z")

</div>

Greetings all, I created a form\_remote\_for form for some AJAX jobs and I would like the submit button to be disabled when you click the submit button and reenable it after the jobs are finished, so I add a :onclick =\>…

---

## [RoR and PHP on Mac](https://www.ruby-forum.com/t/ror-and-php-on-mac/107645)

<div class="topic-metadata">

**Author:** [@donnyverdian](https://www.ruby-forum.com/u/donnyverdian)\
**Replies:** 7\
**Last updated:** [June 27, 2007, 5:23pm UTC](https://www.ruby-forum.com/t/ror-and-php-on-mac/107645 "2007-06-27T17:23:18Z")

</div>

Hi, just want to know… is it possible to have RoR Server and PHP Server on my iBook G4 ? I have installed RoR succesfully and now i want to complete my iBook G4 with PHP server. If it possible, anyone knows about …

---

## [Doubt on form\_tag do](https://www.ruby-forum.com/t/doubt-on-form-tag-do/107800)

<div class="topic-metadata">

**Author:** [@chryste](https://www.ruby-forum.com/u/chryste)\
**Replies:** 9\
**Last updated:** [June 27, 2007, 4:52pm UTC](https://www.ruby-forum.com/t/doubt-on-form-tag-do/107800 "2007-06-27T16:52:13Z")

</div>

Hi all, i’m a nuby on rails. I’m using patrick Lenz’s book to study rails. When creating the login page for th application i got a problem. given below is the code \<% form\_tag do %\> Please log in. Username: \<%…

---

## [Design Advice](https://www.ruby-forum.com/t/design-advice/107924)

<div class="topic-metadata">

**Author:** [@hotgazpacho](https://www.ruby-forum.com/u/hotgazpacho)\
**Replies:** 3\
**Last updated:** [June 27, 2007, 4:13pm UTC](https://www.ruby-forum.com/t/design-advice/107924 "2007-06-27T16:13:09Z")

</div>

Hello all, I’m about to start working on a part of my application that interfaces with an external system using HTTP (old school, not webservices). Anyway, several of my controllers will need to access this functiona…

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

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