# Rails

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

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

---

## [JS functions from partial not available?](https://www.ruby-forum.com/t/js-functions-from-partial-not-available/103755)

<div class="topic-metadata">

**Author:** [@johannes](https://www.ruby-forum.com/u/johannes)\
**Replies:** 1\
**Last updated:** [May 9, 2007, 11:56pm UTC](https://www.ruby-forum.com/t/js-functions-from-partial-not-available/103755 "2007-05-09T23:56:12Z")

</div>

hey! clicking “login” opens (ajax) a login form (partial) on my site. this partial includes the form and javascript block. looks like this: the problem is: if i try to call the validate-function from inside the f…

---

## [Don't know how to build task 'engine\_migrate'](https://www.ruby-forum.com/t/dont-know-how-to-build-task-engine-migrate/56402)

<div class="topic-metadata">

**Author:** [@ATATAT](https://www.ruby-forum.com/u/ATATAT)\
**Replies:** 12\
**Last updated:** [May 9, 2007, 10:46pm UTC](https://www.ruby-forum.com/t/dont-know-how-to-build-task-engine-migrate/56402 "2007-05-09T22:46:36Z")

</div>

I get the following error when trying to install riki. rake engine\_migrate ENGINE=riki rake aborted! Don’t know how to build task ‘engine\_migrate’ Anyone know what causes this. I had the same issue with the login e…

---

## [Re-filling a form with no model](https://www.ruby-forum.com/t/re-filling-a-form-with-no-model/103726)

<div class="topic-metadata">

**Author:** [@sbeam](https://www.ruby-forum.com/u/sbeam)\
**Replies:** 1\
**Last updated:** [May 9, 2007, 10:02pm UTC](https://www.ruby-forum.com/t/re-filling-a-form-with-no-model/103726 "2007-05-09T22:02:05Z")

</div>

Probably a basic question here. I have a search form with a bunch of criteria in checkboxes, selects, text fields, etc. When the form is submitted I’d like it to be re-displayed with the previous values (along with se…

---

## [Help with sessions](https://www.ruby-forum.com/t/help-with-sessions/103665)

<div class="topic-metadata">

**Author:** [@joe](https://www.ruby-forum.com/u/joe)\
**Replies:** 1\
**Last updated:** [May 9, 2007, 9:53pm UTC](https://www.ruby-forum.com/t/help-with-sessions/103665 "2007-05-09T21:53:47Z")

</div>

Hi, In my rails app I’m using sessions to store information about the users shopping cart. Everything seems to be working fine but there is one strange thing that I cannot figure out. It seems that any request (for…

---

## [jQuery Users](https://www.ruby-forum.com/t/jquery-users/89367)

<div class="topic-metadata">

**Author:** [@sshefer](https://www.ruby-forum.com/u/sshefer)\
**Replies:** 3\
**Last updated:** [May 9, 2007, 9:42pm UTC](https://www.ruby-forum.com/t/jquery-users/89367 "2007-05-09T21:42:44Z")

</div>

Any jQuery users out there? I would like to learn more about incorporating jQuery with Rails as the performance seems to be the best of any library I’ve seen and it is great in separating the JScript from the HTML. An…

---

## [\[PRODUCT\] New Komodo 4.1 beta supports RHTML debugging](https://www.ruby-forum.com/t/product-new-komodo-4-1-beta-supports-rhtml-debugging/103748)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [May 9, 2007, 9:28pm UTC](https://www.ruby-forum.com/t/product-new-komodo-4-1-beta-supports-rhtml-debugging/103748 "2007-05-09T21:28:42Z")

</div>

We just shipped a new beta of Komodo 4.1. The Rails debugging is much faster – about 60x, thanks to a total rewrite pulling out my home-grown version 1.8.2-type backend, and substituting in Kent S.'s ruby-debug-base …

---

## [Rails page caching trashes URLs](https://www.ruby-forum.com/t/rails-page-caching-trashes-urls/103744)

<div class="topic-metadata">

**Author:** [@matthewmurcia](https://www.ruby-forum.com/u/matthewmurcia)\
**Replies:** 0\
**Last updated:** [May 9, 2007, 8:58pm UTC](https://www.ruby-forum.com/t/rails-page-caching-trashes-urls/103744 "2007-05-09T20:58:38Z")

</div>

Hey all, I’ve been tooling with a route where: ‘/:controller/:action/:query’ query being a url escaped string, which I place in the URL with javascript. The idea is if a user submits the page without javascript, a …

---

## [Fill out external form?](https://www.ruby-forum.com/t/fill-out-external-form/103713)

<div class="topic-metadata">

**Author:** [@matrixon](https://www.ruby-forum.com/u/matrixon)\
**Replies:** 3\
**Last updated:** [May 9, 2007, 8:57pm UTC](https://www.ruby-forum.com/t/fill-out-external-form/103713 "2007-05-09T20:57:37Z")

</div>

Hi i was wondering is there a way to use ruby on rails to fill out fields in an external webpage submit it and get the result. Like ruby auto loggin in to a mail account and retrieving a mail or something like that?

---

## [Which version of Ubuntu to use with Rails](https://www.ruby-forum.com/t/which-version-of-ubuntu-to-use-with-rails/103662)

<div class="topic-metadata">

**Author:** [@denisa](https://www.ruby-forum.com/u/denisa)\
**Replies:** 5\
**Last updated:** [May 9, 2007, 8:54pm UTC](https://www.ruby-forum.com/t/which-version-of-ubuntu-to-use-with-rails/103662 "2007-05-09T20:54:37Z")

</div>

Hello, This is a question for folks who are using Ubuntu to host your Rails apps. Which version of Ubuntu do you use? Do you use the ‘Dapper’ release (6.0.6) perhaps due to the long term support (LTS), or are you us…

---

## [Substitute collection\_select for an ajax autocomplete](https://www.ruby-forum.com/t/substitute-collection-select-for-an-ajax-autocomplete/103740)

<div class="topic-metadata">

**Author:** [@archangel77](https://www.ruby-forum.com/u/archangel77)\
**Replies:** 0\
**Last updated:** [May 9, 2007, 8:39pm UTC](https://www.ruby-forum.com/t/substitute-collection-select-for-an-ajax-autocomplete/103740 "2007-05-09T20:39:29Z")

</div>

I want to substitute my collection\_select for an autocomplete field. The problem is that I need the id of the record found afterwards in order to save my current form to the database. I can do it by hand but is there …

---

## [Initialization of class variables during migration](https://www.ruby-forum.com/t/initialization-of-class-variables-during-migration/103738)

<div class="topic-metadata">

**Author:** [@josh](https://www.ruby-forum.com/u/josh)\
**Replies:** 0\
**Last updated:** [May 9, 2007, 8:26pm UTC](https://www.ruby-forum.com/t/initialization-of-class-variables-during-migration/103738 "2007-05-09T20:26:35Z")

</div>

Hi all- Perhaps this is not a best practice, but we currently have class variables in several class that are initialized by calls to AR classes. For example: class Foo \< ActiveRecord::Base @@my\_class\_var = Bar.find(…

---

## [jQuery and Rails](https://www.ruby-forum.com/t/jquery-and-rails/103727)

<div class="topic-metadata">

**Author:** [@johnlester](https://www.ruby-forum.com/u/johnlester)\
**Replies:** 3\
**Last updated:** [May 9, 2007, 8:01pm UTC](https://www.ruby-forum.com/t/jquery-and-rails/103727 "2007-05-09T20:01:09Z")

</div>

Any jQuery users have an example or info regarding their jQuery integration to rails apps? I’ve found plenty of tutorials and guides on setting up jQuery and doing some simple UI tasks. But I’d really like to compa…

---

## [Flash CSS styling](https://www.ruby-forum.com/t/flash-css-styling/103731)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 3\
**Last updated:** [May 9, 2007, 8:00pm UTC](https://www.ruby-forum.com/t/flash-css-styling/103731 "2007-05-09T20:00:08Z")

</div>

I realize this is a CSS question, and not a rails question, so forgive the off-topicness, but I thought rails users might have some experience with this… In my app I typically set one of two flash messages to inform u…

---

## [Putting a request lifetime on fcgi processes](https://www.ruby-forum.com/t/putting-a-request-lifetime-on-fcgi-processes/103730)

<div class="topic-metadata">

**Author:** [@SteveC](https://www.ruby-forum.com/u/SteveC)\
**Replies:** 0\
**Last updated:** [May 9, 2007, 7:25pm UTC](https://www.ruby-forum.com/t/putting-a-request-lifetime-on-fcgi-processes/103730 "2007-05-09T19:25:03Z")

</div>

Hello We have a big rails app (openstreetmap.org) which has memory leaks. It’s running with the script/process scripts under lighttpd. What we’re doing is restarting (killing) the processes every couple of hours to s…

---

## [How can I change a form's onsubmit event handler using rjs?](https://www.ruby-forum.com/t/how-can-i-change-a-forms-onsubmit-event-handler-using-rjs/103680)

<div class="topic-metadata">

**Author:** [@allen](https://www.ruby-forum.com/u/allen)\
**Replies:** 1\
**Last updated:** [May 9, 2007, 7:24pm UTC](https://www.ruby-forum.com/t/how-can-i-change-a-forms-onsubmit-event-handler-using-rjs/103680 "2007-05-09T19:24:40Z")

</div>

Hi all, I have a ajax form creating by “form\_remote\_for”, whose url is to create a new model by default. The page doesn’t change after the ajax call on submit button so the form is still there after the new model is …

---

## [Default button / submit class](https://www.ruby-forum.com/t/default-button-submit-class/103728)

<div class="topic-metadata">

**Author:** [@dmarkow](https://www.ruby-forum.com/u/dmarkow)\
**Replies:** 0\
**Last updated:** [May 9, 2007, 7:10pm UTC](https://www.ruby-forum.com/t/default-button-submit-class/103728 "2007-05-09T19:10:14Z")

</div>

Is there a way to set a default class to all or elements? I know rails has a way to do this for other fields, such as ActionView::Helpers::InstanceTag::DEFAULT\_FIELD\_OPTIONS = { “class” =\> “text” }. However I haven’…

---

## [Web Services (SOAP) naming conventions](https://www.ruby-forum.com/t/web-services-soap-naming-conventions/103714)

<div class="topic-metadata">

**Author:** [@EmilSF](https://www.ruby-forum.com/u/EmilSF)\
**Replies:** 3\
**Last updated:** [May 9, 2007, 7:09pm UTC](https://www.ruby-forum.com/t/web-services-soap-naming-conventions/103714 "2007-05-09T19:09:02Z")

</div>

I’m writing a SOAP server…one that has to implement ‘specific’ methods that the client will call. One of them is update\_customer. I implement my method as “update\_customer” (with the underscore) and the api signature…

---

## [Help with table name pluralization](https://www.ruby-forum.com/t/help-with-table-name-pluralization/103641)

<div class="topic-metadata">

**Author:** [@sp00nyg](https://www.ruby-forum.com/u/sp00nyg)\
**Replies:** 4\
**Last updated:** [May 9, 2007, 6:21pm UTC](https://www.ruby-forum.com/t/help-with-table-name-pluralization/103641 "2007-05-09T18:21:56Z")

</div>

I want to turn off table name pluralization, so I’ve added ActiveRecord::Base.pluralize\_table\_names = false at the end on my config/environment.rb But I am getting an uninitialized constant error from paginator. unin…

---

## [Ruby bniary installation on windows](https://www.ruby-forum.com/t/ruby-bniary-installation-on-windows/103717)

<div class="topic-metadata">

**Author:** [@gino](https://www.ruby-forum.com/u/gino)\
**Replies:** 0\
**Last updated:** [May 9, 2007, 5:21pm UTC](https://www.ruby-forum.com/t/ruby-bniary-installation-on-windows/103717 "2007-05-09T17:21:55Z")

</div>

I want to install ruby without the one click installer, so I can install only what I would need; has anybody done this? and what are the steps to do it? I’m going to be using rails, so it’s ruby, rails, gems, etc. if…

---

## [BackgrounDRb installation trouble](https://www.ruby-forum.com/t/backgroundrb-installation-trouble/93026)

<div class="topic-metadata">

**Author:** [@joep](https://www.ruby-forum.com/u/joep)\
**Replies:** 11\
**Last updated:** [May 9, 2007, 5:11pm UTC](https://www.ruby-forum.com/t/backgroundrb-installation-trouble/93026 "2007-05-09T17:11:53Z")

</div>

I just installed BackgrounDRb, but now cannot start my server. I get this error: D:\\projects\\joe\>ruby script/server =\> Booting WEBrick… D:/apps/ruby/lib/ruby/1.8/pathname.rb:341:in lstat': Invalid argument - /D:/pro…

---

## [Burts Bees All Natural Lip Shimmer Sample](https://www.ruby-forum.com/t/burts-bees-all-natural-lip-shimmer-sample/103701)

<div class="topic-metadata">

**Author:** [@thinkpink](https://www.ruby-forum.com/u/thinkpink)\
**Replies:** 2\
**Last updated:** [May 9, 2007, 4:53pm UTC](https://www.ruby-forum.com/t/burts-bees-all-natural-lip-shimmer-sample/103701 "2007-05-09T16:53:47Z")

</div>

http://www.burtsbees.survey-response.com Keep your lips smooth and moisturized, FREE! Simply take our survey to get your free sample.

---

## [Adding a simple action to controller](https://www.ruby-forum.com/t/adding-a-simple-action-to-controller/103710)

<div class="topic-metadata">

**Author:** [@cbinckly](https://www.ruby-forum.com/u/cbinckly)\
**Replies:** 1\
**Last updated:** [May 9, 2007, 4:51pm UTC](https://www.ruby-forum.com/t/adding-a-simple-action-to-controller/103710 "2007-05-09T16:51:47Z")

</div>

Hi, I am trying to get the hang of rails. It has been going well, except now I am trying to add an action to a controller and am having trouble. I have a LinkCategory class which extends activerecord. In its contro…

---

## [Dynamic connection](https://www.ruby-forum.com/t/dynamic-connection/103705)

<div class="topic-metadata">

**Author:** [@bazzel](https://www.ruby-forum.com/u/bazzel)\
**Replies:** 4\
**Last updated:** [May 9, 2007, 4:41pm UTC](https://www.ruby-forum.com/t/dynamic-connection/103705 "2007-05-09T16:41:45Z")

</div>

Hello all, In my Rails app I have a model which I want to use to maintain records in several tables (identical structure) in multiple databases. Is there a way to use establish\_connection and set\_table\_name in a dyna…

---

## [non-ActiveRecord models](https://www.ruby-forum.com/t/non-activerecord-models/103712)

<div class="topic-metadata">

**Author:** [@wintermute](https://www.ruby-forum.com/u/wintermute)\
**Replies:** 1\
**Last updated:** [May 9, 2007, 4:37pm UTC](https://www.ruby-forum.com/t/non-activerecord-models/103712 "2007-05-09T16:37:44Z")

</div>

Hi All, I am wondering about few thing regarding the RoR models: Is there any requirement for the models to be inherited from ActiveRecord? Is it possible to have a model which is not ActiveRecord based? How Rails wi…

---

## [Offering Rails translation](https://www.ruby-forum.com/t/offering-rails-translation/103711)

<div class="topic-metadata">

**Author:** [@diogobaeder.com.br](https://www.ruby-forum.com/u/diogobaeder.com.br)\
**Replies:** 0\
**Last updated:** [May 9, 2007, 4:30pm UTC](https://www.ruby-forum.com/t/offering-rails-translation/103711 "2007-05-09T16:30:33Z")

</div>

Hi there, I’m Brazillian programmer (although in a beginner level), and I’d like to offer my contribution to this amazing framework with the only kind of help I can give: by translating it to Brazillian Portuguese la…

---

## [How do I serialize data for a controller action](https://www.ruby-forum.com/t/how-do-i-serialize-data-for-a-controller-action/103645)

<div class="topic-metadata">

**Author:** [@dmcclean](https://www.ruby-forum.com/u/dmcclean)\
**Replies:** 3\
**Last updated:** [May 9, 2007, 4:15pm UTC](https://www.ruby-forum.com/t/how-do-i-serialize-data-for-a-controller-action/103645 "2007-05-09T16:15:56Z")

</div>

I have two instances of a intranet Rails application running on different networks. The database design for each is the same, but the data is different. I occasionally need for certain database records to be copied fr…

---

## [Unit Testing - some basic questions](https://www.ruby-forum.com/t/unit-testing-some-basic-questions/103564)

<div class="topic-metadata">

**Author:** [@syg6](https://www.ruby-forum.com/u/syg6)\
**Replies:** 9\
**Last updated:** [May 9, 2007, 4:11pm UTC](https://www.ruby-forum.com/t/unit-testing-some-basic-questions/103564 "2007-05-09T16:11:08Z")

</div>

It’s taken a little too long to see the light for unit testing, but the time has come! I realize that this isn’t the most exciting subject for most developers, but hopefully a couple of you have some sage advice. I’v…

---

## [RHTML and innerHTML problem](https://www.ruby-forum.com/t/rhtml-and-innerhtml-problem/103702)

<div class="topic-metadata">

**Author:** [@tvon](https://www.ruby-forum.com/u/tvon)\
**Replies:** 5\
**Last updated:** [May 9, 2007, 3:21pm UTC](https://www.ruby-forum.com/t/rhtml-and-innerhtml-problem/103702 "2007-05-09T15:21:38Z")

</div>

Hi, I am trying to render RHTML code using a JavaScript function and innerHTML. However, the code is shown as plain text but is not rendered. function makeLiveTree() { var rhtmlCode = “\<”+"%= live\_tree :fstree, …%\>"…

---

## [Is there a way to specify in the rails application which rub](https://www.ruby-forum.com/t/is-there-a-way-to-specify-in-the-rails-application-which-rub/103653)

<div class="topic-metadata">

**Author:** [@bhoult](https://www.ruby-forum.com/u/bhoult)\
**Replies:** 2\
**Last updated:** [May 9, 2007, 3:16pm UTC](https://www.ruby-forum.com/t/is-there-a-way-to-specify-in-the-rails-application-which-rub/103653 "2007-05-09T15:16:36Z")

</div>

Basically I am stuck with a production app running on Rails 1.1.6 needing ruby 1.8.4, while we are working in trunk on getting Rails 1.2.3 working which needs ruby 1.8.6. I can set the version of rails using RAILS\_GE…

---

## [Something like $$ in php](https://www.ruby-forum.com/t/something-like-in-php/103660)

<div class="topic-metadata">

**Author:** [@leonb](https://www.ruby-forum.com/u/leonb)\
**Replies:** 8\
**Last updated:** [May 9, 2007, 2:58pm UTC](https://www.ruby-forum.com/t/something-like-in-php/103660 "2007-05-09T14:58:31Z")

</div>

Hi all. I have this piece of code: Parked at Loopia. How can I use the string in ‘name’ to use as a method of declaration? $methodname = ‘new’ Just like using $obj-\>$methodname in php?

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

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