# Rails

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

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

---

## [Custom Mysql queries slower than ActiveRecord in production](https://www.ruby-forum.com/t/custom-mysql-queries-slower-than-activerecord-in-production/135441)

<div class="topic-metadata">

**Author:** [@fipa](https://www.ruby-forum.com/u/fipa)\
**Replies:** 2\
**Last updated:** [April 22, 2008, 9:04am UTC](https://www.ruby-forum.com/t/custom-mysql-queries-slower-than-activerecord-in-production/135441 "2008-04-22T09:04:03Z")

</div>

I have been working on optimizing the performance of a Rails app by rewriting the AR record methods into custom sql queries. What I did is that the result from the query is not instantiated as an object, which is supp…

---

## [GET and POST problem in URL access](https://www.ruby-forum.com/t/get-and-post-problem-in-url-access/135442)

<div class="topic-metadata">

**Author:** [@karthikeyan](https://www.ruby-forum.com/u/karthikeyan)\
**Replies:** 1\
**Last updated:** [April 22, 2008, 9:01am UTC](https://www.ruby-forum.com/t/get-and-post-problem-in-url-access/135442 "2008-04-22T09:01:26Z")

</div>

Hi, My controller code is, class MyController \< ApplicationController def my\_method puts “Inside my method” end end In my routes.rb: map.resources :my\_controller, :collections =\> {:my\_method =\> :post} I have imp…

---

## [Printing the PDF in new window](https://www.ruby-forum.com/t/printing-the-pdf-in-new-window/135436)

<div class="topic-metadata">

**Author:** [@karthikeyan](https://www.ruby-forum.com/u/karthikeyan)\
**Replies:** 4\
**Last updated:** [April 22, 2008, 8:47am UTC](https://www.ruby-forum.com/t/printing-the-pdf-in-new-window/135436 "2008-04-22T08:47:27Z")

</div>

Hi, I am working on printing the PDF in rails. I am using the send\_data method to achieve this. I need the following functionality to be done. When I click on “Print PDF” icon, a new window or tab should be opened a…

---

## [Job Board example application/plugin?](https://www.ruby-forum.com/t/job-board-example-application-plugin/135431)

<div class="topic-metadata">

**Author:** [@Danimal](https://www.ruby-forum.com/u/Danimal)\
**Replies:** 2\
**Last updated:** [April 22, 2008, 8:44am UTC](https://www.ruby-forum.com/t/job-board-example-application-plugin/135431 "2008-04-22T08:44:38Z")

</div>

Hello! I need to build a job board system for a new application I’m working on. I’m curious if there are any examples or plugins for this? I can build it but I’d rather not re-invent the wheel on this one. The proble…

---

## [Check\_bo\_tags collections](https://www.ruby-forum.com/t/check-bo-tags-collections/135222)

<div class="topic-metadata">

**Author:** [@lostwarrior](https://www.ruby-forum.com/u/lostwarrior)\
**Replies:** 2\
**Last updated:** [April 22, 2008, 8:36am UTC](https://www.ruby-forum.com/t/check-bo-tags-collections/135222 "2008-04-22T08:36:36Z")

</div>

I have a collection of check\_box\_tags that look like the following: \<% City.find(:all).each do |g| %\> \<%= check\_box\_tag 'city',g.id,:checked=\>'checked'%\> \<%= g.name.capitalize %\> \<% end %\> My question is how i sen…

---

## [Acts\_as\_authenticated](https://www.ruby-forum.com/t/acts-as-authenticated/110537)

<div class="topic-metadata">

**Author:** [@Penny](https://www.ruby-forum.com/u/Penny)\
**Replies:** 4\
**Last updated:** [April 22, 2008, 6:39am UTC](https://www.ruby-forum.com/t/acts-as-authenticated/110537 "2008-04-22T06:39:28Z")

</div>

Hi, I could use some help. I’ve got a simple rails app and want to add authentication. I’ve followed the first two steps in the wiki guide script/plugin source http://svn.techno-weenie.net/projects/plugins script/pl…

---

## [Workflow plugin?](https://www.ruby-forum.com/t/workflow-plugin/135419)

<div class="topic-metadata">

**Author:** [@greg](https://www.ruby-forum.com/u/greg)\
**Replies:** 3\
**Last updated:** [April 22, 2008, 6:32am UTC](https://www.ruby-forum.com/t/workflow-plugin/135419 "2008-04-22T06:32:27Z")

</div>

Hi, Is there a workflow plugin that exists for Rails? That is something that provides a workflow framework around how to manage state changes for an object/model (i.e. think of a complex state diagram that represent…

---

## [Windows-mysql performance](https://www.ruby-forum.com/t/windows-mysql-performance/135425)

<div class="topic-metadata">

**Author:** [@boowebb](https://www.ruby-forum.com/u/boowebb)\
**Replies:** 2\
**Last updated:** [April 22, 2008, 6:05am UTC](https://www.ruby-forum.com/t/windows-mysql-performance/135425 "2008-04-22T06:05:30Z")

</div>

In working with Windows v. Mac I’ve noticed about a 5x difference working with MySQL in favor of Macintosh. This is a problem for some of our developers that are on the Windows platform. In running tests against the d…

---

## [Automatically filling a text box](https://www.ruby-forum.com/t/automatically-filling-a-text-box/135403)

<div class="topic-metadata">

**Author:** [@ryank](https://www.ruby-forum.com/u/ryank)\
**Replies:** 3\
**Last updated:** [April 22, 2008, 3:09am UTC](https://www.ruby-forum.com/t/automatically-filling-a-text-box/135403 "2008-04-22T03:09:18Z")

</div>

Well I am new to Rails and I’m looking to find out how to automatically fill a text box with a randomly generated password. I can generate and display the password just fine but I cannot find a way to have the page lo…

---

## [Lost Polymorphic Associations in development environment causes delegate :blah, :to =\> to fail](https://www.ruby-forum.com/t/lost-polymorphic-associations-in-development-environment-causes-delegate-blah-to-to-fail/135420)

<div class="topic-metadata">

**Author:** [@daya](https://www.ruby-forum.com/u/daya)\
**Replies:** 0\
**Last updated:** [April 22, 2008, 2:00am UTC](https://www.ruby-forum.com/t/lost-polymorphic-associations-in-development-environment-causes-delegate-blah-to-to-fail/135420 "2008-04-22T02:00:19Z")

</div>

Hi All I have been struggling with this issue for a long time now. And before I began to describe the problem its important to know that this problem happens only in Development environment. I am using Rails 2.0.2, h…

---

## [Where is activerecord-oracle-adapter?](https://www.ruby-forum.com/t/where-is-activerecord-oracle-adapter/135418)

<div class="topic-metadata">

**Author:** [@deanhiller](https://www.ruby-forum.com/u/deanhiller)\
**Replies:** 1\
**Last updated:** [April 22, 2008, 1:13am UTC](https://www.ruby-forum.com/t/where-is-activerecord-oracle-adapter/135418 "2008-04-22T01:13:32Z")

</div>

‘gem search oracle’ turned up no activerecord-oracle-adapter, why isn’t it available?

---

## [AWD Drag and Drop Example/Pragforms Application](https://www.ruby-forum.com/t/awd-drag-and-drop-example-pragforms-application/135416)

<div class="topic-metadata">

**Author:** [@newrubygirl](https://www.ruby-forum.com/u/newrubygirl)\
**Replies:** 0\
**Last updated:** [April 22, 2008, 1:07am UTC](https://www.ruby-forum.com/t/awd-drag-and-drop-example-pragforms-application/135416 "2008-04-22T01:07:15Z")

</div>

Hello. I’m working on the Drag and Drop Example in the AWD book. I wanted to get pragforms up and running as an application, but I’m getting an internal server error. Any others try to get this application running? …

---

## [Is the rails 2.0 scaffold system philosophically ( not technically? ) broken?](https://www.ruby-forum.com/t/is-the-rails-2-0-scaffold-system-philosophically-not-technically-broken/124795)

<div class="topic-metadata">

**Author:** [@Steven\_GSHarms](https://www.ruby-forum.com/u/Steven_GSHarms)\
**Replies:** 57\
**Last updated:** [April 21, 2008, 11:42pm UTC](https://www.ruby-forum.com/t/is-the-rails-2-0-scaffold-system-philosophically-not-technically-broken/124795 "2008-04-21T23:42:49Z")

</div>

Hello, I’ve read the (many) re-posts about problems around scaffolding in Rails 2.0 and have followed a number of tutorials and fully understand “how to scaffold” from a technical perspective, but I don’t understand…

---

## [Urgent ActiveRecord has\_many Problem - Please Help](https://www.ruby-forum.com/t/urgent-activerecord-has-many-problem-please-help/135409)

<div class="topic-metadata">

**Author:** [@jasongarber](https://www.ruby-forum.com/u/jasongarber)\
**Replies:** 1\
**Last updated:** [April 21, 2008, 11:25pm UTC](https://www.ruby-forum.com/t/urgent-activerecord-has-many-problem-please-help/135409 "2008-04-21T23:25:50Z")

</div>

Hi Guys, I’ve been looking everywhere for an answer to this but so far without success. I have three models: employees has\_many :memberships has\_many :projects, :through =\> :membership projects has\_many :memb…

---

## [Database design problem](https://www.ruby-forum.com/t/database-design-problem/135402)

<div class="topic-metadata">

**Author:** [@evan](https://www.ruby-forum.com/u/evan)\
**Replies:** 1\
**Last updated:** [April 21, 2008, 11:19pm UTC](https://www.ruby-forum.com/t/database-design-problem/135402 "2008-04-21T23:19:08Z")

</div>

Hi, please read my post at http://railsforum.com/viewtopic.php?pid=60321#p60321 I’ve been stuck on this problem for weeks now and nobody has been able to help me! I would be very grateful to whoever can solve this pr…

---

## [Mod\_rails and long-running processes](https://www.ruby-forum.com/t/mod-rails-and-long-running-processes/135288)

<div class="topic-metadata">

**Author:** [@wpwood](https://www.ruby-forum.com/u/wpwood)\
**Replies:** 5\
**Last updated:** [April 21, 2008, 10:46pm UTC](https://www.ruby-forum.com/t/mod-rails-and-long-running-processes/135288 "2008-04-21T22:46:44Z")

</div>

What’s the impact of switching from mongrels to mod\_rails with respect to the ability to support long-running processes within a Rails app, as opposed to the current situation where they’re best moved off to a distrib…

---

## [Hostingrails issues](https://www.ruby-forum.com/t/hostingrails-issues/135365)

<div class="topic-metadata">

**Author:** [@Rodrigo\_MuiSSSSo](https://www.ruby-forum.com/u/Rodrigo_MuiSSSSo)\
**Replies:** 5\
**Last updated:** [April 21, 2008, 10:39pm UTC](https://www.ruby-forum.com/t/hostingrails-issues/135365 "2008-04-21T22:39:40Z")

</div>

Hi guys, I have some issues with hostingrails and none of their support people could come up with the solution. It seems that this weekend the’ve been changing some firewall configurations. Is any of you having this p…

---

## [How detect image button clicks?](https://www.ruby-forum.com/t/how-detect-image-button-clicks/135392)

<div class="topic-metadata">

**Author:** [@S-gw](https://www.ruby-forum.com/u/S-gw)\
**Replies:** 3\
**Last updated:** [April 21, 2008, 9:46pm UTC](https://www.ruby-forum.com/t/how-detect-image-button-clicks/135392 "2008-04-21T21:46:42Z")

</div>

I have a form submitted using remote\_form\_tag. I have two image buttons in this form. In other languages, I have been able to detect which button was clicked by checking for a GET or POST parameter of the button name …

---

## [Force Session Reload](https://www.ruby-forum.com/t/force-session-reload/135398)

<div class="topic-metadata">

**Author:** [@larsenmtl](https://www.ruby-forum.com/u/larsenmtl)\
**Replies:** 0\
**Last updated:** [April 21, 2008, 9:01pm UTC](https://www.ruby-forum.com/t/force-session-reload/135398 "2008-04-21T21:01:31Z")

</div>

Hi all, I’m using CGI::Session::PStore for session management with rails 1.2.6. Does anyone know of a way to reload session data from the ruby\_sess file within a controller action? Thanks, LarsenMTL

---

## [Easy way to create fixtures that use betternestedset?](https://www.ruby-forum.com/t/easy-way-to-create-fixtures-that-use-betternestedset/135375)

<div class="topic-metadata">

**Author:** [@apswartz](https://www.ruby-forum.com/u/apswartz)\
**Replies:** 2\
**Last updated:** [April 21, 2008, 8:56pm UTC](https://www.ruby-forum.com/t/easy-way-to-create-fixtures-that-use-betternestedset/135375 "2008-04-21T20:56:16Z")

</div>

Other than calculating by hand the :lft and :rgt for my fixtures for classes that use betternestedset, is there an easier (automagic) way? Thanks in advance, Alan

---

## [RESTful Resources and Sub-Resources](https://www.ruby-forum.com/t/restful-resources-and-sub-resources/135391)

<div class="topic-metadata">

**Author:** [@sw0rdfish](https://www.ruby-forum.com/u/sw0rdfish)\
**Replies:** 1\
**Last updated:** [April 21, 2008, 8:48pm UTC](https://www.ruby-forum.com/t/restful-resources-and-sub-resources/135391 "2008-04-21T20:48:22Z")

</div>

Quick question I’m hoping you guys might know… I’m working at re-factoring my application to be RESTful and I’m running into a lot of problems as I try to totally understand this whole REST thing… my question here ho…

---

## [Rails XML samples](https://www.ruby-forum.com/t/rails-xml-samples/135386)

<div class="topic-metadata">

**Author:** [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Replies:** 0\
**Last updated:** [April 21, 2008, 7:23pm UTC](https://www.ruby-forum.com/t/rails-xml-samples/135386 "2008-04-21T19:23:12Z")

</div>

I am looking for examples of Rails sites that deliver and consume xml, specifically with nested resources; for example, an invoice header and related invoice details. I would like examples that expose both the model …

---

## [Translating Java encoding/hashing code to Ruby in a rails ap](https://www.ruby-forum.com/t/translating-java-encoding-hashing-code-to-ruby-in-a-rails-ap/135379)

<div class="topic-metadata">

**Author:** [@jasonallen](https://www.ruby-forum.com/u/jasonallen)\
**Replies:** 3\
**Last updated:** [April 21, 2008, 7:03pm UTC](https://www.ruby-forum.com/t/translating-java-encoding-hashing-code-to-ruby-in-a-rails-ap/135379 "2008-04-21T19:03:12Z")

</div>

Good Day to all! I am trying desperately to solve the following problem and need the help of a Rails/Ruby guru. I am receiving data via a POST request from a remote web application. The information is composed of 5 fi…

---

## [Error rendering view with number in the name](https://www.ruby-forum.com/t/error-rendering-view-with-number-in-the-name/135369)

<div class="topic-metadata">

**Author:** [@rubylicious](https://www.ruby-forum.com/u/rubylicious)\
**Replies:** 2\
**Last updated:** [April 21, 2008, 6:35pm UTC](https://www.ruby-forum.com/t/error-rendering-view-with-number-in-the-name/135369 "2008-04-21T18:35:27Z")

</div>

I have a large number of html files that I want my application to render and embed ruby into from active record. The files are named as such: 02\_welcome\_intro.html.erb 06\_explore\_it.html.erb 50\_standard\_presentation…

---

## [Open-uri problem](https://www.ruby-forum.com/t/open-uri-problem/135374)

<div class="topic-metadata">

**Author:** [@AnAnAn](https://www.ruby-forum.com/u/AnAnAn)\
**Replies:** 1\
**Last updated:** [April 21, 2008, 6:19pm UTC](https://www.ruby-forum.com/t/open-uri-problem/135374 "2008-04-21T18:19:17Z")

</div>

I have changed the production server (debian, ruby 1.8.5 ) of one of my apps, and a script I was running doesn’t work anymore. Basically the script tries to open a web page. Something like this: require ‘rubygems’ re…

---

## [Eager Loading Polymorphic Associations](https://www.ruby-forum.com/t/eager-loading-polymorphic-associations/135370)

<div class="topic-metadata">

**Author:** [@jcernelli](https://www.ruby-forum.com/u/jcernelli)\
**Replies:** 2\
**Last updated:** [April 21, 2008, 5:31pm UTC](https://www.ruby-forum.com/t/eager-loading-polymorphic-associations/135370 "2008-04-21T17:31:33Z")

</div>

Hi, I’m searching for a method of eager loading polymorphic associations under activerecord 2.0.2. After some initial google-fu I came up with a link to an enhancement that’s been added to edge: http://dev.rubyon…

---

## [Bring out an some size window when click a link in an ajax](https://www.ruby-forum.com/t/bring-out-an-some-size-window-when-click-a-link-in-an-ajax/134709)

<div class="topic-metadata">

**Author:** [@daociyiyou](https://www.ruby-forum.com/u/daociyiyou)\
**Replies:** 5\
**Last updated:** [April 21, 2008, 5:25pm UTC](https://www.ruby-forum.com/t/bring-out-an-some-size-window-when-click-a-link-in-an-ajax/134709 "2008-04-21T17:25:04Z")

</div>

i want to ask you how to make an ajax call to bring out an some size window when click a link.Just tell me the outline instead of detail about how to.Thank you!

---

## [ReSTfull route conventions](https://www.ruby-forum.com/t/restfull-route-conventions/135373)

<div class="topic-metadata">

**Author:** [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Replies:** 0\
**Last updated:** [April 21, 2008, 5:22pm UTC](https://www.ruby-forum.com/t/restfull-route-conventions/135373 "2008-04-21T17:22:28Z")

</div>

I have a question regarding restful routing and the uri conventions presently in use, specifically the /new and /{id}/edit uri’s. I have been giving these two some thought and it seems to me that there exists a cleane…

---

## [Fuzzy Validation Before Adding New Record?](https://www.ruby-forum.com/t/fuzzy-validation-before-adding-new-record/135315)

<div class="topic-metadata">

**Author:** [@jeremy](https://www.ruby-forum.com/u/jeremy)\
**Replies:** 2\
**Last updated:** [April 21, 2008, 4:35pm UTC](https://www.ruby-forum.com/t/fuzzy-validation-before-adding-new-record/135315 "2008-04-21T16:35:08Z")

</div>

I’m just looking for some direction on the best way to implement this and I’m not sure if there is a ton of info out there on this, but I’m just searching under the wrong terminology. I have a MySql database that cont…

---

## [Liquid & Rails 2.0.2](https://www.ruby-forum.com/t/liquid-rails-2-0-2/135270)

<div class="topic-metadata">

**Author:** [@Thomas\_Rabaix](https://www.ruby-forum.com/u/Thomas_Rabaix)\
**Replies:** 1\
**Last updated:** [April 21, 2008, 4:31pm UTC](https://www.ruby-forum.com/t/liquid-rails-2-0-2/135270 "2008-04-21T16:31:31Z")

</div>

Hello, I am using Rails 2.0.2 and the liquid template engine does not work properly. The template is not interpreted as a liquid template, but like an erb template. template name : view/pages/template\_1column.html.li…

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

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