# Rails

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

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

---

## [Problem in file uploading](https://www.ruby-forum.com/t/problem-in-file-uploading/92603)

<div class="topic-metadata">

**Author:** [@ramesh](https://www.ruby-forum.com/u/ramesh)\
**Replies:** 0\
**Last updated:** [April 21, 2007, 12:17pm UTC](https://www.ruby-forum.com/t/problem-in-file-uploading/92603 "2007-04-21T12:17:52Z")

</div>

Hai According to the http://wiki.rubyonrails, I am trying to do the file uploading . here i am sending my code @file\_data=@params\[‘label\_upload’\]\[‘send\_file’\] @params\[‘sendfile\_label’\]\[‘filename’\] = @file\_data.orig…

---

## [Help with RESTful routes](https://www.ruby-forum.com/t/help-with-restful-routes/92566)

<div class="topic-metadata">

**Author:** [@jon](https://www.ruby-forum.com/u/jon)\
**Replies:** 3\
**Last updated:** [April 21, 2007, 11:39am UTC](https://www.ruby-forum.com/t/help-with-restful-routes/92566 "2007-04-21T11:39:16Z")

</div>

Hi, I have just added a new functions to my RESTful user model forgot\_password that I believe I should now be accessing in the following url http://localhost:3000/users;forgot\_password instead of /users/forgot\_passwo…

---

## [Dating website](https://www.ruby-forum.com/t/dating-website/92602)

<div class="topic-metadata">

**Author:** [@tauqir\_ahmad](https://www.ruby-forum.com/u/tauqir_ahmad)\
**Replies:** 0\
**Last updated:** [April 21, 2007, 10:28am UTC](https://www.ruby-forum.com/t/dating-website/92602 "2007-04-21T10:28:47Z")

</div>

Send free email to dating members http://www.datingseasons.com Find your dream partner online free http://www.datingseasons.com Search and make your online partners http://www.datingseasons.com Find more details ab…

---

## [Legacy DB and composite keys: how do you approach?](https://www.ruby-forum.com/t/legacy-db-and-composite-keys-how-do-you-approach/92600)

<div class="topic-metadata">

**Author:** [@carminem](https://www.ruby-forum.com/u/carminem)\
**Replies:** 0\
**Last updated:** [April 21, 2007, 9:51am UTC](https://www.ruby-forum.com/t/legacy-db-and-composite-keys-how-do-you-approach/92600 "2007-04-21T09:51:28Z")

</div>

Hi to everyone, First a little background noise. I’m working on an E-Commerce application in Rails and, at this stage, I’ve to relay on an existing db (MS SQL Server). The aforementioned db has all the tables with c…

---

## [Unsubscribe](https://www.ruby-forum.com/t/unsubscribe/92599)

<div class="topic-metadata">

**Author:** [@jeisma](https://www.ruby-forum.com/u/jeisma)\
**Replies:** 0\
**Last updated:** [April 21, 2007, 9:32am UTC](https://www.ruby-forum.com/t/unsubscribe/92599 "2007-04-21T09:32:41Z")

</div>

unsubscribe

---

## [Has\_many / has\_one polymorphic with conditions](https://www.ruby-forum.com/t/has-many-has-one-polymorphic-with-conditions/92596)

<div class="topic-metadata">

**Author:** [@yankees26](https://www.ruby-forum.com/u/yankees26)\
**Replies:** 0\
**Last updated:** [April 21, 2007, 8:08am UTC](https://www.ruby-forum.com/t/has-many-has-one-polymorphic-with-conditions/92596 "2007-04-21T08:08:04Z")

</div>

I’m looking for a way to make this work (I think the code is more explanatory at this point): THIS WORKS has\_many :images, :as =\> :imageable, :dependent =\> :destroy, :order =\> ‘position ASC’ @product.images =\> THIS …

---

## [Collapsible Hide/Show DIV](https://www.ruby-forum.com/t/collapsible-hide-show-div/92595)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [April 21, 2007, 7:33am UTC](https://www.ruby-forum.com/t/collapsible-hide-show-div/92595 "2007-04-21T07:33:57Z")

</div>

Hi there. I posted this before but wanted to change the subject. I want to have a collapsible div inside of a for loop. I’ve been messing around with it and could only get 1 item out of a few to be able to hide. I…

---

## [Site redesigned in one day with ruby on rails](https://www.ruby-forum.com/t/site-redesigned-in-one-day-with-ruby-on-rails/92593)

<div class="topic-metadata">

**Author:** [@rico](https://www.ruby-forum.com/u/rico)\
**Replies:** 0\
**Last updated:** [April 21, 2007, 4:45am UTC](https://www.ruby-forum.com/t/site-redesigned-in-one-day-with-ruby-on-rails/92593 "2007-04-21T04:45:29Z")

</div>

http://www.teenwag.com hard core ruby on rails programmers

---

## [Rails for Linux on zSeries](https://www.ruby-forum.com/t/rails-for-linux-on-zseries/92589)

<div class="topic-metadata">

**Author:** [@Julian\_ISKamil](https://www.ruby-forum.com/u/Julian_ISKamil)\
**Replies:** 0\
**Last updated:** [April 21, 2007, 4:04am UTC](https://www.ruby-forum.com/t/rails-for-linux-on-zseries/92589 "2007-04-21T04:04:27Z")

</div>

Has anybody attempted or successfully run Rails on zSeries Linux? Thanks. Julian I. Kamil removed\_email\_address@domain.invalid

---

## [\[ANN\] acts\_as\_comparable 1.1 released!](https://www.ruby-forum.com/t/ann-acts-as-comparable-1-1-released/92587)

<div class="topic-metadata">

**Author:** [@zdennis](https://www.ruby-forum.com/u/zdennis)\
**Replies:** 0\
**Last updated:** [April 21, 2007, 3:56am UTC](https://www.ruby-forum.com/t/ann-acts-as-comparable-1-1-released/92587 "2007-04-21T03:56:27Z")

</div>

acts\_as\_comparable 1.1 is released! acts\_as\_comparable is a plugin to allow you to easily compare ActiveRecord models. http://www.continuousthinking.com/2007/4/21/introducing-acts\_as\_comparable Zach D. http://www.co…

---

## [How to update element on view during onclick with RJS?](https://www.ruby-forum.com/t/how-to-update-element-on-view-during-onclick-with-rjs/92563)

<div class="topic-metadata">

**Author:** [@sneptune](https://www.ruby-forum.com/u/sneptune)\
**Replies:** 1\
**Last updated:** [April 21, 2007, 3:43am UTC](https://www.ruby-forum.com/t/how-to-update-element-on-view-during-onclick-with-rjs/92563 "2007-04-21T03:43:26Z")

</div>

Hi, I am trying to set up a drop down menu. When the item on the drop down list has been changed, I would like to display a textbox. Is there anyway to execute RJS during in onclick or onchange event of the select\_…

---

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

<div class="topic-metadata">

**Author:** [@Terry\_D](https://www.ruby-forum.com/u/Terry_D)\
**Replies:** 1\
**Last updated:** [April 21, 2007, 3:30am UTC](https://www.ruby-forum.com/t/problem-with-form-tag/92583 "2007-04-21T03:30:23Z")

</div>

Hi all! I’ve seen this problem in several places in the list, but none of the remedies suggested seem to be helping me much. I have a view like so: HELLO \<% form\_tag :action =\> “create” do %\> My pretty form! \<%=…

---

## [Helpers and html/code separation](https://www.ruby-forum.com/t/helpers-and-html-code-separation/92585)

<div class="topic-metadata">

**Author:** [@plambert](https://www.ruby-forum.com/u/plambert)\
**Replies:** 1\
**Last updated:** [April 21, 2007, 2:58am UTC](https://www.ruby-forum.com/t/helpers-and-html-code-separation/92585 "2007-04-21T02:58:22Z")

</div>

To what extent should one try to keep strings of HTML out of helper functions? Both .rhtml and helpers are in the view layer, so it would seem okay to include HTML in the helper function, which is after all trying to…

---

## [Fixtures ... a newbee mystery](https://www.ruby-forum.com/t/fixtures-a-newbee-mystery/92584)

<div class="topic-metadata">

**Author:** [@soroe](https://www.ruby-forum.com/u/soroe)\
**Replies:** 2\
**Last updated:** [April 21, 2007, 2:25am UTC](https://www.ruby-forum.com/t/fixtures-a-newbee-mystery/92584 "2007-04-21T02:25:12Z")

</div>

Hey Guys, I want to look at the source code for the fixtures method (used in loading data fixtures in the unit test framework.) I’ve searched through all of the files in the ruby folder and those in the rails applicat…

---

## [Should be a fairly simple activerecord question](https://www.ruby-forum.com/t/should-be-a-fairly-simple-activerecord-question/92581)

<div class="topic-metadata">

**Author:** [@mendake](https://www.ruby-forum.com/u/mendake)\
**Replies:** 2\
**Last updated:** [April 21, 2007, 1:17am UTC](https://www.ruby-forum.com/t/should-be-a-fairly-simple-activerecord-question/92581 "2007-04-21T01:17:17Z")

</div>

This should be very clear to me, but for some reason it’s not, and I can’t seem to find any examples that help me. My models looks like this: class Product \< ActiveRecord::Base has\_many :company\_products end class C…

---

## [Has\_many :through ... am I missing something here?](https://www.ruby-forum.com/t/has-many-through-am-i-missing-something-here/92577)

<div class="topic-metadata">

**Author:** [@Bryce](https://www.ruby-forum.com/u/Bryce)\
**Replies:** 3\
**Last updated:** [April 21, 2007, 12:55am UTC](https://www.ruby-forum.com/t/has-many-through-am-i-missing-something-here/92577 "2007-04-21T00:55:16Z")

</div>

I have three models. Admin, Stuff, Permission. Each admin can do lots of stuff, but only if they have permission. I have the following relationship set up: class Admin has\_many :stuffs, :through =\> :permissions end …

---

## [Column link to file, to do an file open or save as](https://www.ruby-forum.com/t/column-link-to-file-to-do-an-file-open-or-save-as/92578)

<div class="topic-metadata">

**Author:** [@idmkid](https://www.ruby-forum.com/u/idmkid)\
**Replies:** 1\
**Last updated:** [April 21, 2007, 12:42am UTC](https://www.ruby-forum.com/t/column-link-to-file-to-do-an-file-open-or-save-as/92578 "2007-04-21T00:42:15Z")

</div>

Is there an easy way to have a column in MySQL link to a file within Ruby on Rails so that when the user is looking at the website, they can click on the data in the column and have it link to a file and choose to dow…

---

## [Baffling undefined method](https://www.ruby-forum.com/t/baffling-undefined-method/92175)

<div class="topic-metadata">

**Author:** [@arjackson](https://www.ruby-forum.com/u/arjackson)\
**Replies:** 1\
**Last updated:** [April 20, 2007, 11:16pm UTC](https://www.ruby-forum.com/t/baffling-undefined-method/92175 "2007-04-20T23:16:09Z")

</div>

I have a model class Person \< CimHrdb … belongs\_to :local\_province, :foreign\_key =\> “person\_local\_province\_id”, :class\_name =\> “Province” … end (where CimHrdb extends some classes (with abstract\_class = true) that …

---

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

<div class="topic-metadata">

**Author:** [@spacechurro](https://www.ruby-forum.com/u/spacechurro)\
**Replies:** 0\
**Last updated:** [April 20, 2007, 10:56pm UTC](https://www.ruby-forum.com/t/problem-with-themes/92576 "2007-04-20T22:56:10Z")

</div>

i have updated my themes to work with rails 1.2.3 on my development machine… but the problem i am having is that when i try to run the same app on my production machine, i am getting the following error… (see below) d…

---

## [Looking for Ace Developer in Chicago](https://www.ruby-forum.com/t/looking-for-ace-developer-in-chicago/92572)

<div class="topic-metadata">

**Author:** [@martin](https://www.ruby-forum.com/u/martin)\
**Replies:** 0\
**Last updated:** [April 20, 2007, 10:00pm UTC](https://www.ruby-forum.com/t/looking-for-ace-developer-in-chicago/92572 "2007-04-20T22:00:56Z")

</div>

We are an early-stage startup with a great business plan, well- connected investors and board, and the seasoned management to execute on our plan. Our technology has been featured in SmartMoney magazine, National Pub…

---

## [Can you style form elements?](https://www.ruby-forum.com/t/can-you-style-form-elements/92570)

<div class="topic-metadata">

**Author:** [@dasch](https://www.ruby-forum.com/u/dasch)\
**Replies:** 3\
**Last updated:** [April 20, 2007, 9:36pm UTC](https://www.ruby-forum.com/t/can-you-style-form-elements/92570 "2007-04-20T21:36:54Z")

</div>

I have a small login partial, that is just 2 text\_field\_tags and a submit button… Is there a way to make them a little smaller? This is supposed to be a small partial right under the navigation bar, but whatever the d…

---

## [Manuals Site Down?](https://www.ruby-forum.com/t/manuals-site-down/92550)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 3\
**Last updated:** [April 20, 2007, 9:13pm UTC](https://www.ruby-forum.com/t/manuals-site-down/92550 "2007-04-20T21:13:49Z")

</div>

Hi all, I was trying to learn about Capistrano today, but the site with the manuals appears to be down. http://manuals.rubyonrails.com/read/book/17 Sorry if this message should not be here. I wasn’t sure where to r…

---

## [Group by issue](https://www.ruby-forum.com/t/group-by-issue/92559)

<div class="topic-metadata">

**Author:** [@dorelal](https://www.ruby-forum.com/u/dorelal)\
**Replies:** 1\
**Last updated:** [April 20, 2007, 9:00pm UTC](https://www.ruby-forum.com/t/group-by-issue/92559 "2007-04-20T21:00:48Z")

</div>

I have a Person model and a Phone model. A person can have any number of phones. A phone has two attributes: type and number. A phone type could be any of the followings: Home Work Mobile Fax Other A person can …

---

## [Putting fixtures into subdirectories](https://www.ruby-forum.com/t/putting-fixtures-into-subdirectories/61313)

<div class="topic-metadata">

**Author:** [@thuss](https://www.ruby-forum.com/u/thuss)\
**Replies:** 1\
**Last updated:** [April 20, 2007, 8:57pm UTC](https://www.ruby-forum.com/t/putting-fixtures-into-subdirectories/61313 "2007-04-20T20:57:59Z")

</div>

I want to organize my fixtures just like the namespace of my models. So for example if I have a model Company::Employee I’d like the fixture to be in fixtures/company/employees.yml. However, I can’t figure out how to …

---

## [Dumb question on environment variables](https://www.ruby-forum.com/t/dumb-question-on-environment-variables/92548)

<div class="topic-metadata">

**Author:** [@seeah](https://www.ruby-forum.com/u/seeah)\
**Replies:** 2\
**Last updated:** [April 20, 2007, 8:55pm UTC](https://www.ruby-forum.com/t/dumb-question-on-environment-variables/92548 "2007-04-20T20:55:48Z")

</div>

Umm - coming from a php world in another life, I’m looking for the Rails equivalent of the cgi environment variables (similar to http:// PHP: Predefined Variables - Manual). Specifically, what I’m really looking for a…

---

## [No caching of pages when called through AJAX?](https://www.ruby-forum.com/t/no-caching-of-pages-when-called-through-ajax/92562)

<div class="topic-metadata">

**Author:** [@Sebastian\_Winkler](https://www.ruby-forum.com/u/Sebastian_Winkler)\
**Replies:** 0\
**Last updated:** [April 20, 2007, 8:10pm UTC](https://www.ruby-forum.com/t/no-caching-of-pages-when-called-through-ajax/92562 "2007-04-20T20:10:18Z")

</div>

I would like to cache the result of an action I call through AJAX, but caching only seems to work when I access the action directly. Is there a way to force caching of pages even when they are called through AJAX? Th…

---

## [Text Extraction and Indexing](https://www.ruby-forum.com/t/text-extraction-and-indexing/92564)

<div class="topic-metadata">

**Author:** [@elliottcable](https://www.ruby-forum.com/u/elliottcable)\
**Replies:** 1\
**Last updated:** [April 20, 2007, 7:55pm UTC](https://www.ruby-forum.com/t/text-extraction-and-indexing/92564 "2007-04-20T19:55:39Z")

</div>

Long story short I am going to have to index and search uploaded files. They will be in Word document, Excel, pdf, and text format. So what is the best way to extract information in RoR so that I can place the needed …

---

## [RailsConf 2007 Scheduler](https://www.ruby-forum.com/t/railsconf-2007-scheduler/92561)

<div class="topic-metadata">

**Author:** [@Blizzo](https://www.ruby-forum.com/u/Blizzo)\
**Replies:** 0\
**Last updated:** [April 20, 2007, 7:04pm UTC](https://www.ruby-forum.com/t/railsconf-2007-scheduler/92561 "2007-04-20T19:04:34Z")

</div>

I wrote a quick little scheduling app for those of you going to RailsConf 2007. You can even compare schedules with others that are going with the key generated by the application. Blog Post: http://www.blizzo.com/?p=…

---

## [How to call controller from script/runner](https://www.ruby-forum.com/t/how-to-call-controller-from-script-runner/92560)

<div class="topic-metadata">

**Author:** [@BallS\_Donald\_A\_Jr\_S](https://www.ruby-forum.com/u/BallS_Donald_A_Jr_S)\
**Replies:** 0\
**Last updated:** [April 20, 2007, 6:30pm UTC](https://www.ruby-forum.com/t/how-to-call-controller-from-script-runner/92560 "2007-04-20T18:30:31Z")

</div>

I’d like to call a controller method or three from a script invoked via script/runner so that I can manually populate my page cache. How would I go about doing so? donald

---

## [Problems returning collection\_select info to controller](https://www.ruby-forum.com/t/problems-returning-collection-select-info-to-controller/92556)

<div class="topic-metadata">

**Author:** [@lac](https://www.ruby-forum.com/u/lac)\
**Replies:** 0\
**Last updated:** [April 20, 2007, 5:59pm UTC](https://www.ruby-forum.com/t/problems-returning-collection-select-info-to-controller/92556 "2007-04-20T17:59:29Z")

</div>

Hi, I’ve been working with rails for a couple of months now and I’m beginning to understand how things work but this has got me baffled. I want to return the user.id from a selection of a list of user names. I follo…

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

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