# Rails

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

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

---

## [Proc objects in helpers](https://www.ruby-forum.com/t/proc-objects-in-helpers/119616)

<div class="topic-metadata">

**Author:** [@remcoh](https://www.ruby-forum.com/u/remcoh)\
**Replies:** 3\
**Last updated:** [November 10, 2007, 9:03am UTC](https://www.ruby-forum.com/t/proc-objects-in-helpers/119616 "2007-11-10T09:03:29Z")

</div>

Hi, i created a little helper which accepts two Procs/lambda’s for creating a form line which can provide “show” and “edit” functionality (so i only need one partial). in my view i can create a form line like this: …

---

## [Unit Tests of Models w/o Tables](https://www.ruby-forum.com/t/unit-tests-of-models-w-o-tables/119754)

<div class="topic-metadata">

**Author:** [@S-gw](https://www.ruby-forum.com/u/S-gw)\
**Replies:** 6\
**Last updated:** [November 10, 2007, 7:25am UTC](https://www.ruby-forum.com/t/unit-tests-of-models-w-o-tables/119754 "2007-11-10T07:25:49Z")

</div>

AWDWR focuses on unit tests for models with database tables. There’s no discussion for models w/o tables that I can see. First attempts kept complaining about data tables not existing. I figured out this seems to come…

---

## [Web GUI for Unit Test Results?](https://www.ruby-forum.com/t/web-gui-for-unit-test-results/119765)

<div class="topic-metadata">

**Author:** [@S-gw](https://www.ruby-forum.com/u/S-gw)\
**Replies:** 1\
**Last updated:** [November 10, 2007, 7:23am UTC](https://www.ruby-forum.com/t/web-gui-for-unit-test-results/119765 "2007-11-10T07:23:29Z")

</div>

When I created a unit test framework for Lasso a while back, I had a web GUI that generated the typical Red/Green results displays. http://www.l-unit.org/\_resources/images/LUnitResults\_big.jpg I thought Rails had one …

---

## [Problem with image\_tag!](https://www.ruby-forum.com/t/problem-with-image-tag/196515)

<div class="topic-metadata">

**Author:** [@djmook](https://www.ruby-forum.com/u/djmook)\
**Replies:** 0\
**Last updated:** [November 10, 2007, 2:12am UTC](https://www.ruby-forum.com/t/problem-with-image-tag/196515 "2007-11-10T02:12:49Z")

</div>

I’ve been following a tutorial for Rails that goes through uploading images directly to databases. The problem is that using image\_tag keeps automatically appending .png to the end of the address. /classified/image/9 …

---

## [Problem with image\_tag](https://www.ruby-forum.com/t/problem-with-image-tag/119757)

<div class="topic-metadata">

**Author:** [@djmook](https://www.ruby-forum.com/u/djmook)\
**Replies:** 1\
**Last updated:** [November 10, 2007, 2:12am UTC](https://www.ruby-forum.com/t/problem-with-image-tag/119757 "2007-11-10T02:12:21Z")

</div>

I’ve been following a tutorial for Rails that goes through uploading images directly to databases. The problem is that using image\_tag keeps automatically appending .png to the end of the address. /classified/image/9 …

---

## [Array of Objects](https://www.ruby-forum.com/t/array-of-objects/119742)

<div class="topic-metadata">

**Author:** [@jcernelli](https://www.ruby-forum.com/u/jcernelli)\
**Replies:** 4\
**Last updated:** [November 10, 2007, 2:03am UTC](https://www.ruby-forum.com/t/array-of-objects/119742 "2007-11-10T02:03:54Z")

</div>

I have a collection of objects of differing types, and I want to grab all of one type of object into another collection. Would this be roughly the correct way to do it: surveys = Survey.find(:all) some\_survey\_types…

---

## [Css difference between IE6 and FF?](https://www.ruby-forum.com/t/css-difference-between-ie6-and-ff/119748)

<div class="topic-metadata">

**Author:** [@cal](https://www.ruby-forum.com/u/cal)\
**Replies:** 7\
**Last updated:** [November 10, 2007, 1:47am UTC](https://www.ruby-forum.com/t/css-difference-between-ie6-and-ff/119748 "2007-11-10T01:47:31Z")

</div>

Hi, In my main css file, I have styled up various types of flash elements as pasted below. All three flash classes (notice, info, and warning) render fine in FireFox, but only the first one defined is shown in Inter…

---

## [Modeling a Database](https://www.ruby-forum.com/t/modeling-a-database/119325)

<div class="topic-metadata">

**Author:** [@seank](https://www.ruby-forum.com/u/seank)\
**Replies:** 8\
**Last updated:** [November 10, 2007, 1:13am UTC](https://www.ruby-forum.com/t/modeling-a-database/119325 "2007-11-10T01:13:01Z")

</div>

All of the rails tutorials I’ve read show how to create simple table relationships within a database. For example: A store model relating to a product model through a join table. However, in the application I’m build…

---

## [Where in the API do I find special column names](https://www.ruby-forum.com/t/where-in-the-api-do-i-find-special-column-names/119747)

<div class="topic-metadata">

**Author:** [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Replies:** 2\
**Last updated:** [November 9, 2007, 11:22pm UTC](https://www.ruby-forum.com/t/where-in-the-api-do-i-find-special-column-names/119747 "2007-11-09T23:22:23Z")

</div>

I am looking at the api (activerecord) for the list of special column names (like changed\_at) but I cannot find the appropriate class or module. Can someone tell me where to look? Regards,

---

## [Observe\_field Firefox error](https://www.ruby-forum.com/t/observe-field-firefox-error/112258)

<div class="topic-metadata">

**Author:** [@chrismalek](https://www.ruby-forum.com/u/chrismalek)\
**Replies:** 3\
**Last updated:** [November 9, 2007, 11:06pm UTC](https://www.ruby-forum.com/t/observe-field-firefox-error/112258 "2007-11-09T23:06:42Z")

</div>

I’ve been having some problems in Firefox with observe\_field. Everything seems to work fine in IE, however when I try to observe a select box nothing seems to happen in firefox. I downloaded FireBug to investigate, a…

---

## [Ruby on rails + ajax + iframe image uploader](https://www.ruby-forum.com/t/ruby-on-rails-ajax-iframe-image-uploader/119674)

<div class="topic-metadata">

**Author:** [@Ghee\_wooi\_O](https://www.ruby-forum.com/u/Ghee_wooi_O)\
**Replies:** 1\
**Last updated:** [November 9, 2007, 11:05pm UTC](https://www.ruby-forum.com/t/ruby-on-rails-ajax-iframe-image-uploader/119674 "2007-11-09T23:05:32Z")

</div>

hi, I write a page that contain following function: this site contain a html file upload control, which allow user to upload image only. once the image had been uploaded, it will automatic display on the current pag…

---

## [Possible bug with has\_many and Array#empty?](https://www.ruby-forum.com/t/possible-bug-with-has-many-and-array-empty/119669)

<div class="topic-metadata">

**Author:** [@dark-omen](https://www.ruby-forum.com/u/dark-omen)\
**Replies:** 5\
**Last updated:** [November 9, 2007, 10:54pm UTC](https://www.ruby-forum.com/t/possible-bug-with-has-many-and-array-empty/119669 "2007-11-09T22:54:17Z")

</div>

I’ve pasted the code where I have a problem here: The bottom line is this: I have an object called document\_group that has many document\_templates. In my controller, I create class variable like so: @document\_grou…

---

## [Paginate @member.items?](https://www.ruby-forum.com/t/paginate-member-items/53708)

<div class="topic-metadata">

**Author:** [@csn](https://www.ruby-forum.com/u/csn)\
**Replies:** 1\
**Last updated:** [November 9, 2007, 10:28pm UTC](https://www.ruby-forum.com/t/paginate-member-items/53708 "2007-11-09T22:28:14Z")

</div>

Is there a quick and easy way to paginate something like @member.items (Member with has\_many :items)? Right now I do in the controller: @item\_pages, @member\_items = paginate :item, :conditions=\>\[“member\_id=?”, @membe…

---

## [Modalbox plugin or similar?](https://www.ruby-forum.com/t/modalbox-plugin-or-similar/119644)

<div class="topic-metadata">

**Author:** [@MarcS](https://www.ruby-forum.com/u/MarcS)\
**Replies:** 2\
**Last updated:** [November 9, 2007, 9:34pm UTC](https://www.ruby-forum.com/t/modalbox-plugin-or-similar/119644 "2007-11-09T21:34:51Z")

</div>

Hi, I’m looking for a rails plugin for modalbox Has anyone ever done something like that? Do you know of anything similar? I tried redbox but it seems to have a bug which I can’t fix. (the overlay doesn’t cover the …

---

## [Problem with associatotions](https://www.ruby-forum.com/t/problem-with-associatotions/119699)

<div class="topic-metadata">

**Author:** [@stratboy](https://www.ruby-forum.com/u/stratboy)\
**Replies:** 1\
**Last updated:** [November 9, 2007, 9:21pm UTC](https://www.ruby-forum.com/t/problem-with-associatotions/119699 "2007-11-09T21:21:56Z")

</div>

I have these models: class Vote \< ActiveRecord::Base belongs\_to :core belongs\_to :user\_id end class User \< Core has\_many :votes end class Core \< ActiveRecord::Base has\_many :votes end the tables in db are: co…

---

## [Mailing List Application](https://www.ruby-forum.com/t/mailing-list-application/119740)

<div class="topic-metadata">

**Author:** [@Titus](https://www.ruby-forum.com/u/Titus)\
**Replies:** 0\
**Last updated:** [November 9, 2007, 9:02pm UTC](https://www.ruby-forum.com/t/mailing-list-application/119740 "2007-11-09T21:02:37Z")

</div>

Hey everyone! I am new to Ruby on Rails and LOVE IT! Does anyone know of an open source or retail Mailing List Management application built on Ruby on Rails? I need one for a client. Thanks a bunch! God Bless, Tit…

---

## [Raw SQL in Migrations?](https://www.ruby-forum.com/t/raw-sql-in-migrations/119737)

<div class="topic-metadata">

**Author:** [@S-gw](https://www.ruby-forum.com/u/S-gw)\
**Replies:** 3\
**Last updated:** [November 9, 2007, 8:42pm UTC](https://www.ruby-forum.com/t/raw-sql-in-migrations/119737 "2007-11-09T20:42:38Z")

</div>

After reading AWDWR and searching the API, it appears the Rails’ implementation of Migrations has no way to execute a raw SQL statement. True? – gw

---

## [Script/Runner and passing parameters](https://www.ruby-forum.com/t/script-runner-and-passing-parameters/119736)

<div class="topic-metadata">

**Author:** [@aantix](https://www.ruby-forum.com/u/aantix)\
**Replies:** 1\
**Last updated:** [November 9, 2007, 8:13pm UTC](https://www.ruby-forum.com/t/script-runner-and-passing-parameters/119736 "2007-11-09T20:13:55Z")

</div>

I am calling a model from cron using script/runner. My call looks like this : /usr/local/bin/ruby script/runner -e production “ProfileBox.updateProfileBoxes” I need to be able to pass parameters to this model. Som…

---

## [Problem with Actionmailer/TMail & decoding Apple Mail Attachments](https://www.ruby-forum.com/t/problem-with-actionmailer-tmail-decoding-apple-mail-attachments/119732)

<div class="topic-metadata">

**Author:** [@bertz](https://www.ruby-forum.com/u/bertz)\
**Replies:** 0\
**Last updated:** [November 9, 2007, 6:02pm UTC](https://www.ruby-forum.com/t/problem-with-actionmailer-tmail-decoding-apple-mail-attachments/119732 "2007-11-09T18:02:43Z")

</div>

Im having problems with Apple Mail and decoding attachments that are sent from it. I’m not 100% sure but I think it might have something to do with them being inline. I’m a bit stumped, I haven’t managed to find anyth…

---

## [What is the difference between 2 types of rails installation](https://www.ruby-forum.com/t/what-is-the-difference-between-2-types-of-rails-installation/119684)

<div class="topic-metadata">

**Author:** [@ram](https://www.ruby-forum.com/u/ram)\
**Replies:** 1\
**Last updated:** [November 9, 2007, 5:42pm UTC](https://www.ruby-forum.com/t/what-is-the-difference-between-2-types-of-rails-installation/119684 "2007-11-09T17:42:14Z")

</div>

Hi, I would like to know the difference between installing the rails gem install rails and copying the rails package from the “http://rubyforge.org/frs/? group\_id=307” For some unknown reason, in my system the comm…

---

## [Escaping from ilike](https://www.ruby-forum.com/t/escaping-from-ilike/119727)

<div class="topic-metadata">

**Author:** [@jney](https://www.ruby-forum.com/u/jney)\
**Replies:** 0\
**Last updated:** [November 9, 2007, 5:35pm UTC](https://www.ruby-forum.com/t/escaping-from-ilike/119727 "2007-11-09T17:35:13Z")

</div>

Hello, I’m try to escape text from ilike but it doesn’t work. when i type ‘%’ it send the request ‘%%%’ so it return every record Here is the function. def self.autocomplete(text, options={}) text = ‘%’ + self.sanit…

---

## [Backgroundrb alternative idea](https://www.ruby-forum.com/t/backgroundrb-alternative-idea/119720)

<div class="topic-metadata">

**Author:** [@Reynard](https://www.ruby-forum.com/u/Reynard)\
**Replies:** 2\
**Last updated:** [November 9, 2007, 5:01pm UTC](https://www.ruby-forum.com/t/backgroundrb-alternative-idea/119720 "2007-11-09T17:01:54Z")

</div>

I’m just wondering how many people are using backgroundrb on production site? and how’s the experience with backgroundrb? From my experience it’s been the cause of about 90% of our production server problems: From re…

---

## [Acts\_as\_versioned and parent model methods](https://www.ruby-forum.com/t/acts-as-versioned-and-parent-model-methods/119651)

<div class="topic-metadata">

**Author:** [@rubylover](https://www.ruby-forum.com/u/rubylover)\
**Replies:** 1\
**Last updated:** [November 9, 2007, 3:30pm UTC](https://www.ruby-forum.com/t/acts-as-versioned-and-parent-model-methods/119651 "2007-11-09T15:30:58Z")

</div>

I am trying to iterate through the versions of my Day model in a view, and want to apply some model methods to it. Here’s an example: \<% day.versions.reject!{ |v| v.version == 1 }.each do |d| -\> \<= d.process\_date\_this…

---

## [Rich (or any) GUI Components for Rails](https://www.ruby-forum.com/t/rich-or-any-gui-components-for-rails/119553)

<div class="topic-metadata">

**Author:** [@Piotr\_N](https://www.ruby-forum.com/u/Piotr_N)\
**Replies:** 6\
**Last updated:** [November 9, 2007, 1:50pm UTC](https://www.ruby-forum.com/t/rich-or-any-gui-components-for-rails/119553 "2007-11-09T13:50:49Z")

</div>

HI, I Find rails great but theres lack of rich components, i mean any components except standard html controls… I cant build everytime my table with all features, we are crud right ? So any component repository plann…

---

## [Text\_field\_with\_auto\_complete scrollbars](https://www.ruby-forum.com/t/text-field-with-auto-complete-scrollbars/196513)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [November 9, 2007, 1:33pm UTC](https://www.ruby-forum.com/t/text-field-with-auto-complete-scrollbars/196513 "2007-11-09T13:33:15Z")

</div>

Greetings, I am using text\_field\_with\_auto\_complete to help narrow a long list of subject headings, about 10,000 in all. However, I wish to provide a scrollbar so that users can scroll through a list if there are too …

---

## [Problem with client-side RJS using update\_page](https://www.ruby-forum.com/t/problem-with-client-side-rjs-using-update-page/119662)

<div class="topic-metadata">

**Author:** [@eric99](https://www.ruby-forum.com/u/eric99)\
**Replies:** 2\
**Last updated:** [November 9, 2007, 9:48am UTC](https://www.ruby-forum.com/t/problem-with-client-side-rjs-using-update-page/119662 "2007-11-09T09:48:59Z")

</div>

I tried to use RJS inside my rhtml template like this: \<%= select\_tag “price”, … %\> \<%= observe\_field :price, :function =\> update\_page do |page| page.insert\_html :after, ‘price’, “3” end %\> But when I refresh the br…

---

## [\[ANN/RFC\] Rathole, a fixtures extension plugin](https://www.ruby-forum.com/t/ann-rfc-rathole-a-fixtures-extension-plugin/117876)

<div class="topic-metadata">

**Author:** [@johnnybutler7](https://www.ruby-forum.com/u/johnnybutler7)\
**Replies:** 13\
**Last updated:** [November 9, 2007, 8:52am UTC](https://www.ruby-forum.com/t/ann-rfc-rathole-a-fixtures-extension-plugin/117876 "2007-11-09T08:52:13Z")

</div>

Like lots of other folks, I’ve been searching for a way to scratch my fixture itches. Rathole is my extraction of a few techniques we’ve successfully applied at my day job. We’ve been using Rathole for a month or so n…

---

## [Retrieving values from combo box](https://www.ruby-forum.com/t/retrieving-values-from-combo-box/119342)

<div class="topic-metadata">

**Author:** [@xenophobicjojo](https://www.ruby-forum.com/u/xenophobicjojo)\
**Replies:** 2\
**Last updated:** [November 9, 2007, 4:15am UTC](https://www.ruby-forum.com/t/retrieving-values-from-combo-box/119342 "2007-11-09T04:15:10Z")

</div>

Jul/10: \<%= select\_tag "jul10", "YNR" %\> At the moment, my html form displays this combo box the way i want it, but it does not record down what the user has selected and save it to the database help please, thank…

---

## [Radio button problem](https://www.ruby-forum.com/t/radio-button-problem/119417)

<div class="topic-metadata">

**Author:** [@doug3](https://www.ruby-forum.com/u/doug3)\
**Replies:** 4\
**Last updated:** [November 9, 2007, 2:05am UTC](https://www.ruby-forum.com/t/radio-button-problem/119417 "2007-11-09T02:05:34Z")

</div>

Greetings, I have a partial form that displays a questionnaire. Each question has a group of radio buttons associated with it which allow the user to select only one possible answer. In order to do this, I am using …

---

## [Help with string replacement in xml](https://www.ruby-forum.com/t/help-with-string-replacement-in-xml/119661)

<div class="topic-metadata">

**Author:** [@baztheman](https://www.ruby-forum.com/u/baztheman)\
**Replies:** 0\
**Last updated:** [November 8, 2007, 11:56pm UTC](https://www.ruby-forum.com/t/help-with-string-replacement-in-xml/119661 "2007-11-08T23:56:09Z")

</div>

Hi, I am a newbie and would like to know how I can change the contents of the xml files with Ruby. In pom.xml, com.sports.storage.build.super-pom storeage-pom 1.2.3.4 com.sports.basketball…

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

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