# Rails

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

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

---

## [Anonymous modules have no name to be referenced by](https://www.ruby-forum.com/t/anonymous-modules-have-no-name-to-be-referenced-by/113678)

<div class="topic-metadata">

**Author:** [@Korosu\_Itai](https://www.ruby-forum.com/u/Korosu_Itai)\
**Replies:** 3\
**Last updated:** [September 4, 2007, 1:08pm UTC](https://www.ruby-forum.com/t/anonymous-modules-have-no-name-to-be-referenced-by/113678 "2007-09-04T13:08:46Z")

</div>

Hello! This is my first time with RoR and web development :stuck\_out\_tongue: I’m trying to run the “hello world” script from the book Agile Wev Development with Rails… I’ve created my “SayController”: class SayContro…

---

## [Find elements of an array on another](https://www.ruby-forum.com/t/find-elements-of-an-array-on-another/113699)

<div class="topic-metadata">

**Author:** [@Carlos\_Fonseca](https://www.ruby-forum.com/u/Carlos_Fonseca)\
**Replies:** 2\
**Last updated:** [September 4, 2007, 12:57pm UTC](https://www.ruby-forum.com/t/find-elements-of-an-array-on-another/113699 "2007-09-04T12:57:43Z")

</div>

Hi I have two arrays of items, and I want to cycle one and see if its items are on the other one, but I can’t find out how to do it… I’ve been trying to do something like this @a = Item.find(:all, :conditions =\> “nam…

---

## [\[ROR\]\[CAPISTRANO\] From windows to a linux server](https://www.ruby-forum.com/t/ror-capistrano-from-windows-to-a-linux-server/113732)

<div class="topic-metadata">

**Author:** [@Roustan\_GaSSSSl](https://www.ruby-forum.com/u/Roustan_GaSSSSl)\
**Replies:** 0\
**Last updated:** [September 4, 2007, 12:50pm UTC](https://www.ruby-forum.com/t/ror-capistrano-from-windows-to-a-linux-server/113732 "2007-09-04T12:50:41Z")

</div>

Hello, I have some troubles using capistrano. My configuration is: a client where I use capistrano 2.0 (win32 platform) precompiled ruby version : 1.8.5 a server where I want to deploy my application (linux/ubuntu …

---

## [How to "New" an array of Hashes](https://www.ruby-forum.com/t/how-to-new-an-array-of-hashes/113634)

<div class="topic-metadata">

**Author:** [@sjf\_control](https://www.ruby-forum.com/u/sjf_control)\
**Replies:** 8\
**Last updated:** [September 4, 2007, 12:23pm UTC](https://www.ruby-forum.com/t/how-to-new-an-array-of-hashes/113634 "2007-09-04T12:23:38Z")

</div>

I am creatinig a “constant” array containing hashes. Then, in the code, I create a new array based on the constant array. The hashes in the new array are then manipulated in the code. Here is some psudo- code showing …

---

## [Update multiple records in the same table](https://www.ruby-forum.com/t/update-multiple-records-in-the-same-table/113621)

<div class="topic-metadata">

**Author:** [@daborg69](https://www.ruby-forum.com/u/daborg69)\
**Replies:** 3\
**Last updated:** [September 4, 2007, 12:18pm UTC](https://www.ruby-forum.com/t/update-multiple-records-in-the-same-table/113621 "2007-09-04T12:18:37Z")

</div>

Hey, Sorry to ask this, but I’m really confused! I have an app to handle guest lists. When a user wants to edit a list, I create a one form with fields for each guest to make it easier to update all in one go. Like t…

---

## [Routing error with nested resources](https://www.ruby-forum.com/t/routing-error-with-nested-resources/113725)

<div class="topic-metadata">

**Author:** [@biot023](https://www.ruby-forum.com/u/biot023)\
**Replies:** 1\
**Last updated:** [September 4, 2007, 11:50am UTC](https://www.ruby-forum.com/t/routing-error-with-nested-resources/113725 "2007-09-04T11:50:06Z")

</div>

Hi – I have a routes.rb file with the following in it: map.resource :admin do |admin| admin.resources :users admin.resources :clients do |client| client.resources :client\_properties end admin.re…

---

## [Problem installing RMagick gem](https://www.ruby-forum.com/t/problem-installing-rmagick-gem/113692)

<div class="topic-metadata">

**Author:** [@danielb](https://www.ruby-forum.com/u/danielb)\
**Replies:** 1\
**Last updated:** [September 4, 2007, 11:36am UTC](https://www.ruby-forum.com/t/problem-installing-rmagick-gem/113692 "2007-09-04T11:36:05Z")

</div>

Hi, I have problems installing problem installing the RMagick gem. My environment: winXP instantrails 1.4 installed ImageMagick-6.3.0-7-Q8-windows-dll.exe I have problems installing the gem: cmd I’m running: gem i…

---

## [Multip;e upload](https://www.ruby-forum.com/t/multip-e-upload/113723)

<div class="topic-metadata">

**Author:** [@rajgerman](https://www.ruby-forum.com/u/rajgerman)\
**Replies:** 0\
**Last updated:** [September 4, 2007, 11:35am UTC](https://www.ruby-forum.com/t/multip-e-upload/113723 "2007-09-04T11:35:26Z")

</div>

Hey, I have managed to successfully implement image upload using the attachment\_fu plugin. I require to upload multiple images, possibly each with a different title and category. I have provided my code below. I woul…

---

## [Non-database data infrastructure](https://www.ruby-forum.com/t/non-database-data-infrastructure/113666)

<div class="topic-metadata">

**Author:** [@dbbd](https://www.ruby-forum.com/u/dbbd)\
**Replies:** 6\
**Last updated:** [September 4, 2007, 10:52am UTC](https://www.ruby-forum.com/t/non-database-data-infrastructure/113666 "2007-09-04T10:52:21Z")

</div>

I’ve just completed my first exercise of RoR. Now I need to decide if this is the right tool for the application I have in mind. The problem is that as far as I can tell, RoR relies on the underlying data coming from…

---

## [Where do I put my global enviroment variables?](https://www.ruby-forum.com/t/where-do-i-put-my-global-enviroment-variables/113675)

<div class="topic-metadata">

**Author:** [@MarcS](https://www.ruby-forum.com/u/MarcS)\
**Replies:** 10\
**Last updated:** [September 4, 2007, 8:50am UTC](https://www.ruby-forum.com/t/where-do-i-put-my-global-enviroment-variables/113675 "2007-09-04T08:50:39Z")

</div>

Hi I’m not sure where in my script I would put my global enviroment variables and when to load them. I would like to create a database table that stores some applications settings. For example the maximum allowed si…

---

## [Rjs not working only In IE](https://www.ruby-forum.com/t/rjs-not-working-only-in-ie/113709)

<div class="topic-metadata">

**Author:** [@veeraa2003](https://www.ruby-forum.com/u/veeraa2003)\
**Replies:** 0\
**Last updated:** [September 4, 2007, 8:00am UTC](https://www.ruby-forum.com/t/rjs-not-working-only-in-ie/113709 "2007-09-04T08:00:56Z")

</div>

HI folks, I rendered a rjs file in my rails controller action like this… render :action=\>‘station\_marker\_display’ Where station\_marker\_display.rjs have the code like this … page.call “map.closeInfoWindow” page.call …

---

## [Http://wiki.rubyonrails.org/rails](https://www.ruby-forum.com/t/http-wiki-rubyonrails-org-rails/113690)

<div class="topic-metadata">

**Author:** [@adharma](https://www.ruby-forum.com/u/adharma)\
**Replies:** 1\
**Last updated:** [September 4, 2007, 6:47am UTC](https://www.ruby-forum.com/t/http-wiki-rubyonrails-org-rails/113690 "2007-09-04T06:47:50Z")

</div>

The searchfield leads to porntube. ~a

---

## [Whats the best way to do this](https://www.ruby-forum.com/t/whats-the-best-way-to-do-this/113694)

<div class="topic-metadata">

**Author:** [@Jables](https://www.ruby-forum.com/u/Jables)\
**Replies:** 1\
**Last updated:** [September 4, 2007, 6:00am UTC](https://www.ruby-forum.com/t/whats-the-best-way-to-do-this/113694 "2007-09-04T06:00:48Z")

</div>

I am adding a forum to my rails app, huge number of controllers, views, models, and tables. What is best practice here? Just add all the controllers, etc to my current app? Modularize all the controllers/models/vie…

---

## [Runtime pluggable models?](https://www.ruby-forum.com/t/runtime-pluggable-models/113662)

<div class="topic-metadata">

**Author:** [@elliterate](https://www.ruby-forum.com/u/elliterate)\
**Replies:** 2\
**Last updated:** [September 4, 2007, 4:22am UTC](https://www.ruby-forum.com/t/runtime-pluggable-models/113662 "2007-09-04T04:22:42Z")

</div>

Hey list, My employers (and I) develop an application that is deployed for many different businesses, and whilst we provide our functionality as a service hosted on our own servers, we are still required to integrate…

---

## [Some basic questions](https://www.ruby-forum.com/t/some-basic-questions/113636)

<div class="topic-metadata">

**Author:** [@vapor](https://www.ruby-forum.com/u/vapor)\
**Replies:** 13\
**Last updated:** [September 4, 2007, 4:08am UTC](https://www.ruby-forum.com/t/some-basic-questions/113636 "2007-09-04T04:08:40Z")

</div>

I have a text area in which I type on multiple lines…but when I display it, it prints whole text in one line…how can I solve that? Datatype is TEXT I can see a list of all posts at …post/ with index method but I w…

---

## [Invite from Ben Askins (ben.askins@gmail.com)](https://www.ruby-forum.com/t/invite-from-ben-askins-ben-askins-gmail-com/113701)

<div class="topic-metadata">

**Author:** [@Ben\_Askins](https://www.ruby-forum.com/u/Ben_Askins)\
**Replies:** 1\
**Last updated:** [September 4, 2007, 4:06am UTC](https://www.ruby-forum.com/t/invite-from-ben-askins-ben-askins-gmail-com/113701 "2007-09-04T04:06:40Z")

</div>

BenAskins (removed\_email\_address@domain.invalid) has invited you as a friend on Quechup… …the social networking platform sweeping the globe Go to: to accept Ben’s invite You can use Quechup to meet new people, catc…

---

## ["Loading Image"-Image](https://www.ruby-forum.com/t/loading-image-image/75661)

<div class="topic-metadata">

**Author:** [@Henrik\_Jensen](https://www.ruby-forum.com/u/Henrik_Jensen)\
**Replies:** 2\
**Last updated:** [September 4, 2007, 2:58am UTC](https://www.ruby-forum.com/t/loading-image-image/75661 "2007-09-04T02:58:11Z")

</div>

So - I really need some help on this guys (and girls?) :slight\_smile: I have a Image gallery which, by it’s nature, requires to load a lot of images at the same time. Instead of just showing an empty place, and some t…

---

## [Percent Completion with an Ajax Call](https://www.ruby-forum.com/t/percent-completion-with-an-ajax-call/113689)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [September 4, 2007, 2:00am UTC](https://www.ruby-forum.com/t/percent-completion-with-an-ajax-call/113689 "2007-09-04T02:00:30Z")

</div>

Hi, I have a ‘rails-based’ search engine that displays the results of an ActiveRecord call as a collection rows of results (pretty standard stuff w/ rails). e.g. a user can search for “chunky bacon” and they might ge…

---

## [Physical path the public directory](https://www.ruby-forum.com/t/physical-path-the-public-directory/113688)

<div class="topic-metadata">

**Author:** [@eggie5](https://www.ruby-forum.com/u/eggie5)\
**Replies:** 2\
**Last updated:** [September 4, 2007, 12:02am UTC](https://www.ruby-forum.com/t/physical-path-the-public-directory/113688 "2007-09-04T00:02:23Z")

</div>

How, from my controller, can I get the filesystem path to my rails app’s ‘public directory’? e.g.: /users/eggie5/sites/rails\_app/public

---

## [Template Root in components](https://www.ruby-forum.com/t/template-root-in-components/113687)

<div class="topic-metadata">

**Author:** [@Jables](https://www.ruby-forum.com/u/Jables)\
**Replies:** 0\
**Last updated:** [September 3, 2007, 11:23pm UTC](https://www.ruby-forum.com/t/template-root-in-components/113687 "2007-09-03T23:23:21Z")

</div>

Does anyone know how to manipulate routing when using components. I know you can set the root to your components directory by putting a “uses\_component\_template\_root” at the top of your controller in a component. Tha…

---

## [ActiveRecord question - how to find owners of at least one c](https://www.ruby-forum.com/t/activerecord-question-how-to-find-owners-of-at-least-one-c/113683)

<div class="topic-metadata">

**Author:** [@rykkers](https://www.ruby-forum.com/u/rykkers)\
**Replies:** 0\
**Last updated:** [September 3, 2007, 10:23pm UTC](https://www.ruby-forum.com/t/activerecord-question-how-to-find-owners-of-at-least-one-c/113683 "2007-09-03T22:23:10Z")

</div>

Hopefully the subject is clear enough. Let’s say I’ve got two tables: create\_table :bands do | b | b.column :name, :string end create\_table :concerts do | c | c.column :where, :string c.column :when, :date c.colu…

---

## [Change the datatype of an attribute?](https://www.ruby-forum.com/t/change-the-datatype-of-an-attribute/113681)

<div class="topic-metadata">

**Author:** [@chadh](https://www.ruby-forum.com/u/chadh)\
**Replies:** 0\
**Last updated:** [September 3, 2007, 10:10pm UTC](https://www.ruby-forum.com/t/change-the-datatype-of-an-attribute/113681 "2007-09-03T22:10:37Z")

</div>

Hey everyone I’m building an application that is using a mySQL SET datatype sad The problem is that ActiveRecord thinks this is a date! Here’s the relevant output from Model.columns: #\<ActiveRecord::ConnectionAdapter…

---

## [Hash\_cache a bogus function that never worked?](https://www.ruby-forum.com/t/hash-cache-a-bogus-function-that-never-worked/113582)

<div class="topic-metadata">

**Author:** [@HSjoseph\_S](https://www.ruby-forum.com/u/HSjoseph_S)\
**Replies:** 5\
**Last updated:** [September 3, 2007, 9:53pm UTC](https://www.ruby-forum.com/t/hash-cache-a-bogus-function-that-never-worked/113582 "2007-09-03T21:53:10Z")

</div>

Hi, I’ve been investigating various caching methods provided by Rail. I first looked at the hash\_cache module and function. In testing it, I noticed it wasn’t actually caching anything. Then looking at the source cod…

---

## [Simple select question](https://www.ruby-forum.com/t/simple-select-question/113659)

<div class="topic-metadata">

**Author:** [@cmaxvv](https://www.ruby-forum.com/u/cmaxvv)\
**Replies:** 6\
**Last updated:** [September 3, 2007, 8:30pm UTC](https://www.ruby-forum.com/t/simple-select-question/113659 "2007-09-03T20:30:03Z")

</div>

Currently i’m getting all the stories that belong to a given article, and listing them, with for story in @article.story the usual sort of thing, right? I want to add a condition, that only selects stories where the …

---

## [Relationing has\_many, belongs\_to](https://www.ruby-forum.com/t/relationing-has-many-belongs-to/113632)

<div class="topic-metadata">

**Author:** [@eagoweb](https://www.ruby-forum.com/u/eagoweb)\
**Replies:** 7\
**Last updated:** [September 3, 2007, 7:53pm UTC](https://www.ruby-forum.com/t/relationing-has-many-belongs-to/113632 "2007-09-03T19:53:00Z")

</div>

Hello, i want to know if i am relationing fine, because i am having problems,i have 2 models, one for members and other to relate some members to this: class Member \< ActiveRecord::Base has\_many :matrix, :foreign\_key…

---

## [Auto submit a form](https://www.ruby-forum.com/t/auto-submit-a-form/113667)

<div class="topic-metadata">

**Author:** [@kadoudal](https://www.ruby-forum.com/u/kadoudal)\
**Replies:** 1\
**Last updated:** [September 3, 2007, 7:38pm UTC](https://www.ruby-forum.com/t/auto-submit-a-form/113667 "2007-09-03T19:38:10Z")

</div>

I have a use case where a form should be submitted automatically when the view is rendered ( a textfield is already filled out by the app) can I use a hidden field and an observe\_field on it to detect when it has be c…

---

## [Desired features in a mechanized documentation tool?](https://www.ruby-forum.com/t/desired-features-in-a-mechanized-documentation-tool/113671)

<div class="topic-metadata">

**Author:** [@iceburgh](https://www.ruby-forum.com/u/iceburgh)\
**Replies:** 0\
**Last updated:** [September 3, 2007, 5:57pm UTC](https://www.ruby-forum.com/t/desired-features-in-a-mechanized-documentation-tool/113671 "2007-09-03T17:57:06Z")

</div>

I would like some feedback on what features might be desirable in a mechanized documentation tool for Ruby and Rails. Feel free to respond on- or off-list. Arti is an attempt to improve the documentation infrastructu…

---

## [Hai brothers](https://www.ruby-forum.com/t/hai-brothers/113656)

<div class="topic-metadata">

**Author:** [@sreeki](https://www.ruby-forum.com/u/sreeki)\
**Replies:** 1\
**Last updated:** [September 3, 2007, 5:48pm UTC](https://www.ruby-forum.com/t/hai-brothers/113656 "2007-09-03T17:48:05Z")

</div>

Hi brothers i am sreekanth. today i joined this group. Actually my problem is i need to display the date in a select list. but default date format is yyyy-mm-dd, how come i customize this format, as i am using acts\_as…

---

## [Firebird and rails; error](https://www.ruby-forum.com/t/firebird-and-rails-error/113669)

<div class="topic-metadata">

**Author:** [@hasseltje](https://www.ruby-forum.com/u/hasseltje)\
**Replies:** 0\
**Last updated:** [September 3, 2007, 5:40pm UTC](https://www.ruby-forum.com/t/firebird-and-rails-error/113669 "2007-09-03T17:40:04Z")

</div>

Hi, Being new to RoR, I tried to get things working between RoR and Firebird. With the help of some forums I figured out how to set things up. I edit all documents using Aptana RadRails. Problem occurs when I take th…

---

## [Error: You have a nil object when you didn't expect it!](https://www.ruby-forum.com/t/error-you-have-a-nil-object-when-you-didnt-expect-it/113537)

<div class="topic-metadata">

**Author:** [@elle](https://www.ruby-forum.com/u/elle)\
**Replies:** 3\
**Last updated:** [September 3, 2007, 5:21pm UTC](https://www.ruby-forum.com/t/error-you-have-a-nil-object-when-you-didnt-expect-it/113537 "2007-09-03T17:21:00Z")

</div>

Hi everyone, Very new to rails and while following the book: Beginning Ruby on Rails E-Commerce", I’m trying ti implement a cart, but the cart doesn’t appear on the html page at all. The code for the cart in app/ vie…

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

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