# Rails

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

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

---

## [How Skip Rendering a View?](https://www.ruby-forum.com/t/how-skip-rendering-a-view/137542)

<div class="topic-metadata">

**Author:** [@S-gw](https://www.ruby-forum.com/u/S-gw)\
**Replies:** 5\
**Last updated:** [May 14, 2008, 6:23pm UTC](https://www.ruby-forum.com/t/how-skip-rendering-a-view/137542 "2008-05-14T18:23:12Z")

</div>

Rails 1.2.6 The setup for this question takes a bit… and I suspect there may be a better solution than what my direct question is. I have an intranet app that’s stuffed with all kinds of special permission rights for…

---

## [Payment Management](https://www.ruby-forum.com/t/payment-management/137619)

<div class="topic-metadata">

**Author:** [@Paul\_Collins](https://www.ruby-forum.com/u/Paul_Collins)\
**Replies:** 0\
**Last updated:** [May 14, 2008, 6:00pm UTC](https://www.ruby-forum.com/t/payment-management/137619 "2008-05-14T18:00:51Z")

</div>

In our future sites, we want to allow a user to post a service. We will charge the customer for their listing. Our site will then allow other users to request the service from those postings. Therefore, the custom…

---

## [Efficiently Deleting An Account](https://www.ruby-forum.com/t/efficiently-deleting-an-account/137601)

<div class="topic-metadata">

**Author:** [@johnk](https://www.ruby-forum.com/u/johnk)\
**Replies:** 2\
**Last updated:** [May 14, 2008, 5:34pm UTC](https://www.ruby-forum.com/t/efficiently-deleting-an-account/137601 "2008-05-14T17:34:26Z")

</div>

The un-fun part of creating an app is making a way to delete a user’s account. Are people using :dependent or do people find it inefficient and that it create way too many locks? I am using exclusively :dependent =\> …

---

## [Modal Popup](https://www.ruby-forum.com/t/modal-popup/137557)

<div class="topic-metadata">

**Author:** [@joel](https://www.ruby-forum.com/u/joel)\
**Replies:** 3\
**Last updated:** [May 14, 2008, 5:32pm UTC](https://www.ruby-forum.com/t/modal-popup/137557 "2008-05-14T17:32:34Z")

</div>

hello people, I’m searching for a pop up modal window plugin for rails that would work in IE and firefow. It seems redbox doesn’t work in IE by now. I’m looking for something a little bit fancy like http://nyromodal.…

---

## [Print pretty results from Mysql::Result](https://www.ruby-forum.com/t/print-pretty-results-from-mysql-result/137610)

<div class="topic-metadata">

**Author:** [@mveerman](https://www.ruby-forum.com/u/mveerman)\
**Replies:** 0\
**Last updated:** [May 14, 2008, 5:08pm UTC](https://www.ruby-forum.com/t/print-pretty-results-from-mysql-result/137610 "2008-05-14T17:08:28Z")

</div>

Is there a easier way to output the contents of a Mysql::Result than this command? ActiveRecord::Base.connection.select\_all(“show variables”).each {|r| puts r\[‘Variable\_name’\] + ": " + r\[‘Value’\] + “\\n”}; nil Thanks, …

---

## [How to launch a RoR app on Apache (Windows)?](https://www.ruby-forum.com/t/how-to-launch-a-ror-app-on-apache-windows/137569)

<div class="topic-metadata">

**Author:** [@FireStoke](https://www.ruby-forum.com/u/FireStoke)\
**Replies:** 4\
**Last updated:** [May 14, 2008, 4:52pm UTC](https://www.ruby-forum.com/t/how-to-launch-a-ror-app-on-apache-windows/137569 "2008-05-14T16:52:52Z")

</div>

Hi, I am a newbie in RoR. My OS is Windos XP and I install InstantRails(v2.00) for the RoR development environment. I already write a simple RoR app and works perfectly on Mongrel that provided by InstantRails. Now…

---

## [\[Ann\] Lockdown 0.4.6](https://www.ruby-forum.com/t/ann-lockdown-0-4-6/137606)

<div class="topic-metadata">

**Author:** [@starmaerker](https://www.ruby-forum.com/u/starmaerker)\
**Replies:** 0\
**Last updated:** [May 14, 2008, 4:26pm UTC](https://www.ruby-forum.com/t/ann-lockdown-0-4-6/137606 "2008-05-14T16:26:43Z")

</div>

I’m pleased to announce the first public release of Lockdown (0.4.6). Lockdown is an authorization/authentication system for RubyOnRails (and soon Merb). There’s a RubyForge site http://lockdown.rubyforge.org for mo…

---

## [How to set the current date to a text\_field](https://www.ruby-forum.com/t/how-to-set-the-current-date-to-a-text-field/137484)

<div class="topic-metadata">

**Author:** [@dingirfecho](https://www.ruby-forum.com/u/dingirfecho)\
**Replies:** 3\
**Last updated:** [May 14, 2008, 4:12pm UTC](https://www.ruby-forum.com/t/how-to-set-the-current-date-to-a-text-field/137484 "2008-05-14T16:12:47Z")

</div>

Hi! I’m new to Rails, and I have an app which uses text\_fields. How can I set the default value to the current date? I’m using Rails 2. thanks!

---

## [Weird hmt + polimorphic association behavior](https://www.ruby-forum.com/t/weird-hmt-polimorphic-association-behavior/137603)

<div class="topic-metadata">

**Author:** [@arturaz](https://www.ruby-forum.com/u/arturaz)\
**Replies:** 0\
**Last updated:** [May 14, 2008, 4:00pm UTC](https://www.ruby-forum.com/t/weird-hmt-polimorphic-association-behavior/137603 "2008-05-14T16:00:36Z")

</div>

The problemic model: http://pastie.caboo.se/196775 u.profile.observable\_artists\_as\_string ActiveRecord::StatementInvalid: Mysql::Error: Unknown column ‘users.user\_id’ in’where clause’: SELECT observations.\* FROM ob…

---

## [Retuning Hash variable over POST](https://www.ruby-forum.com/t/retuning-hash-variable-over-post/137463)

<div class="topic-metadata">

**Author:** [@sgudibanda](https://www.ruby-forum.com/u/sgudibanda)\
**Replies:** 9\
**Last updated:** [May 14, 2008, 3:45pm UTC](https://www.ruby-forum.com/t/retuning-hash-variable-over-post/137463 "2008-05-14T15:45:45Z")

</div>

Hi, I am passing a hash variable : @websites{“link\_test” =\> “Ruby Forum”, “url” =\> “http://www.ruby-forum.com” } down to a RHTML that lists all these urls with checkboxes next to it. Idea is to let users choose the U…

---

## [Calling another rjs file in an if condition](https://www.ruby-forum.com/t/calling-another-rjs-file-in-an-if-condition/137444)

<div class="topic-metadata">

**Author:** [@sijo](https://www.ruby-forum.com/u/sijo)\
**Replies:** 4\
**Last updated:** [May 14, 2008, 3:11pm UTC](https://www.ruby-forum.com/t/calling-another-rjs-file-in-an-if-condition/137444 "2008-05-14T15:11:19Z")

</div>

Hi I have a controller action like below.This def is called by a submit\_to\_remote def edit\_service\_desk\_status\_after\_transfer if params\[:transfer\_reason\].empty? #This is used in the :failure of submit\_to\_remote els…

---

## [Active record object for reuse](https://www.ruby-forum.com/t/active-record-object-for-reuse/137544)

<div class="topic-metadata">

**Author:** [@BENI](https://www.ruby-forum.com/u/BENI)\
**Replies:** 2\
**Last updated:** [May 14, 2008, 3:03pm UTC](https://www.ruby-forum.com/t/active-record-object-for-reuse/137544 "2008-05-14T15:03:02Z")

</div>

hI, I have a fairly complex mysql query which span through ~500000 records and multiple tables …which take almost 30 secs to run and generates ~5000 rows . The query has been optimised. Now … i want to do the foll w…

---

## [Alias resource route](https://www.ruby-forum.com/t/alias-resource-route/137514)

<div class="topic-metadata">

**Author:** [@exploreapps](https://www.ruby-forum.com/u/exploreapps)\
**Replies:** 3\
**Last updated:** [May 14, 2008, 2:57pm UTC](https://www.ruby-forum.com/t/alias-resource-route/137514 "2008-05-14T14:57:39Z")

</div>

Hi. I have a resource named item. So in my routes.rb I have: map.resources :item and I can go to http://localhost:3000/items and see all my items If I go to /items/1 and see details for item 1 since I am routed to the …

---

## [Problem with Action Web service?](https://www.ruby-forum.com/t/problem-with-action-web-service/196681)

<div class="topic-metadata">

**Author:** [@varunkumargoel](https://www.ruby-forum.com/u/varunkumargoel)\
**Replies:** 1\
**Last updated:** [May 14, 2008, 2:41pm UTC](https://www.ruby-forum.com/t/problem-with-action-web-service/196681 "2008-05-14T14:41:05Z")

</div>

Hi All, I created one webservice using ROR.It’s working fine but now i have some questions. Whenever i am accessing my webservice through my another ROR application then i am getting the result as an array.Please t…

---

## [Link\_to\_remote with embedded image\_tag](https://www.ruby-forum.com/t/link-to-remote-with-embedded-image-tag/137592)

<div class="topic-metadata">

**Author:** [@dino\_d](https://www.ruby-forum.com/u/dino_d)\
**Replies:** 1\
**Last updated:** [May 14, 2008, 2:38pm UTC](https://www.ruby-forum.com/t/link-to-remote-with-embedded-image-tag/137592 "2008-05-14T14:38:02Z")

</div>

Hi- I want to generate a link with an image embedded between the and \</ a\> so when the user clicks on the image the ajax call fires. I can’t find any documentation on how to do this with link\_to\_remote. Is this po…

---

## [Upgrade and Action Web Service](https://www.ruby-forum.com/t/upgrade-and-action-web-service/137456)

<div class="topic-metadata">

**Author:** [@amanda](https://www.ruby-forum.com/u/amanda)\
**Replies:** 5\
**Last updated:** [May 14, 2008, 2:28pm UTC](https://www.ruby-forum.com/t/upgrade-and-action-web-service/137456 "2008-05-14T14:28:59Z")

</div>

I inherited a rails membership database that was basically working, though it came with no documentation. For context: the database manages members of a CSA (community supported agriculture) organization. So there is …

---

## [New way to deploy a Rails application on Windows as a servic](https://www.ruby-forum.com/t/new-way-to-deploy-a-rails-application-on-windows-as-a-servic/137582)

<div class="topic-metadata">

**Author:** [@jedi\_aka](https://www.ruby-forum.com/u/jedi_aka)\
**Replies:** 1\
**Last updated:** [May 14, 2008, 1:26pm UTC](https://www.ruby-forum.com/t/new-way-to-deploy-a-rails-application-on-windows-as-a-servic/137582 "2008-05-14T13:26:56Z")

</div>

This just came up on SourceForge.net Its an installer that enables you to run a rail application on a window server as a service. You can start and stop it, and it auto-starts on reboot. It only requires a working ve…

---

## [Mongral cluster issue](https://www.ruby-forum.com/t/mongral-cluster-issue/137559)

<div class="topic-metadata">

**Author:** [@ripan](https://www.ruby-forum.com/u/ripan)\
**Replies:** 3\
**Last updated:** [May 14, 2008, 12:36pm UTC](https://www.ruby-forum.com/t/mongral-cluster-issue/137559 "2008-05-14T12:36:27Z")

</div>

We have mongrel cluster, somehow all the requests are routed to first mongrel instance only. can anybody please tell me …why none of the requests are being redirected to other instances.

---

## [Mod\_rails: what MPM model should Apache use?](https://www.ruby-forum.com/t/mod-rails-what-mpm-model-should-apache-use/136920)

<div class="topic-metadata">

**Author:** [@tuktuk](https://www.ruby-forum.com/u/tuktuk)\
**Replies:** 2\
**Last updated:** [May 14, 2008, 12:22pm UTC](https://www.ruby-forum.com/t/mod-rails-what-mpm-model-should-apache-use/136920 "2008-05-14T12:22:45Z")

</div>

When using mod\_php in Apache 2+ it is important to use the MPM-prefork version of Apache, because some PHP extensions are not thread-safe. But what about mod\_rails? Can it use MPM-worker (multithreading), or does it a…

---

## [CGI Script Inside Rails?](https://www.ruby-forum.com/t/cgi-script-inside-rails/137574)

<div class="topic-metadata">

**Author:** [@Merv](https://www.ruby-forum.com/u/Merv)\
**Replies:** 1\
**Last updated:** [May 14, 2008, 11:18am UTC](https://www.ruby-forum.com/t/cgi-script-inside-rails/137574 "2008-05-14T11:18:45Z")

</div>

In the depot example we use a “Empty cart” button to empty the cart. However, Instead of clicking the “Empty Cart” button, we want to call a script from inside a .SWF(Flash) object to do it. How do we write a .rb scri…

---

## [Template html/xhtml confusion in Rails 2](https://www.ruby-forum.com/t/template-html-xhtml-confusion-in-rails-2/137519)

<div class="topic-metadata">

**Author:** [@sebastian](https://www.ruby-forum.com/u/sebastian)\
**Replies:** 2\
**Last updated:** [May 14, 2008, 11:02am UTC](https://www.ruby-forum.com/t/template-html-xhtml-confusion-in-rails-2/137519 "2008-05-14T11:02:43Z")

</div>

Doing my first Rails 2 project I’m utterly confused by Rails’ behavior concerning the use of html or xhtml in templates and the MIME types the final documents get send as. I have one controller that uses a layout. Wit…

---

## [MissingSourceFile: no such file to load -- digest/shal](https://www.ruby-forum.com/t/missingsourcefile-no-such-file-to-load-digest-shal/137547)

<div class="topic-metadata">

**Author:** [@df-sean](https://www.ruby-forum.com/u/df-sean)\
**Replies:** 2\
**Last updated:** [May 14, 2008, 10:10am UTC](https://www.ruby-forum.com/t/missingsourcefile-no-such-file-to-load-digest-shal/137547 "2008-05-14T10:10:45Z")

</div>

I attempted to bring up digest/shal in the console but it seems to not be in there. After - gem update I still do not have this file.

---

## [Undefined method \`table\_name' for REXML::Comment:Class](https://www.ruby-forum.com/t/undefined-method-table-name-for-rexml-class/137498)

<div class="topic-metadata">

**Author:** [@johan-vm](https://www.ruby-forum.com/u/johan-vm)\
**Replies:** 2\
**Last updated:** [May 14, 2008, 9:48am UTC](https://www.ruby-forum.com/t/undefined-method-table-name-for-rexml-class/137498 "2008-05-14T09:48:37Z")

</div>

Hi, I just got into polymorphic relations. It works very nice, but I ran into a strange problem that can be reproduced easily. I don’t have another workaround than to uncomment an include, but thats lame. Here it is: …

---

## [Error Handling and 404 pages](https://www.ruby-forum.com/t/error-handling-and-404-pages/118432)

<div class="topic-metadata">

**Author:** [@elle](https://www.ruby-forum.com/u/elle)\
**Replies:** 9\
**Last updated:** [May 14, 2008, 8:13am UTC](https://www.ruby-forum.com/t/error-handling-and-404-pages/118432 "2008-05-14T08:13:47Z")

</div>

Hi, If I try to enter a url that doesn’t exist in my app, I get error messages such as unknown action or routing error or… but not my 404 page. How do I set that 404 page will come up? Also, if I install exception\_no…

---

## [2 seperate appls on the same server but runs only one](https://www.ruby-forum.com/t/2-seperate-appls-on-the-same-server-but-runs-only-one/137477)

<div class="topic-metadata">

**Author:** [@dhaval\_parikh33](https://www.ruby-forum.com/u/dhaval_parikh33)\
**Replies:** 9\
**Last updated:** [May 14, 2008, 7:13am UTC](https://www.ruby-forum.com/t/2-seperate-appls-on-the-same-server-but-runs-only-one/137477 "2008-05-14T07:13:07Z")

</div>

hi, i’ve 2 appls on the server. both are of same type but with different DB and different ports. when i login to first appl on say port 3000 and then access 2nd appl on port 3001, the first appl loggs off. so its like …

---

## [Mongral cluster issue](https://www.ruby-forum.com/t/mongral-cluster-issue/137558)

<div class="topic-metadata">

**Author:** [@ripan](https://www.ruby-forum.com/u/ripan)\
**Replies:** 0\
**Last updated:** [May 14, 2008, 6:50am UTC](https://www.ruby-forum.com/t/mongral-cluster-issue/137558 "2008-05-14T06:50:48Z")

</div>

We have mongrel cluster, somehow all the requests are routed to first mongrel instance only.Can anyone please tell me … why none of the requests are being redirected to other instances. Waiting for the reply.

---

## [Rewrite rule](https://www.ruby-forum.com/t/rewrite-rule/137450)

<div class="topic-metadata">

**Author:** [@ripan](https://www.ruby-forum.com/u/ripan)\
**Replies:** 2\
**Last updated:** [May 14, 2008, 6:49am UTC](https://www.ruby-forum.com/t/rewrite-rule/137450 "2008-05-14T06:49:02Z")

</div>

please design a rule such that any .php request is blocked by apache as File Not Found 404 and is not forwarded to mongrel. ie instead of this error ActionController::RoutingError (no route found to match “/view.php” …

---

## [JSON nesting](https://www.ruby-forum.com/t/json-nesting/137556)

<div class="topic-metadata">

**Author:** [@arshak](https://www.ruby-forum.com/u/arshak)\
**Replies:** 0\
**Last updated:** [May 14, 2008, 6:41am UTC](https://www.ruby-forum.com/t/json-nesting/137556 "2008-05-14T06:41:22Z")

</div>

I’m trying to return JSON from a controller method with a certain type of nesting to satisfy the requirements of a javascript UI component: This is what I want the JSON to look like {“page”:“1”,“total”:2,“records”:“13…

---

## [Expire\_fragment silently does nothing unless you use cache\_sweeper?](https://www.ruby-forum.com/t/expire-fragment-silently-does-nothing-unless-you-use-cache-sweeper/137323)

<div class="topic-metadata">

**Author:** [@skwp](https://www.ruby-forum.com/u/skwp)\
**Replies:** 1\
**Last updated:** [May 14, 2008, 5:31am UTC](https://www.ruby-forum.com/t/expire-fragment-silently-does-nothing-unless-you-use-cache-sweeper/137323 "2008-05-14T05:31:30Z")

</div>

I’ve run into a very strange problem and I can’t find any docs or any code in rails core that can explain it. The behavior is I have a sweeper which is a pure model sweeper so I tried to use the config.active\_record.…

---

## [Collection\_select ajax.Updater InvalidAuthenticityToken](https://www.ruby-forum.com/t/collection-select-ajax-updater-invalidauthenticitytoken/124761)

<div class="topic-metadata">

**Author:** [@hiddenhippo](https://www.ruby-forum.com/u/hiddenhippo)\
**Replies:** 7\
**Last updated:** [May 14, 2008, 3:50am UTC](https://www.ruby-forum.com/t/collection-select-ajax-updater-invalidauthenticitytoken/124761 "2008-05-14T03:50:11Z")

</div>

Hi, I’m currently using the latest version of rails 2.0.2 with cookies. My problem is as follows, to which I’ve not found any help on google etc. I have a page which presents the user with two drop-down menus. The …

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

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