# Rails

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

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

---

## [Problem installing gem mysql on vista](https://www.ruby-forum.com/t/problem-installing-gem-mysql-on-vista/88751)

<div class="topic-metadata">

**Author:** [@matthew](https://www.ruby-forum.com/u/matthew)\
**Replies:** 0\
**Last updated:** [March 14, 2007, 12:55am UTC](https://www.ruby-forum.com/t/problem-installing-gem-mysql-on-vista/88751 "2007-03-14T00:55:07Z")

</div>

Hi, I’m hoping that someone can point me right direction on this one. I’m trying execute gem install mysql & am getting the following error message. C:\\Users\\matt\>gem install mysql Bulk updating Gem source index for:…

---

## [\[ANN\] Rails 1.2.3: Compatible with Ruby 1.8.6 (and other fix](https://www.ruby-forum.com/t/ann-rails-1-2-3-compatible-with-ruby-1-8-6-and-other-fix/88747)

<div class="topic-metadata">

**Author:** [@DHH](https://www.ruby-forum.com/u/DHH)\
**Replies:** 0\
**Last updated:** [March 14, 2007, 12:48am UTC](https://www.ruby-forum.com/t/ann-rails-1-2-3-compatible-with-ruby-1-8-6-and-other-fix/88747 "2007-03-14T00:48:08Z")

</div>

While Rails Edge continues to move forward at a rapid clip, we’ve still had the time to make sure that Rails 1.2.x stays in the game. This release irons out the few wrinkles there was between Ruby 1.8.6 and Rails 1.2.…

---

## [Can't update tbody in IE 6 with page\['name'\].replace\_html](https://www.ruby-forum.com/t/cant-update-tbody-in-ie-6-with-page-name-replace-html/88740)

<div class="topic-metadata">

**Author:** [@weyus](https://www.ruby-forum.com/u/weyus)\
**Replies:** 4\
**Last updated:** [March 14, 2007, 12:41am UTC](https://www.ruby-forum.com/t/cant-update-tbody-in-ie-6-with-page-name-replace-html/88740 "2007-03-14T00:41:38Z")

</div>

Can anyone verify that you can’t update a tbody element in IE 6 by using page\[‘name\]’.replace\_html? I’ve tried all three ways I know to update the innerHTML property of the tbody and it won’t take. But page\[‘name’\].i…

---

## [ActiveRecord: strange tree behavior?](https://www.ruby-forum.com/t/activerecord-strange-tree-behavior/88745)

<div class="topic-metadata">

**Author:** [@siegi](https://www.ruby-forum.com/u/siegi)\
**Replies:** 0\
**Last updated:** [March 14, 2007, 12:11am UTC](https://www.ruby-forum.com/t/activerecord-strange-tree-behavior/88745 "2007-03-14T00:11:01Z")

</div>

hi, can someone help me with understanding, why i can’t get my set\_sub\_tree method to run correctly and what to do to make it work? when i run the testcase below i get D:\\ruby\\test\>ruby test/unit/demo\_test.rb Loade…

---

## [File\_column shows path to the public](https://www.ruby-forum.com/t/file-column-shows-path-to-the-public/88739)

<div class="topic-metadata">

**Author:** [@surfman](https://www.ruby-forum.com/u/surfman)\
**Replies:** 1\
**Last updated:** [March 13, 2007, 11:33pm UTC](https://www.ruby-forum.com/t/file-column-shows-path-to-the-public/88739 "2007-03-13T23:33:51Z")

</div>

I am using \<% @entry = Entry.find(params\[:id\]) %\> \<%= image\_tag url\_for\_file\_column(‘entry’, ‘image’) %\> to show image info at my view. it will show image AND PATH TO THE IMAGE, like, /usr/local/my\_path\_to\_rail\_pro…

---

## [Disable link on two conditions](https://www.ruby-forum.com/t/disable-link-on-two-conditions/88711)

<div class="topic-metadata">

**Author:** [@kim](https://www.ruby-forum.com/u/kim)\
**Replies:** 5\
**Last updated:** [March 13, 2007, 11:19pm UTC](https://www.ruby-forum.com/t/disable-link-on-two-conditions/88711 "2007-03-13T23:19:56Z")

</div>

I want to disable my navigation depending on two conditions: 1) the page is not the current one, 2) the page is not in the session. I have tried: \<%= link\_to\_unless @page.nil? or current\_page?, “My ICA Pages” , :cont…

---

## [Migration adds a column, can't set a value for it](https://www.ruby-forum.com/t/migration-adds-a-column-cant-set-a-value-for-it/88728)

<div class="topic-metadata">

**Author:** [@pergesu](https://www.ruby-forum.com/u/pergesu)\
**Replies:** 5\
**Last updated:** [March 13, 2007, 10:08pm UTC](https://www.ruby-forum.com/t/migration-adds-a-column-cant-set-a-value-for-it/88728 "2007-03-13T22:08:50Z")

</div>

I’ve got a migration that adds a column then sets the value for one of the records: def self.up add\_column :publish\_property\_lists, :preview\_page\_header, :string if p = PublishPropertyList.find(:first, :conditions =\> …

---

## [Ruby 1.8.6](https://www.ruby-forum.com/t/ruby-1-8-6/88619)

<div class="topic-metadata">

**Author:** [@dysinger](https://www.ruby-forum.com/u/dysinger)\
**Replies:** 6\
**Last updated:** [March 13, 2007, 9:51pm UTC](https://www.ruby-forum.com/t/ruby-1-8-6/88619 "2007-03-13T21:51:48Z")

</div>

I upgraded for fun today and ruby is complaining that rails methods are now ‘private’ like ActiveRecord update and Time to\_date ?

---

## [Easy Date question - newb](https://www.ruby-forum.com/t/easy-date-question-newb/88640)

<div class="topic-metadata">

**Author:** [@jko170](https://www.ruby-forum.com/u/jko170)\
**Replies:** 6\
**Last updated:** [March 13, 2007, 9:32pm UTC](https://www.ruby-forum.com/t/easy-date-question-newb/88640 "2007-03-13T21:32:46Z")

</div>

All I want to do is find the objects that were created today under the ‘created\_on’ column. I’ve tried many ways, here is one example using the chronic gem. @products = Product.find\_all\_by\_created\_on(Chronic.parse(‘to…

---

## [:includes with condition - accessing ids](https://www.ruby-forum.com/t/includes-with-condition-accessing-ids/88691)

<div class="topic-metadata">

**Author:** [@jasonmorrison](https://www.ruby-forum.com/u/jasonmorrison)\
**Replies:** 4\
**Last updated:** [March 13, 2007, 9:27pm UTC](https://www.ruby-forum.com/t/includes-with-condition-accessing-ids/88691 "2007-03-13T21:27:57Z")

</div>

I’m quite new to Rails and I’ve come up against a little problem which hopefully you guys can shed some light on. I have a multiple select form element, populated with OIDs associated with a given network devices (I’m…

---

## [Making auto-completion faster?](https://www.ruby-forum.com/t/making-auto-completion-faster/88699)

<div class="topic-metadata">

**Author:** [@plambert](https://www.ruby-forum.com/u/plambert)\
**Replies:** 3\
**Last updated:** [March 13, 2007, 9:22pm UTC](https://www.ruby-forum.com/t/making-auto-completion-faster/88699 "2007-03-13T21:22:44Z")

</div>

I just started playing around with the auto-completion (text\_field\_with\_auto\_complete) stuff, and it is very nice, but it seems a little slow-- it takes about 1 second for the list to appear or for an update. The dev…

---

## [Acts\_as\_attachment - 1 form](https://www.ruby-forum.com/t/acts-as-attachment-1-form/88705)

<div class="topic-metadata">

**Author:** [@shagymoe](https://www.ruby-forum.com/u/shagymoe)\
**Replies:** 2\
**Last updated:** [March 13, 2007, 9:07pm UTC](https://www.ruby-forum.com/t/acts-as-attachment-1-form/88705 "2007-03-13T21:07:41Z")

</div>

Hi all, I’ve asked some seriously detailed questions about this in other forums and you’d think I’d set some user preference to “set my posts to invisible”. LOL When it comes right down to it, my question is simple. C…

---

## [Parameterizing auto-completion?](https://www.ruby-forum.com/t/parameterizing-auto-completion/88717)

<div class="topic-metadata">

**Author:** [@plambert](https://www.ruby-forum.com/u/plambert)\
**Replies:** 2\
**Last updated:** [March 13, 2007, 9:06pm UTC](https://www.ruby-forum.com/t/parameterizing-auto-completion/88717 "2007-03-13T21:06:41Z")

</div>

Is there a way to pass in a parameter (e.g. an ID) to the auto\_complete\_for… method? I have a table of answers that I’m serving up for auto-completion, but I only want the answers that apply to a given field. In my …

---

## [Question on application/database design for a application po](https://www.ruby-forum.com/t/question-on-application-database-design-for-a-application-po/88718)

<div class="topic-metadata">

**Author:** [@maunzinha](https://www.ruby-forum.com/u/maunzinha)\
**Replies:** 5\
**Last updated:** [March 13, 2007, 8:49pm UTC](https://www.ruby-forum.com/t/question-on-application-database-design-for-a-application-po/88718 "2007-03-13T20:49:37Z")

</div>

Hi all I am hoping that the experience and knowledge of this ‘list’ will be able to help me out with some design decisions I have to make while porting a desktop app to rails. Here is the scoop: I am in the design p…

---

## [How to delete images through file\_column and rmagick?](https://www.ruby-forum.com/t/how-to-delete-images-through-file-column-and-rmagick/88722)

<div class="topic-metadata">

**Author:** [@surfman](https://www.ruby-forum.com/u/surfman)\
**Replies:** 0\
**Last updated:** [March 13, 2007, 8:43pm UTC](https://www.ruby-forum.com/t/how-to-delete-images-through-file-column-and-rmagick/88722 "2007-03-13T20:43:03Z")

</div>

I know file\_column and rmagick may offer image uploading feature. how about deleting images? Any one has experiences to implement it with file\_column and rmagick? Thanks for any help.

---

## [Validating multiple rows of data](https://www.ruby-forum.com/t/validating-multiple-rows-of-data/88721)

<div class="topic-metadata">

**Author:** [@kevin](https://www.ruby-forum.com/u/kevin)\
**Replies:** 0\
**Last updated:** [March 13, 2007, 7:58pm UTC](https://www.ruby-forum.com/t/validating-multiple-rows-of-data/88721 "2007-03-13T19:58:07Z")

</div>

I have a form that allows users to enter up to 5 names and phone numbers at once. However, I’m having a problem getting the validation to work properly. Here’s the behavior I’d like to see: If a name is entered for…

---

## [CADMIO - CRM on Rails](https://www.ruby-forum.com/t/cadmio-crm-on-rails/88715)

<div class="topic-metadata">

**Author:** [@hurrycane](https://www.ruby-forum.com/u/hurrycane)\
**Replies:** 0\
**Last updated:** [March 13, 2007, 7:16pm UTC](https://www.ruby-forum.com/t/cadmio-crm-on-rails/88715 "2007-03-13T19:16:16Z")

</div>

Hello all you Ruby on Rails lover, I\`m very happy to announce that a new CRM on Rails is under major development - we call it CADMIO. I need a little help to get things running so if you want give us a hand just go at…

---

## [Comparing two databases with Active Record](https://www.ruby-forum.com/t/comparing-two-databases-with-active-record/88702)

<div class="topic-metadata">

**Author:** [@dmcclean](https://www.ruby-forum.com/u/dmcclean)\
**Replies:** 6\
**Last updated:** [March 13, 2007, 7:05pm UTC](https://www.ruby-forum.com/t/comparing-two-databases-with-active-record/88702 "2007-03-13T19:05:14Z")

</div>

I have two databases in SQLite with the same schema. The other database was populated by an external customer and then returned. I want to use ActiveRecord to do the comparison. I am not sure of the best way to acces…

---

## [Aliasing, require\_dependency and require](https://www.ruby-forum.com/t/aliasing-require-dependency-and-require/88710)

<div class="topic-metadata">

**Author:** [@saimon](https://www.ruby-forum.com/u/saimon)\
**Replies:** 0\
**Last updated:** [March 13, 2007, 6:38pm UTC](https://www.ruby-forum.com/t/aliasing-require-dependency-and-require/88710 "2007-03-13T18:38:23Z")

</div>

I’d really appreciate it if someone \[with a decent understanding of the rails Dependencies mechanism\] could help me explain the behaviour seen in this pastie. http://pastie.caboo.se/46630 The desired behaviour is sim…

---

## [Combining Erb and RJS](https://www.ruby-forum.com/t/combining-erb-and-rjs/88675)

<div class="topic-metadata">

**Author:** [@KSRajesh](https://www.ruby-forum.com/u/KSRajesh)\
**Replies:** 2\
**Last updated:** [March 13, 2007, 6:17pm UTC](https://www.ruby-forum.com/t/combining-erb-and-rjs/88675 "2007-03-13T18:17:04Z")

</div>

Heres the thing. I want to render a page with standard .rhtml and I want to do some RJS style effects on the same page. Inline RJS doesnt work. I cant do a render :rjs Obviously I know it can be done… simple example …

---

## [\[ANN\] CruiseControl.rb 1.0](https://www.ruby-forum.com/t/ann-cruisecontrol-rb-1-0/88626)

<div class="topic-metadata">

**Author:** [@alexeyv](https://www.ruby-forum.com/u/alexeyv)\
**Replies:** 6\
**Last updated:** [March 13, 2007, 6:05pm UTC](https://www.ruby-forum.com/t/ann-cruisecontrol-rb-1-0/88626 "2007-03-13T18:05:01Z")

</div>

Hmmm. Another Continuous Integration tool? What is that, the millionth one? Yup, pretty much, but we’re taking a different approach than the others in a way, back to the basics. Here’s our motto: Easy to instal…

---

## [RSS: self hosted vs feedburner?](https://www.ruby-forum.com/t/rss-self-hosted-vs-feedburner/88700)

<div class="topic-metadata">

**Author:** [@jonlog](https://www.ruby-forum.com/u/jonlog)\
**Replies:** 1\
**Last updated:** [March 13, 2007, 6:01pm UTC](https://www.ruby-forum.com/t/rss-self-hosted-vs-feedburner/88700 "2007-03-13T18:01:01Z")

</div>

I’ve been working on getting RSS feeds working for a small personal project of mine. In my research to see what/how other people were doing for RSS, I noticed that a vast majority of blogs seem to be using feedburner…

---

## [Validates\_inclusion\_of disabling](https://www.ruby-forum.com/t/validates-inclusion-of-disabling/88650)

<div class="topic-metadata">

**Author:** [@jotape](https://www.ruby-forum.com/u/jotape)\
**Replies:** 13\
**Last updated:** [March 13, 2007, 5:51pm UTC](https://www.ruby-forum.com/t/validates-inclusion-of-disabling/88650 "2007-03-13T17:51:41Z")

</div>

Hello all. I have a problem using validates\_inclusion\_of. I need to switch off some validations during a migration period, is there a way? I tried to use if, with a static method of one of my models, but the behaviou…

---

## [Using rails-generated code in "show"](https://www.ruby-forum.com/t/using-rails-generated-code-in-show/88591)

<div class="topic-metadata">

**Author:** [@ali](https://www.ruby-forum.com/u/ali)\
**Replies:** 2\
**Last updated:** [March 13, 2007, 5:42pm UTC](https://www.ruby-forum.com/t/using-rails-generated-code-in-show/88591 "2007-03-13T17:42:56Z")

</div>

Hi! I used scaffold to create my mvc for my table. I have only written one other ROR application, and since I was winging it, I didn’t take advantage of the rails-generate code. My scenario is: User clicks save on …

---

## [EasyRails and PortableRails : Ruby on Rails always on you :)](https://www.ruby-forum.com/t/easyrails-and-portablerails-ruby-on-rails-always-on-you/88651)

<div class="topic-metadata">

**Author:** [@budu](https://www.ruby-forum.com/u/budu)\
**Replies:** 5\
**Last updated:** [March 13, 2007, 4:40pm UTC](https://www.ruby-forum.com/t/easyrails-and-portablerails-ruby-on-rails-always-on-you/88651 "2007-03-13T16:40:43Z")

</div>

This is just a small ad for two packages I’ve made : EasyRails and PortableRails. EasyRails is an installation package that installs all the needed software to begin development with Ruby on Rails on a Windows system. …

---

## [RJS, Prototype and finding out if object exists in the DOM](https://www.ruby-forum.com/t/rjs-prototype-and-finding-out-if-object-exists-in-the-dom/88668)

<div class="topic-metadata">

**Author:** [@zecko](https://www.ruby-forum.com/u/zecko)\
**Replies:** 4\
**Last updated:** [March 13, 2007, 4:37pm UTC](https://www.ruby-forum.com/t/rjs-prototype-and-finding-out-if-object-exists-in-the-dom/88668 "2007-03-13T16:37:43Z")

</div>

i asked this allready in german on rubyforum.com and also on #rubyonrails (thanks again for your time, njero) http://forum.ruby-portal.de/viewtopic.php?t=4067 how is it possible to find out, if an object (div) exists …

---

## [Macromedia Flash with Ruby on rails](https://www.ruby-forum.com/t/macromedia-flash-with-ruby-on-rails/102715)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 3\
**Last updated:** [March 13, 2007, 4:29pm UTC](https://www.ruby-forum.com/t/macromedia-flash-with-ruby-on-rails/102715 "2007-03-13T16:29:41Z")

</div>

Hello everybody, I have been given the thankless task of implementing a Flash GUI with a ruby back-end. Naturally I argued for the merits of HTML (of RHTML) but to no avail, and so here I am a prodding and a poking a…

---

## [Question about export to excel example in rails wiki](https://www.ruby-forum.com/t/question-about-export-to-excel-example-in-rails-wiki/88693)

<div class="topic-metadata">

**Author:** [@franee](https://www.ruby-forum.com/u/franee)\
**Replies:** 1\
**Last updated:** [March 13, 2007, 4:16pm UTC](https://www.ruby-forum.com/t/question-about-export-to-excel-example-in-rails-wiki/88693 "2007-03-13T16:16:29Z")

</div>

Hi, I tried running this example ==\> http://wiki.rubyonrails.com/rails/pages/HowToExportToExcel My problem is that the instance variable @records says it is null in the RXML template. I also tried creating other ins…

---

## [Advanced Plugin Development Question](https://www.ruby-forum.com/t/advanced-plugin-development-question/88687)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [March 13, 2007, 3:38pm UTC](https://www.ruby-forum.com/t/advanced-plugin-development-question/88687 "2007-03-13T15:38:29Z")

</div>

I have the following code for a plugin that I am developing: module ClassMethods def my\_method(child\_table) child = child\_table.to\_s; c = child.pluralize has\_and\_belongs\_to\_many c.to\_sym, …

---

## [Dynamic template system with RoR](https://www.ruby-forum.com/t/dynamic-template-system-with-ror/88551)

<div class="topic-metadata">

**Author:** [@matthew](https://www.ruby-forum.com/u/matthew)\
**Replies:** 6\
**Last updated:** [March 13, 2007, 3:32pm UTC](https://www.ruby-forum.com/t/dynamic-template-system-with-ror/88551 "2007-03-13T15:32:28Z")

</div>

I’m brand new to Ruby and Rails, but I’ve read a lot of the requisite tutorials and feel pretty comfortable with most of it. I’ve been developing sites in PHP for the better part of a decade, so please bear in mind th…

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

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