# Rails

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

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

---

## [Apache mongrel and IIS..hosting asp and rails on same server](https://www.ruby-forum.com/t/apache-mongrel-and-iis-hosting-asp-and-rails-on-same-server/156184)

<div class="topic-metadata">

**Author:** [@ankit2584](https://www.ruby-forum.com/u/ankit2584)\
**Replies:** 0\
**Last updated:** [December 22, 2008, 10:48am UTC](https://www.ruby-forum.com/t/apache-mongrel-and-iis-hosting-asp-and-rails-on-same-server/156184 "2008-12-22T10:48:29Z")

</div>

Hello, I am running ASP.NET on IIS and on the same server am running rails. I have started multiple instances of mongrel as service and apache does the load balancing. THE PROBLEM IS i want to run the ASP.NET website…

---

## [Confused with naming conventions](https://www.ruby-forum.com/t/confused-with-naming-conventions/156149)

<div class="topic-metadata">

**Author:** [@cojones](https://www.ruby-forum.com/u/cojones)\
**Replies:** 5\
**Last updated:** [December 22, 2008, 10:22am UTC](https://www.ruby-forum.com/t/confused-with-naming-conventions/156149 "2008-12-22T10:22:34Z")

</div>

Hey, I’m currently reading “Agile Web D.” and doing the tutorial (Depot). It says that the naming conventions are that the Controller needs to be singular (even though I found other naming conventions on the net, any…

---

## [MySpace.com clone using Ruby on Rails. Is it possible?](https://www.ruby-forum.com/t/myspace-com-clone-using-ruby-on-rails-is-it-possible/156045)

<div class="topic-metadata">

**Author:** [@lekvarnik](https://www.ruby-forum.com/u/lekvarnik)\
**Replies:** 7\
**Last updated:** [December 22, 2008, 9:58am UTC](https://www.ruby-forum.com/t/myspace-com-clone-using-ruby-on-rails-is-it-possible/156045 "2008-12-22T09:58:09Z")

</div>

Hi, I wanna know wich of the well known frameworks is the best choice for myspace-clone community website. CakePHP ? Zend Framework? Symfony? RubyOnRails :)? Django? or maybe Kohana? Prado? or something else? Is i…

---

## ["undefined method"-error](https://www.ruby-forum.com/t/undefined-method-error/155968)

<div class="topic-metadata">

**Author:** [@Daniel\_SSSS\_pke](https://www.ruby-forum.com/u/Daniel_SSSS_pke)\
**Replies:** 3\
**Last updated:** [December 22, 2008, 8:37am UTC](https://www.ruby-forum.com/t/undefined-method-error/155968 "2008-12-22T08:37:55Z")

</div>

Hi, I’m new to rails and so far think it’s great, but I’m having some major issues with a many-through relationship. There are three tables: reporttemplates articlestemplates\_reporttemplates (additional attribute “o…

---

## [How to reference lookup data in DB table - by ID? (or should the ID not be relied upon)](https://www.ruby-forum.com/t/how-to-reference-lookup-data-in-db-table-by-id-or-should-the-id-not-be-relied-upon/156154)

<div class="topic-metadata">

**Author:** [@greg](https://www.ruby-forum.com/u/greg)\
**Replies:** 4\
**Last updated:** [December 22, 2008, 7:15am UTC](https://www.ruby-forum.com/t/how-to-reference-lookup-data-in-db-table-by-id-or-should-the-id-not-be-relied-upon/156154 "2008-12-22T07:15:26Z")

</div>

Hi, What’s a good approach for referencing lookup/reference data (static) that one has loaded in a reference table. Say for example “tax codes”, which pretty much have just the database ID and then a description fie…

---

## [Noob - added a column via migration but get error on insert](https://www.ruby-forum.com/t/noob-added-a-column-via-migration-but-get-error-on-insert/156057)

<div class="topic-metadata">

**Author:** [@zakifataya](https://www.ruby-forum.com/u/zakifataya)\
**Replies:** 6\
**Last updated:** [December 22, 2008, 5:40am UTC](https://www.ruby-forum.com/t/noob-added-a-column-via-migration-but-get-error-on-insert/156057 "2008-12-22T05:40:10Z")

</div>

Hello! I’m very new to ruby and ruby on rails. I’m following a tutorial found here: I’m running NetBeans as an IDE, with jruby, rails and MySQL. Here is the basic rundown of what I have done Created db via Rake …

---

## [Accessing Member Object Methods](https://www.ruby-forum.com/t/accessing-member-object-methods/156124)

<div class="topic-metadata">

**Author:** [@idflyfish](https://www.ruby-forum.com/u/idflyfish)\
**Replies:** 2\
**Last updated:** [December 22, 2008, 5:37am UTC](https://www.ruby-forum.com/t/accessing-member-object-methods/156124 "2008-12-22T05:37:15Z")

</div>

Hello, I am hoping one of you Rails gurus can help a poor newb. I have a User model and a Contact model. The user Model has\_one :contact. I would like to use the users/new view to create a new user as well as the r…

---

## [Is there an activerecord method like "FIND EXISTING OR CREATE NEW IF NONE FOUND"?](https://www.ruby-forum.com/t/is-there-an-activerecord-method-like-find-existing-or-create-new-if-none-found/156172)

<div class="topic-metadata">

**Author:** [@greg](https://www.ruby-forum.com/u/greg)\
**Replies:** 2\
**Last updated:** [December 22, 2008, 5:20am UTC](https://www.ruby-forum.com/t/is-there-an-activerecord-method-like-find-existing-or-create-new-if-none-found/156172 "2008-12-22T05:20:52Z")

</div>

Just wondering if rails has a method to look for an existing record and return it, but if it’s not existing then create a new record. (i.e. “FIND EXISTING OR CREATE NEW IF NONE FOUND”?) Then when finished updating …

---

## [Form issues : partials + AJAX vs simple JS / separate views + form\_fors vs one view and fields\_fors](https://www.ruby-forum.com/t/form-issues-partials-ajax-vs-simple-js-separate-views-form-fors-vs-one-view-and-fields-fors/156161)

<div class="topic-metadata">

**Author:** [@iKs](https://www.ruby-forum.com/u/iKs)\
**Replies:** 1\
**Last updated:** [December 22, 2008, 4:53am UTC](https://www.ruby-forum.com/t/form-issues-partials-ajax-vs-simple-js-separate-views-form-fors-vs-one-view-and-fields-fors/156161 "2008-12-22T04:53:57Z")

</div>

Hi all! I am coding an application that keeps track of request to create college courses. An identified user (logically a faculty member) completes a form indicating the name of the course, the professor in charge, t…

---

## [Upload an image](https://www.ruby-forum.com/t/upload-an-image/156165)

<div class="topic-metadata">

**Author:** [@Ishara\_G](https://www.ruby-forum.com/u/Ishara_G)\
**Replies:** 2\
**Last updated:** [December 22, 2008, 3:52am UTC](https://www.ruby-forum.com/t/upload-an-image/156165 "2008-12-22T03:52:33Z")

</div>

does anyone know any code for upload images and display it on the web page…withoutusing any plugins,i have found more code segments but they weren’t work,plz if anyone know send me,iv been working with rubygem 1.3.1v…

---

## [Paperclip](https://www.ruby-forum.com/t/paperclip/156006)

<div class="topic-metadata">

**Author:** [@johny](https://www.ruby-forum.com/u/johny)\
**Replies:** 5\
**Last updated:** [December 22, 2008, 2:41am UTC](https://www.ruby-forum.com/t/paperclip/156006 "2008-12-22T02:41:37Z")

</div>

anyone can help me to use paperclip plugins…I have a problem using it.

---

## [What's the maximum storage size of a Session?](https://www.ruby-forum.com/t/whats-the-maximum-storage-size-of-a-session/156162)

<div class="topic-metadata">

**Author:** [@tharrisx](https://www.ruby-forum.com/u/tharrisx)\
**Replies:** 4\
**Last updated:** [December 22, 2008, 2:39am UTC](https://www.ruby-forum.com/t/whats-the-maximum-storage-size-of-a-session/156162 "2008-12-22T02:39:17Z")

</div>

Hi there, does anyone know (for sure) how much data we can technically store in and later retrieve from a Rails session? The other option to store and retrieve a really big chunk of data seems to be a Marshal dump+lo…

---

## [Guarding "params" (for security reasons)](https://www.ruby-forum.com/t/guarding-params-for-security-reasons/156107)

<div class="topic-metadata">

**Author:** [@thabenksta](https://www.ruby-forum.com/u/thabenksta)\
**Replies:** 7\
**Last updated:** [December 22, 2008, 1:15am UTC](https://www.ruby-forum.com/t/guarding-params-for-security-reasons/156107 "2008-12-22T01:15:58Z")

</div>

What’s the most recommended technique for guarding Rails HTTP params? For example, something like this can obviously be dangerous (e.g. SQL injection) user\_account = UserAccount.find(:first, :conditions =\> \[“username …

---

## [How can I get the CONSOLE (./script/console) to automatically detect/handle changes to code that I c](https://www.ruby-forum.com/t/how-can-i-get-the-console-script-console-to-automatically-detect-handle-changes-to-code-that-i-c/156160)

<div class="topic-metadata">

**Author:** [@greg](https://www.ruby-forum.com/u/greg)\
**Replies:** 1\
**Last updated:** [December 22, 2008, 12:29am UTC](https://www.ruby-forum.com/t/how-can-i-get-the-console-script-console-to-automatically-detect-handle-changes-to-code-that-i-c/156160 "2008-12-22T00:29:58Z")

</div>

Hi, Is there way to get the CONSOLE to automatically detect changes to code and re-act accordingly? If I’m using the console currently I see that I have to close the console first and restart. I see one can type …

---

## [Help: session is deleted, but after the view is rendered](https://www.ruby-forum.com/t/help-session-is-deleted-but-after-the-view-is-rendered/156159)

<div class="topic-metadata">

**Author:** [@merrick](https://www.ruby-forum.com/u/merrick)\
**Replies:** 2\
**Last updated:** [December 22, 2008, 12:22am UTC](https://www.ruby-forum.com/t/help-session-is-deleted-but-after-the-view-is-rendered/156159 "2008-12-22T00:22:44Z")

</div>

Scenario: user is logged in, they click the logout button, which fires the action method Sessions#destroy and the view. The problem i’m having is that even tho the session is deleted, the first go round it still displ…

---

## [RMagick installed BUT "no such file to load -- RMagick"](https://www.ruby-forum.com/t/rmagick-installed-but-no-such-file-to-load-rmagick/135233)

<div class="topic-metadata">

**Author:** [@hinsen](https://www.ruby-forum.com/u/hinsen)\
**Replies:** 5\
**Last updated:** [December 22, 2008, 12:09am UTC](https://www.ruby-forum.com/t/rmagick-installed-but-no-such-file-to-load-rmagick/135233 "2008-12-22T00:09:03Z")

</div>

Hi. I have ImageMagick and RMagick successfully installed: #gem list | grep -i rmagick rmagick (2.3.0) Unfourtunately, my RoR project will still not start. I always see the following error in my apache error logs: \[…

---

## [How to order by a field in the belongs\_to association](https://www.ruby-forum.com/t/how-to-order-by-a-field-in-the-belongs-to-association/156151)

<div class="topic-metadata">

**Author:** [@oldbug](https://www.ruby-forum.com/u/oldbug)\
**Replies:** 4\
**Last updated:** [December 21, 2008, 11:41pm UTC](https://www.ruby-forum.com/t/how-to-order-by-a-field-in-the-belongs-to-association/156151 "2008-12-21T23:41:18Z")

</div>

Consider this: class Document has\_many :revisions end class Revision belongs\_to :document end Suppose I wanted to query all records in my revisions table, but I wanted to order the results by document.number. W…

---

## [Rails & dbd-odbc error](https://www.ruby-forum.com/t/rails-dbd-odbc-error/156150)

<div class="topic-metadata">

**Author:** [@biot023](https://www.ruby-forum.com/u/biot023)\
**Replies:** 4\
**Last updated:** [December 21, 2008, 10:54pm UTC](https://www.ruby-forum.com/t/rails-dbd-odbc-error/156150 "2008-12-21T22:54:58Z")

</div>

Hi – I’m trying to get my rails app on OSX 10.5.5 to connect to SQL Server with ruby dbi, and am getting the following error: /usr/local/lib/ruby/gems/1.8/gems/dbd-odbc-0.2.4/lib/dbd/ODBC.rb:57: warning: already initi…

---

## [But, my local variable 'product' is defined!](https://www.ruby-forum.com/t/but-my-local-variable-product-is-defined/156148)

<div class="topic-metadata">

**Author:** [@ryanoverton](https://www.ruby-forum.com/u/ryanoverton)\
**Replies:** 1\
**Last updated:** [December 21, 2008, 6:17pm UTC](https://www.ruby-forum.com/t/but-my-local-variable-product-is-defined/156148 "2008-12-21T18:17:56Z")

</div>

Following a tutorial here and I had it pointed out to me that it may be a slightly older version (Agile web development v2) so I’m hoping my problem is just sytax that one of the gurus here can point out… I have a vie…

---

## [Adding Form Object dinamically](https://www.ruby-forum.com/t/adding-form-object-dinamically/156137)

<div class="topic-metadata">

**Author:** [@enzor](https://www.ruby-forum.com/u/enzor)\
**Replies:** 1\
**Last updated:** [December 21, 2008, 6:07pm UTC](https://www.ruby-forum.com/t/adding-form-object-dinamically/156137 "2008-12-21T18:07:52Z")

</div>

I just have the need to add objects in a form in a dinamic way. i just give an example: i have a dropdown box and a text field, and the final user have to add as many copies as they wants of this dropdowbn box and tex…

---

## [Crontad+linux](https://www.ruby-forum.com/t/crontad-linux/156146)

<div class="topic-metadata">

**Author:** [@srijith](https://www.ruby-forum.com/u/srijith)\
**Replies:** 1\
**Last updated:** [December 21, 2008, 5:55pm UTC](https://www.ruby-forum.com/t/crontad-linux/156146 "2008-12-21T17:55:35Z")

</div>

Hi all I need to run a method every day by 11:55PM,so i dont know how to write cronjob for this,is any one knows plz help

---

## [Controller links and login form](https://www.ruby-forum.com/t/controller-links-and-login-form/156144)

<div class="topic-metadata">

**Author:** [@sobert](https://www.ruby-forum.com/u/sobert)\
**Replies:** 1\
**Last updated:** [December 21, 2008, 5:25pm UTC](https://www.ruby-forum.com/t/controller-links-and-login-form/156144 "2008-12-21T17:25:40Z")

</div>

Hello, I currently have two workarounds in my rails app : The first, and I think the most simple : I’m unable to get links for controllers made with script/generate controllers. I made an “index” controllers, and a “…

---

## [Spam in my comments](https://www.ruby-forum.com/t/spam-in-my-comments/156068)

<div class="topic-metadata">

**Author:** [@bingobob](https://www.ruby-forum.com/u/bingobob)\
**Replies:** 5\
**Last updated:** [December 21, 2008, 4:51pm UTC](https://www.ruby-forum.com/t/spam-in-my-comments/156068 "2008-12-21T16:51:52Z")

</div>

I’ve started to get problems with my rails site, I’ve had loads of comments containing stuff like this… http://pastie.org/343379 What can I do (have taken the site down for now). I’m after a really simple solution, c…

---

## [SELECT within SELECT](https://www.ruby-forum.com/t/select-within-select/156142)

<div class="topic-metadata">

**Author:** [@railslist](https://www.ruby-forum.com/u/railslist)\
**Replies:** 1\
**Last updated:** [December 21, 2008, 4:02pm UTC](https://www.ruby-forum.com/t/select-within-select/156142 "2008-12-21T16:02:28Z")

</div>

I am trying to create a drop down of categories and that same drop down should also have subcategories of currently selected category. for category drop down I use something like \<%= collection\_select(:category, :id, …

---

## [RoR IDE](https://www.ruby-forum.com/t/ror-ide/156101)

<div class="topic-metadata">

**Author:** [@Schalk\_N](https://www.ruby-forum.com/u/Schalk_N)\
**Replies:** 12\
**Last updated:** [December 21, 2008, 1:52pm UTC](https://www.ruby-forum.com/t/ror-ide/156101 "2008-12-21T13:52:56Z")

</div>

Hi there everyone, I was wondering, what would you consider to be the best RoR IDE especially for Windows? I have been using Aptana with RadRails for a while now and for the most part it is working well. I have tried …

---

## [Capistrano\_colors version 0.2.0 has been released!](https://www.ruby-forum.com/t/capistrano-colors-version-0-2-0-has-been-released/156140)

<div class="topic-metadata">

**Author:** [@stjernstrom](https://www.ruby-forum.com/u/stjernstrom)\
**Replies:** 0\
**Last updated:** [December 21, 2008, 1:02pm UTC](https://www.ruby-forum.com/t/capistrano-colors-version-0-2-0-has-been-released/156140 "2008-12-21T13:02:36Z")

</div>

I got tired of viewing capistranos massive output so i’ve created this simple gem that colorizes capistranos output. http://rubyforge.org/projects/capistranocolor/ GitHub - stjernstrom/capistrano\_colors: Colorize your…

---

## [JOBS: Rails and Music](https://www.ruby-forum.com/t/jobs-rails-and-music/156139)

<div class="topic-metadata">

**Author:** [@cwicke](https://www.ruby-forum.com/u/cwicke)\
**Replies:** 0\
**Last updated:** [December 21, 2008, 1:02pm UTC](https://www.ruby-forum.com/t/jobs-rails-and-music/156139 "2008-12-21T13:02:36Z")

</div>

We are a really cool, new music company set to launch our website next month. We are all passionate creators that have been embedded in the LA music scene for a long time and are ready to take our knowledge and passi…

---

## [How to set scaffold inmulti directory controller in rails2.x](https://www.ruby-forum.com/t/how-to-set-scaffold-inmulti-directory-controller-in-rails2-x/156008)

<div class="topic-metadata">

**Author:** [@nearcruise](https://www.ruby-forum.com/u/nearcruise)\
**Replies:** 4\
**Last updated:** [December 21, 2008, 7:18am UTC](https://www.ruby-forum.com/t/how-to-set-scaffold-inmulti-directory-controller-in-rails2-x/156008 "2008-12-21T07:18:43Z")

</div>

Hi : If I want to show http://localhost/admin/sales ,not http://localhost/saqles, I use command ruby script/generate scaffold admin/Sale,but it is failed. How to do it please? thanks. cruise

---

## [Unit test fails, but shouldnt have](https://www.ruby-forum.com/t/unit-test-fails-but-shouldnt-have/156128)

<div class="topic-metadata">

**Author:** [@merrick](https://www.ruby-forum.com/u/merrick)\
**Replies:** 8\
**Last updated:** [December 21, 2008, 7:14am UTC](https://www.ruby-forum.com/t/unit-test-fails-but-shouldnt-have/156128 "2008-12-21T07:14:02Z")

</div>

Hi, I have a one to many relationship ( stories & votes ), that i wish to test via a unit test. In development everything works great, votes ends up w/ the correct story\_id and the relationship is great ( i can Vote.…

---

## [Easy Puzzle Mountain problem](https://www.ruby-forum.com/t/easy-puzzle-mountain-problem/90345)

<div class="topic-metadata">

**Author:** [@wtt](https://www.ruby-forum.com/u/wtt)\
**Replies:** 21\
**Last updated:** [December 21, 2008, 6:11am UTC](https://www.ruby-forum.com/t/easy-puzzle-mountain-problem/90345 "2008-12-21T06:11:38Z")

</div>

Hello everyone, Did you guys work on UTF-8 before? If so, could you take a look at the problem below. I’d like to hear your thoughts about tackling this kind of problems. It is about the software internalization. I c…

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

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