# Rails

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

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

---

## [Best place to update child an do some operations](https://www.ruby-forum.com/t/best-place-to-update-child-an-do-some-operations/123209)

<div class="topic-metadata">

**Author:** [@raimon](https://www.ruby-forum.com/u/raimon)\
**Replies:** 4\
**Last updated:** [December 15, 2007, 11:02am UTC](https://www.ruby-forum.com/t/best-place-to-update-child-an-do-some-operations/123209 "2007-12-15T11:02:35Z")

</div>

ok, here comes a general question … I know that if we save a parent record, their childs aren’t get saved. I also read in some threads, that this option is very expensive, and we can’t loop for each child, we’ve just …

---

## [Selenium on rails rake test:acceptance firefox problems on mac osx](https://www.ruby-forum.com/t/selenium-on-rails-rake-test-acceptance-firefox-problems-on-mac-osx/123241)

<div class="topic-metadata">

**Author:** [@Abdel\_A\_Saleh](https://www.ruby-forum.com/u/Abdel_A_Saleh)\
**Replies:** 0\
**Last updated:** [December 15, 2007, 10:54am UTC](https://www.ruby-forum.com/t/selenium-on-rails-rake-test-acceptance-firefox-problems-on-mac-osx/123241 "2007-12-15T10:54:36Z")

</div>

Hi, I’m using selenium on rails to perform my acceptance testing through the browser (which is working out okay). I’m having an issue when running test:acceptance with firefox as the target. It seems like the process…

---

## [\[ANN\] One-Click Ruby Installer 186-26 Final Release](https://www.ruby-forum.com/t/ann-one-click-ruby-installer-186-26-final-release/123239)

<div class="topic-metadata">

**Author:** [@Curt\_SWorkS\_Hibbs](https://www.ruby-forum.com/u/Curt_SWorkS_Hibbs)\
**Replies:** 0\
**Last updated:** [December 15, 2007, 10:01am UTC](https://www.ruby-forum.com/t/ann-one-click-ruby-installer-186-26-final-release/123239 "2007-12-15T10:01:20Z")

</div>

This updates Ruby to 1.8.6 patch level 111 (lots of bug fixes since 1.8.6 was released). It also updates most of the included extensions to their latest versions (see the change log), and adds FastCGI and ruby-fcgi su…

---

## [Passing same params through several controllers](https://www.ruby-forum.com/t/passing-same-params-through-several-controllers/123230)

<div class="topic-metadata">

**Author:** [@hsun](https://www.ruby-forum.com/u/hsun)\
**Replies:** 1\
**Last updated:** [December 15, 2007, 8:51am UTC](https://www.ruby-forum.com/t/passing-same-params-through-several-controllers/123230 "2007-12-15T08:51:43Z")

</div>

Model Product … #has weight end ProductController def list top = params\[:top\] #positive integer #select how many product based on weight from highest to lowest as much as ‘top’ element #for example: list?top=10,…

---

## [Problem with acts\_as\_sti\_factory plugin](https://www.ruby-forum.com/t/problem-with-acts-as-sti-factory-plugin/123233)

<div class="topic-metadata">

**Author:** [@vidya1111](https://www.ruby-forum.com/u/vidya1111)\
**Replies:** 0\
**Last updated:** [December 15, 2007, 8:26am UTC](https://www.ruby-forum.com/t/problem-with-acts-as-sti-factory-plugin/123233 "2007-12-15T08:26:54Z")

</div>

When I have the subclasses in the parent class file itself I am able to get the names of the subclasses using \<Class\_name\>.type\_options using acts\_as\_sti\_factory plugin. But if each of the subclass is a separate rb fi…

---

## [Getting one of multiple inputs](https://www.ruby-forum.com/t/getting-one-of-multiple-inputs/123224)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 4\
**Last updated:** [December 15, 2007, 8:10am UTC](https://www.ruby-forum.com/t/getting-one-of-multiple-inputs/123224 "2007-12-15T08:10:14Z")

</div>

Say I had many inputs with ids and names in this format: object\_#, where # is any number. Each input is inside its own form with its own submit button. How can I make the controller get the @params\[object\_#\]?

---

## [\[ANN\] multi\_rails 0.0.4 Released](https://www.ruby-forum.com/t/ann-multi-rails-0-0-4-released/123231)

<div class="topic-metadata">

**Author:** [@rsanheim](https://www.ruby-forum.com/u/rsanheim)\
**Replies:** 0\
**Last updated:** [December 15, 2007, 6:52am UTC](https://www.ruby-forum.com/t/ann-multi-rails-0-0-4-released/123231 "2007-12-15T06:52:31Z")

</div>

multi\_rails version 0.0.4 has been released! http://multi-rails.rubyforge.org/ MultiRails by Relevance, http://thinkrelevance.com Rob S. - MultiRails lead MultiRails lets you test your Rails plugin or app against…

---

## [Site performance improvement](https://www.ruby-forum.com/t/site-performance-improvement/123181)

<div class="topic-metadata">

**Author:** [@betame342](https://www.ruby-forum.com/u/betame342)\
**Replies:** 5\
**Last updated:** [December 15, 2007, 5:21am UTC](https://www.ruby-forum.com/t/site-performance-improvement/123181 "2007-12-15T05:21:16Z")

</div>

Hi, I have a question, on how to further improve the site. I attached the profiler of the site. Currently, It take about 1.8 seconds to load. At first I have question on “Mysql#get\_length” which take the longest t…

---

## [Do you grant privileges for db:create and friends?](https://www.ruby-forum.com/t/do-you-grant-privileges-for-db-create-and-friends/123205)

<div class="topic-metadata">

**Author:** [@fxn](https://www.ruby-forum.com/u/fxn)\
**Replies:** 2\
**Last updated:** [December 15, 2007, 5:03am UTC](https://www.ruby-forum.com/t/do-you-grant-privileges-for-db-create-and-friends/123205 "2007-12-15T05:03:51Z")

</div>

Before the new db tasks I used as anyone a custom task. It used IO.popen(“mysql -u root -p”, ‘w’) to pipe SQL based on ActiveRecord::Base.configurations\[RAILS\_ENV\]. The new db tasks assume the configured user can crea…

---

## [Xml to mysql](https://www.ruby-forum.com/t/xml-to-mysql/123223)

<div class="topic-metadata">

**Author:** [@Mr\_Noob](https://www.ruby-forum.com/u/Mr_Noob)\
**Replies:** 1\
**Last updated:** [December 15, 2007, 5:00am UTC](https://www.ruby-forum.com/t/xml-to-mysql/123223 "2007-12-15T05:00:56Z")

</div>

hi all, my pseudo speaks for itself :slight\_smile: I’ve search on many RoR websites but could not find any easy/ understable/best way to record the following xml file : \<?xml version="1.0" ?\> 1234 …

---

## [Modeling question](https://www.ruby-forum.com/t/modeling-question/123174)

<div class="topic-metadata">

**Author:** [@gadys](https://www.ruby-forum.com/u/gadys)\
**Replies:** 2\
**Last updated:** [December 15, 2007, 3:09am UTC](https://www.ruby-forum.com/t/modeling-question/123174 "2007-12-15T03:09:15Z")

</div>

Hi All, I’m have this domain model: a page has many areas which has many elements. I’m generating a page by generating it’s areas which in turn generate the elements. the problem is that currently the page show acti…

---

## [Anyone know how to add an element to a object instance variable and not overwrite it?](https://www.ruby-forum.com/t/anyone-know-how-to-add-an-element-to-a-object-instance-variable-and-not-overwrite-it/122999)

<div class="topic-metadata">

**Author:** [@paradise](https://www.ruby-forum.com/u/paradise)\
**Replies:** 8\
**Last updated:** [December 15, 2007, 1:49am UTC](https://www.ruby-forum.com/t/anyone-know-how-to-add-an-element-to-a-object-instance-variable-and-not-overwrite-it/122999 "2007-12-15T01:49:41Z")

</div>

Heres the code Im using: for admirer in @admirers @avatars =||(??) Avatar.find(:all, :conditions =\> { :user\_id =\> admirer.admirer\_id, :thumbnail =\> ‘tiny’ }) end I want to add a new Avatar object to @avatars for eac…

---

## [Where is login\_generator?](https://www.ruby-forum.com/t/where-is-login-generator/123200)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [December 15, 2007, 12:31am UTC](https://www.ruby-forum.com/t/where-is-login-generator/123200 "2007-12-15T00:31:27Z")

</div>

Hi, I’m working with the latest version of Ruby on Rails. I’m intrigued by this “login\_generator” extension (http://wiki.rubyonrails.org/rails/ pages/LoginGenerator), but when I try to install it on my FC6 Linux sys…

---

## [1.2.6 to 2.0.1 500 internal server error](https://www.ruby-forum.com/t/1-2-6-to-2-0-1-500-internal-server-error/123207)

<div class="topic-metadata">

**Author:** [@ledelste](https://www.ruby-forum.com/u/ledelste)\
**Replies:** 5\
**Last updated:** [December 14, 2007, 11:51pm UTC](https://www.ruby-forum.com/t/1-2-6-to-2-0-1-500-internal-server-error/123207 "2007-12-14T23:51:30Z")

</div>

Trying to upgrade from 1.2.6 to 2.0.1 and I am getting a 500 internal server error after server start up and I try to make any request or even click on ‘about your applications environment’. Am I missing something si…

---

## [Tiobe's languages index](https://www.ruby-forum.com/t/tiobes-languages-index/123215)

<div class="topic-metadata">

**Author:** [@Benjamin\_C](https://www.ruby-forum.com/u/Benjamin_C)\
**Replies:** 0\
**Last updated:** [December 14, 2007, 11:48pm UTC](https://www.ruby-forum.com/t/tiobes-languages-index/123215 "2007-12-14T23:48:34Z")

</div>

Hello, i find that in the tiobe’s language index, don’t include the ruby on rails for ruby language, the responsible of this site mentioned that this is a framework and the people don’t program with that. But, he don…

---

## [Date\_selec Feb and date problem](https://www.ruby-forum.com/t/date-selec-feb-and-date-problem/123213)

<div class="topic-metadata">

**Author:** [@backz](https://www.ruby-forum.com/u/backz)\
**Replies:** 0\
**Last updated:** [December 14, 2007, 11:43pm UTC](https://www.ruby-forum.com/t/date-selec-feb-and-date-problem/123213 "2007-12-14T23:43:18Z")

</div>

Hi, I am using the following for date of birth. \<%= date\_select ‘attending\_ip’, ‘dob’, :order =\> \[:month, :day, :year\], :use\_month\_numbers =\> true, :include\_blank =\> true, :start\_year =\> 1950, :end\_year =\> Time.now.y…

---

## [Render :update and controller private methods](https://www.ruby-forum.com/t/render-update-and-controller-private-methods/122243)

<div class="topic-metadata">

**Author:** [@kevin\_cline](https://www.ruby-forum.com/u/kevin_cline)\
**Replies:** 4\
**Last updated:** [December 14, 2007, 11:13pm UTC](https://www.ruby-forum.com/t/render-update-and-controller-private-methods/122243 "2007-12-14T23:13:24Z")

</div>

Probably asked and answered, but… Why are controller private methods inaccessible inside the block passed to render :update ? This does not work: class MyController \< ApplicationController def some\_action render :u…

---

## [Combobox problem](https://www.ruby-forum.com/t/combobox-problem/123169)

<div class="topic-metadata">

**Author:** [@luixx](https://www.ruby-forum.com/u/luixx)\
**Replies:** 2\
**Last updated:** [December 14, 2007, 10:08pm UTC](https://www.ruby-forum.com/t/combobox-problem/123169 "2007-12-14T22:08:16Z")

</div>

Hi, ich watched the tutorial complex forms 3 (http://railscasts.com/ episodes/75) and included it into my application. everything works fine so far but if i want to change Code : ruby - fold - unfold \<%= f.text\_f…

---

## [How to make multiple forms work](https://www.ruby-forum.com/t/how-to-make-multiple-forms-work/123147)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [December 14, 2007, 9:39pm UTC](https://www.ruby-forum.com/t/how-to-make-multiple-forms-work/123147 "2007-12-14T21:39:00Z")

</div>

If I have a page with multiple forms that should correspond with 1 element each, how can I do this? For example, if I was listing auctions and each one had a bid form (all on the same page), how can I make it so that …

---

## [ActionController::RoutingError problem](https://www.ruby-forum.com/t/actioncontroller-routingerror-problem/123197)

<div class="topic-metadata">

**Author:** [@naevity](https://www.ruby-forum.com/u/naevity)\
**Replies:** 2\
**Last updated:** [December 14, 2007, 9:36pm UTC](https://www.ruby-forum.com/t/actioncontroller-routingerror-problem/123197 "2007-12-14T21:36:40Z")

</div>

Hi Everyone, I’ve been teaching myself Ruby on Rails while trying to build a new website I want to launch in the next few weeks. I’ve gotten pretty far, but I’ve hit a wall this week and I can’t seem to get around it. …

---

## [Favicon.ico and mongrel](https://www.ruby-forum.com/t/favicon-ico-and-mongrel/123192)

<div class="topic-metadata">

**Author:** [@evronm](https://www.ruby-forum.com/u/evronm)\
**Replies:** 2\
**Last updated:** [December 14, 2007, 9:35pm UTC](https://www.ruby-forum.com/t/favicon-ico-and-mongrel/123192 "2007-12-14T21:35:28Z")

</div>

Hey folks, I have a bit of a frustrating problem with requests for favicon.ico generating all sorts of errors in my log files. The problem is that the default routes.rb file has the following line: map.connect ':con…

---

## [Fwd: \[ANNOUNCE\] ruby-pg is now the official postgres ruby gem](https://www.ruby-forum.com/t/fwd-announce-ruby-pg-is-now-the-official-postgres-ruby-gem/123193)

<div class="topic-metadata">

**Author:** [@Faisal\_NSJawdat](https://www.ruby-forum.com/u/Faisal_NSJawdat)\
**Replies:** 0\
**Last updated:** [December 14, 2007, 8:46pm UTC](https://www.ruby-forum.com/t/fwd-announce-ruby-pg-is-now-the-official-postgres-ruby-gem/123193 "2007-12-14T20:46:09Z")

</div>

Begin forwarded message:

---

## [Problem with date format](https://www.ruby-forum.com/t/problem-with-date-format/123139)

<div class="topic-metadata">

**Author:** [@veeraa2003](https://www.ruby-forum.com/u/veeraa2003)\
**Replies:** 2\
**Last updated:** [December 14, 2007, 8:42pm UTC](https://www.ruby-forum.com/t/problem-with-date-format/123139 "2007-12-14T20:42:36Z")

</div>

Hi Everybody, I have some issue with date formats. Like I using calender select plugin to select date, It will return the date with US format like “MM-DD-YYYY”. If I save this in mysql table, it stores like “YYYY-MM-…

---

## [What's the difference between edge rails & rails 2.0](https://www.ruby-forum.com/t/whats-the-difference-between-edge-rails-rails-2-0/123088)

<div class="topic-metadata">

**Author:** [@matthew](https://www.ruby-forum.com/u/matthew)\
**Replies:** 7\
**Last updated:** [December 14, 2007, 7:42pm UTC](https://www.ruby-forum.com/t/whats-the-difference-between-edge-rails-rails-2-0/123088 "2007-12-14T19:42:48Z")

</div>

Hi, It would be great if someone could please let me know if I’m using edge rails, am I using Rails 2.0? Sorry for being a bit slow.

---

## [Resizeing an image from Flickr URL](https://www.ruby-forum.com/t/resizeing-an-image-from-flickr-url/123186)

<div class="topic-metadata">

**Author:** [@John\_to\_Ruby](https://www.ruby-forum.com/u/John_to_Ruby)\
**Replies:** 0\
**Last updated:** [December 14, 2007, 7:18pm UTC](https://www.ruby-forum.com/t/resizeing-an-image-from-flickr-url/123186 "2007-12-14T19:18:41Z")

</div>

Hello, I am trying to display an embeded image based on URL from Flickr (don’t copy over) and resize it to my the sizes I want it, it is possible?

---

## [Password bug](https://www.ruby-forum.com/t/password-bug/91691)

<div class="topic-metadata">

**Author:** [@arthurfruchtman](https://www.ruby-forum.com/u/arthurfruchtman)\
**Replies:** 3\
**Last updated:** [December 14, 2007, 6:13pm UTC](https://www.ruby-forum.com/t/password-bug/91691 "2007-12-14T18:13:30Z")

</div>

I have a form where you sign up for an account on my RoR site. I have checks to make sure each text box has data in it. If I submit the form with all empty boxes, the page will be refreshed with errors (userID cannot …

---

## [Includes: The Ruby Way?](https://www.ruby-forum.com/t/includes-the-ruby-way/77427)

<div class="topic-metadata">

**Author:** [@kim](https://www.ruby-forum.com/u/kim)\
**Replies:** 7\
**Last updated:** [December 14, 2007, 5:54pm UTC](https://www.ruby-forum.com/t/includes-the-ruby-way/77427 "2007-12-14T17:54:30Z")

</div>

I was wondering if anyone had an opinion on how to do file includes in RoR. I am currently doing it with JavaScript. I am building a CMS for a dynamic website. I want a tool that lets non-programmers build a website b…

---

## [Rails Host with preconfig dedicated server](https://www.ruby-forum.com/t/rails-host-with-preconfig-dedicated-server/123178)

<div class="topic-metadata">

**Author:** [@John\_to\_Ruby](https://www.ruby-forum.com/u/John_to_Ruby)\
**Replies:** 0\
**Last updated:** [December 14, 2007, 5:52pm UTC](https://www.ruby-forum.com/t/rails-host-with-preconfig-dedicated-server/123178 "2007-12-14T17:52:32Z")

</div>

Hello, do you know any hosting that provide dedicated server with preconfiged environment/setup that is the most optimal solution for a Rails deployment? Or do you know a template or best practice guideline of how to…

---

## [Override to\_param + restful\_authentication](https://www.ruby-forum.com/t/override-to-param-restful-authentication/123175)

<div class="topic-metadata">

**Author:** [@Kei\_Simone](https://www.ruby-forum.com/u/Kei_Simone)\
**Replies:** 0\
**Last updated:** [December 14, 2007, 5:44pm UTC](https://www.ruby-forum.com/t/override-to-param-restful-authentication/123175 "2007-12-14T17:44:49Z")

</div>

To all: Hi, i think i realise what i went wrong here at http://groups.google.com/group/rubyonrails-talk/browse\_thread/thread/47c3b56034adf347/265b30d3cd97e137?lnk=gst&q=restful\_authentication+nested# I think its all …

---

## [Trying to get simple jquery example working for form\_remote\_tag](https://www.ruby-forum.com/t/trying-to-get-simple-jquery-example-working-for-form-remote-tag/123173)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [December 14, 2007, 5:08pm UTC](https://www.ruby-forum.com/t/trying-to-get-simple-jquery-example-working-for-form-remote-tag/123173 "2007-12-14T17:08:26Z")

</div>

I am trying to get a simple rails example working with jquery on windows. I had a simple example using form\_remote\_tag which worked fine using the default Rails scriptaculous and so on. I installed jrails as mentioned…

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

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