# Rails

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

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

---

## [Data Migrations using Model Classes vs. SQL](https://www.ruby-forum.com/t/data-migrations-using-model-classes-vs-sql/114474)

<div class="topic-metadata">

**Author:** [@Geoffrey\_W](https://www.ruby-forum.com/u/Geoffrey_W)\
**Replies:** 4\
**Last updated:** [September 13, 2007, 3:19pm UTC](https://www.ruby-forum.com/t/data-migrations-using-model-classes-vs-sql/114474 "2007-09-13T15:19:21Z")

</div>

I’m working on my first official migration that inserts data rather than changing the structure of the database; there’s some data we’d like to be present in any database, so it seems sensible to put it in a migration…

---

## [Problem in using RailsProductGenerator](https://www.ruby-forum.com/t/problem-in-using-railsproductgenerator/114507)

<div class="topic-metadata">

**Author:** [@SMARTEGURU](https://www.ruby-forum.com/u/SMARTEGURU)\
**Replies:** 0\
**Last updated:** [September 13, 2007, 3:04pm UTC](https://www.ruby-forum.com/t/problem-in-using-railsproductgenerator/114507 "2007-09-13T15:04:20Z")

</div>

i am having problem in generate shopping cart if i use all instructions http://wiki.rubyonrails.org/rails/pages/RailsProductGenerator regarding rails\_product ruby script/generate site my\_first\_cart ./script/…/config…

---

## [Popup window from controller](https://www.ruby-forum.com/t/popup-window-from-controller/114506)

<div class="topic-metadata">

**Author:** [@ther](https://www.ruby-forum.com/u/ther)\
**Replies:** 0\
**Last updated:** [September 13, 2007, 2:56pm UTC](https://www.ruby-forum.com/t/popup-window-from-controller/114506 "2007-09-13T14:56:07Z")

</div>

Can a simple popup window with error message be opened from rails controller. I know this could be done differently but sometimes “hammering a head” makes a difference. by TheR

---

## [Override "created\_at"-like Methods and add new one's](https://www.ruby-forum.com/t/override-created-at-like-methods-and-add-new-ones/114498)

<div class="topic-metadata">

**Author:** [@Pascal\_F](https://www.ruby-forum.com/u/Pascal_F)\
**Replies:** 0\
**Last updated:** [September 13, 2007, 1:22pm UTC](https://www.ruby-forum.com/t/override-created-at-like-methods-and-add-new-ones/114498 "2007-09-13T13:22:48Z")

</div>

Hi, i’am about to redevelop an existing application and iam not allowed to touch the structure of the database. Every table of the database has the following fields: anl\_dat (\<- created\_at) anl\_user (\<- who created …

---

## [Text\_field](https://www.ruby-forum.com/t/text-field/114495)

<div class="topic-metadata">

**Author:** [@kabish](https://www.ruby-forum.com/u/kabish)\
**Replies:** 1\
**Last updated:** [September 13, 2007, 1:06pm UTC](https://www.ruby-forum.com/t/text-field/114495 "2007-09-13T13:06:40Z")

</div>

Hi there, I’m trying to create a input text field in a rhtml webpage with some value already written, taken from the params, which the user can change by hand if neccesary. I cannot find some kinf of “value” option on…

---

## [Need help refactoring a controller, perhaps add threading?](https://www.ruby-forum.com/t/need-help-refactoring-a-controller-perhaps-add-threading/114416)

<div class="topic-metadata">

**Author:** [@matt](https://www.ruby-forum.com/u/matt)\
**Replies:** 10\
**Last updated:** [September 13, 2007, 10:29am UTC](https://www.ruby-forum.com/t/need-help-refactoring-a-controller-perhaps-add-threading/114416 "2007-09-13T10:29:34Z")

</div>

Good morning, I’ve been working on my first Rails app. I’m replacing an old Perl script that scrapes a bunch of data from an Oracle database, generates a bunch of charts then builds a static webpage with the charts. …

---

## [\[ANN/ADV\] "Intro to Rails", October 23-26, New Jersey](https://www.ruby-forum.com/t/ann-adv-intro-to-rails-october-23-26-new-jersey/114493)

<div class="topic-metadata">

**Author:** [@David\_ASBlack](https://www.ruby-forum.com/u/David_ASBlack)\
**Replies:** 0\
**Last updated:** [September 13, 2007, 10:07am UTC](https://www.ruby-forum.com/t/ann-adv-intro-to-rails-october-23-26-new-jersey/114493 "2007-09-13T10:07:22Z")

</div>

Hi everyone – I’m pleased to announce that Ruby Power and Light, LLC is offering the following training course: Introduction to Ruby on Rails October 23-26, 2007 Instructor: David A. Black Ho…

---

## [Alert messages on changing screen access](https://www.ruby-forum.com/t/alert-messages-on-changing-screen-access/114489)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [September 13, 2007, 9:44am UTC](https://www.ruby-forum.com/t/alert-messages-on-changing-screen-access/114489 "2007-09-13T09:44:19Z")

</div>

Hi, I have a small application. I have two features for instance, NEW and SEARCH. When a user presses NEW, he’s supposed to enter around 14 entries in the form. Now, let’s take he entered 8 entries and switches to SE…

---

## [Chaining actions?](https://www.ruby-forum.com/t/chaining-actions/114342)

<div class="topic-metadata">

**Author:** [@Jake\_C](https://www.ruby-forum.com/u/Jake_C)\
**Replies:** 10\
**Last updated:** [September 13, 2007, 9:23am UTC](https://www.ruby-forum.com/t/chaining-actions/114342 "2007-09-13T09:23:15Z")

</div>

Guys, Grails has the concept of chaining actions. Is it possible to do the same within Rails? In other words, if I had the following: class MyController \< ApplicationController def x render (:template=\>‘x’) end d…

---

## [New DEPRECATION warning - xml\_serialization.rb](https://www.ruby-forum.com/t/new-deprecation-warning-xml-serialization-rb/114485)

<div class="topic-metadata">

**Author:** [@gers32](https://www.ruby-forum.com/u/gers32)\
**Replies:** 0\
**Last updated:** [September 13, 2007, 9:22am UTC](https://www.ruby-forum.com/t/new-deprecation-warning-xml-serialization-rb/114485 "2007-09-13T09:22:14Z")

</div>

Hi, I’ve been developing a RoR application for a couple of months now, and haven’t made any recent upgrades (Aptana RadRails in MyEclipse IDE). All of a sudden, I’m getting the following warning messages: c:/ruby/lib…

---

## [TypeError =\> Symbol as array index](https://www.ruby-forum.com/t/typeerror-symbol-as-array-index/114367)

<div class="topic-metadata">

**Author:** [@esox\_ch](https://www.ruby-forum.com/u/esox_ch)\
**Replies:** 1\
**Last updated:** [September 13, 2007, 8:57am UTC](https://www.ruby-forum.com/t/typeerror-symbol-as-array-index/114367 "2007-09-13T08:57:45Z")

</div>

Hello, I’ve got a controller, which I’d like to protect from being accessed by untrusted users. I saw that you can use before\_filter to do it. I tried before\_filter :filter on the page I’d like to protect and then cr…

---

## [Enum? polymorphic?](https://www.ruby-forum.com/t/enum-polymorphic/114475)

<div class="topic-metadata">

**Author:** [@S.Tony](https://www.ruby-forum.com/u/S.Tony)\
**Replies:** 5\
**Last updated:** [September 13, 2007, 8:45am UTC](https://www.ruby-forum.com/t/enum-polymorphic/114475 "2007-09-13T08:45:11Z")

</div>

hi I have two tables namely, liquids and unit, in unit there is :name,:string which store various unit, e.g. L mL Sv mm in liquids, there are :liquidA, :integer :liquidAunit, :string :liquidB, :integer :liquidBun…

---

## [AptanaIDE browser URl](https://www.ruby-forum.com/t/aptanaide-browser-url/114484)

<div class="topic-metadata">

**Author:** [@Anand\_duhan](https://www.ruby-forum.com/u/Anand_duhan)\
**Replies:** 0\
**Last updated:** [September 13, 2007, 7:34am UTC](https://www.ruby-forum.com/t/aptanaide-browser-url/114484 "2007-09-13T07:34:04Z")

</div>

Hi There Can anyone tell how to change the default url “http://www.aptana.com/ docs/index.php/RadRails” in AptanaIDE Browser Window.I want to change it into a cutomised staging server URl Thanx Andy

---

## [\[ANN\] Vlad the Deployer 1.1.0 Released Vlad version 1.1.0 h](https://www.ruby-forum.com/t/ann-vlad-the-deployer-1-1-0-released-vlad-version-1-1-0-h/114483)

<div class="topic-metadata">

**Author:** [@miracleofmagick](https://www.ruby-forum.com/u/miracleofmagick)\
**Replies:** 1\
**Last updated:** [September 13, 2007, 7:30am UTC](https://www.ruby-forum.com/t/ann-vlad-the-deployer-1-1-0-released-vlad-version-1-1-0-h/114483 "2007-09-13T07:30:04Z")

</div>

Vlad version 1.1.0 has been released! http://rubyhitsquad.com/ http://rubyforge.org/projects/hitsquad/ Vlad the Deployer is pragmatic application deployment automation, without mercy. Much like Capistrano, but with 1…

---

## [Change environment config at runtime?](https://www.ruby-forum.com/t/change-environment-config-at-runtime/114479)

<div class="topic-metadata">

**Author:** [@apie](https://www.ruby-forum.com/u/apie)\
**Replies:** 0\
**Last updated:** [September 13, 2007, 6:18am UTC](https://www.ruby-forum.com/t/change-environment-config-at-runtime/114479 "2007-09-13T06:18:58Z")

</div>

Hi all, I am guessing this cannot be done, and then I am thinking its ruby so it probably can be done. In my production.rb under “environments/” I have this line: config.action\_controller.consider\_all\_requests\_local …

---

## [Models not loading?](https://www.ruby-forum.com/t/models-not-loading/114480)

<div class="topic-metadata">

**Author:** [@miked](https://www.ruby-forum.com/u/miked)\
**Replies:** 1\
**Last updated:** [September 13, 2007, 6:13am UTC](https://www.ruby-forum.com/t/models-not-loading/114480 "2007-09-13T06:13:57Z")

</div>

I’ve followed all the installation instructions at for an OS X install. Everything seems to work fine in that I can create a rails project and run rake tasks, migrations, start a server etc. But it seems that my mo…

---

## [Problem about javascript in RoR](https://www.ruby-forum.com/t/problem-about-javascript-in-ror/114438)

<div class="topic-metadata">

**Author:** [@AlphaEleven](https://www.ruby-forum.com/u/AlphaEleven)\
**Replies:** 1\
**Last updated:** [September 13, 2007, 4:36am UTC](https://www.ruby-forum.com/t/problem-about-javascript-in-ror/114438 "2007-09-13T04:36:52Z")

</div>

The problem is that if i want to change the value of a html element like textfield in the function in controller, how can i get that? example: def … #like following \<javascript tag change the element’s value\> end

---

## [Help getting multiple submit buttons working in Internet Exp](https://www.ruby-forum.com/t/help-getting-multiple-submit-buttons-working-in-internet-exp/114477)

<div class="topic-metadata">

**Author:** [@anthonyrudgick](https://www.ruby-forum.com/u/anthonyrudgick)\
**Replies:** 3\
**Last updated:** [September 13, 2007, 4:23am UTC](https://www.ruby-forum.com/t/help-getting-multiple-submit-buttons-working-in-internet-exp/114477 "2007-09-13T04:23:49Z")

</div>

Hi, I using multiple submit buttons with a form and need to determine which button was used for the form submission back in the controller. This works fine in Firefox, but I can;t seem to get it to work with Internet …

---

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

<div class="topic-metadata">

**Author:** [@dnstevenson](https://www.ruby-forum.com/u/dnstevenson)\
**Replies:** 2\
**Last updated:** [September 13, 2007, 3:53am UTC](https://www.ruby-forum.com/t/acts-as-authenticated-bad-password/114462 "2007-09-13T03:53:47Z")

</div>

I just installed this and for the most part it works great, and all in about 1/2 an hour! Nice. But I have just one small problem. I would have expected an error message if login fails, but it just stays on the login …

---

## [Newbie: getting started with database, local computer, host](https://www.ruby-forum.com/t/newbie-getting-started-with-database-local-computer-host/114472)

<div class="topic-metadata">

**Author:** [@keithm](https://www.ruby-forum.com/u/keithm)\
**Replies:** 1\
**Last updated:** [September 13, 2007, 3:30am UTC](https://www.ruby-forum.com/t/newbie-getting-started-with-database-local-computer-host/114472 "2007-09-13T03:30:43Z")

</div>

well this may very well be a super easy one, but I can’t seem to find an answer. I think it’s really neat that ruby on rails has so many things built in like multiple databases for production, testing. if i create a …

---

## [\[JOB\] Rails/ASP Developer](https://www.ruby-forum.com/t/job-rails-asp-developer/114478)

<div class="topic-metadata">

**Author:** [@Niels\_Meersschaert](https://www.ruby-forum.com/u/Niels_Meersschaert)\
**Replies:** 0\
**Last updated:** [September 13, 2007, 3:26am UTC](https://www.ruby-forum.com/t/job-rails-asp-developer/114478 "2007-09-13T03:26:43Z")

</div>

Gucci, the world’s leading high-fashion retailer, is seeking a developer to assist in the development and maintenance of its e-commerce web site, http://www.gucci.com/ Responsibilities will include day-to-day maintena…

---

## [Busco programador ruby on rails- compaã‘ia usa-trabajo casa](https://www.ruby-forum.com/t/busco-programador-ruby-on-rails-compaa-ia-usa-trabajo-casa/196464)

<div class="topic-metadata">

**Author:** [@avity](https://www.ruby-forum.com/u/avity)\
**Replies:** 0\
**Last updated:** [September 13, 2007, 2:09am UTC](https://www.ruby-forum.com/t/busco-programador-ruby-on-rails-compaa-ia-usa-trabajo-casa/196464 "2007-09-13T02:09:49Z")

</div>

Super-Intelligent Ruby on Rails Developer - US Company - Immediate We are a rapidly growing American company with staff in Latin America and Europe. We would like to retain three or more developers immediately to sta…

---

## [How to join on a field other than parent table's id?](https://www.ruby-forum.com/t/how-to-join-on-a-field-other-than-parent-tables-id/114459)

<div class="topic-metadata">

**Author:** [@charlie\_caroff](https://www.ruby-forum.com/u/charlie_caroff)\
**Replies:** 1\
**Last updated:** [September 12, 2007, 10:52pm UTC](https://www.ruby-forum.com/t/how-to-join-on-a-field-other-than-parent-tables-id/114459 "2007-09-12T22:52:27Z")

</div>

Hi, I am putting xml into a database. I have one table, products, that has\_many product\_features. I would like to use the product table’s id in the product\_features table, and join on that, but the problem is that t…

---

## [Checking for elements before replace\_html on it](https://www.ruby-forum.com/t/checking-for-elements-before-replace-html-on-it/114461)

<div class="topic-metadata">

**Author:** [@josh](https://www.ruby-forum.com/u/josh)\
**Replies:** 0\
**Last updated:** [September 12, 2007, 10:39pm UTC](https://www.ruby-forum.com/t/checking-for-elements-before-replace-html-on-it/114461 "2007-09-12T22:39:24Z")

</div>

I do a whole lot of this from my controllers: render :update do |page| page.replace\_html ‘someUniqueID’, “Some content” end For one reason or another, sometimes this code is delayed and by the time it executes “some…

---

## [Dynamic Database Connections](https://www.ruby-forum.com/t/dynamic-database-connections/114460)

<div class="topic-metadata">

**Author:** [@Mike\_P](https://www.ruby-forum.com/u/Mike_P)\
**Replies:** 0\
**Last updated:** [September 12, 2007, 10:37pm UTC](https://www.ruby-forum.com/t/dynamic-database-connections/114460 "2007-09-12T22:37:23Z")

</div>

We are creating a reporting/monitoring solution that will connect to multiple databases which are not rails compliant. That being said, the data being gathered is quite simple. BUT we won’t know what the connection de…

---

## [Text\_field help](https://www.ruby-forum.com/t/text-field-help/114458)

<div class="topic-metadata">

**Author:** [@nuby2ruby](https://www.ruby-forum.com/u/nuby2ruby)\
**Replies:** 0\
**Last updated:** [September 12, 2007, 10:20pm UTC](https://www.ruby-forum.com/t/text-field-help/114458 "2007-09-12T22:20:39Z")

</div>

I want to make a form where, when the page first loads you can just being typing away in the first text\_field. I thought this was called focus, so I tried \<%= text\_field :group, :name %\> \<%= javascript\_tag “$(‘group\_…

---

## [Proper Factoring for a Parser Class](https://www.ruby-forum.com/t/proper-factoring-for-a-parser-class/114450)

<div class="topic-metadata">

**Author:** [@evronm](https://www.ruby-forum.com/u/evronm)\
**Replies:** 3\
**Last updated:** [September 12, 2007, 8:52pm UTC](https://www.ruby-forum.com/t/proper-factoring-for-a-parser-class/114450 "2007-09-12T20:52:00Z")

</div>

Hello Railers! I’m developing an application where I need to extract text from a number of different file formats. To this end I would like to create a Parser class that will be reusable and handle all of the heavy l…

---

## [Belongs\_to with foreign keys that reference non primary key](https://www.ruby-forum.com/t/belongs-to-with-foreign-keys-that-reference-non-primary-key/113435)

<div class="topic-metadata">

**Author:** [@Christopher\_JSBott](https://www.ruby-forum.com/u/Christopher_JSBott)\
**Replies:** 1\
**Last updated:** [September 12, 2007, 8:33pm UTC](https://www.ruby-forum.com/t/belongs-to-with-foreign-keys-that-reference-non-primary-key/113435 "2007-09-12T20:33:57Z")

</div>

Hello, I have a situation where the foreign key into a table doesn’t correspond to that table’s primary key: my\_table id (pk) name … other\_table id (pk) my\_table\_name (fk references my\_table(name)) … I want to b…

---

## [Error when running migrations](https://www.ruby-forum.com/t/error-when-running-migrations/114453)

<div class="topic-metadata">

**Author:** [@simianstyle](https://www.ruby-forum.com/u/simianstyle)\
**Replies:** 0\
**Last updated:** [September 12, 2007, 8:13pm UTC](https://www.ruby-forum.com/t/error-when-running-migrations/114453 "2007-09-12T20:13:25Z")

</div>

I’ve checked out a rails project that i’m working on from a repository, and created a new database for it. However whenever i try and run the migrations i get the following error: rake aborted! #AppConfig:0xb7870f84 …

---

## [Functional testing controllers that rely authentication](https://www.ruby-forum.com/t/functional-testing-controllers-that-rely-authentication/114442)

<div class="topic-metadata">

**Author:** [@eggie5](https://www.ruby-forum.com/u/eggie5)\
**Replies:** 3\
**Last updated:** [September 12, 2007, 7:41pm UTC](https://www.ruby-forum.com/t/functional-testing-controllers-that-rely-authentication/114442 "2007-09-12T19:41:43Z")

</div>

I have this login scheme in my application.rb controller that looks like this: (pretty must straight from the rails recipes book): def check\_authorization @user=User.find(session\[:user\]) unless @user.roles.det…

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

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