# Rails

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

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

---

## [Code dupplication?](https://www.ruby-forum.com/t/code-dupplication/114225)

<div class="topic-metadata">

**Author:** [@esox\_ch](https://www.ruby-forum.com/u/esox_ch)\
**Replies:** 5\
**Last updated:** [September 10, 2007, 8:24am UTC](https://www.ruby-forum.com/t/code-dupplication/114225 "2007-09-10T08:24:22Z")

</div>

Hello, I’m building a small website, where users can subscribe by filling a form (like this forum) but can also be subscribed by the administrator directly in the administrator zone. The workflow is completly differe…

---

## [OOP Question](https://www.ruby-forum.com/t/oop-question/114200)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 6\
**Last updated:** [September 10, 2007, 8:15am UTC](https://www.ruby-forum.com/t/oop-question/114200 "2007-09-10T08:15:59Z")

</div>

On Rails using associations you can have something like this: Category.find(1).articles #=\> Array of Article objects So if that returns an array how is something like this possible? Category.find(1).articles.find\_by\_a…

---

## [A form submit problem related to web browser](https://www.ruby-forum.com/t/a-form-submit-problem-related-to-web-browser/114218)

<div class="topic-metadata">

**Author:** [@rex](https://www.ruby-forum.com/u/rex)\
**Replies:** 1\
**Last updated:** [September 10, 2007, 5:31am UTC](https://www.ruby-forum.com/t/a-form-submit-problem-related-to-web-browser/114218 "2007-09-10T05:31:49Z")

</div>

In my case, I wrote a page which include a table like ...... when submit this form in Firefox, the params in RAILS controller doesn't include the form's conte…

---

## [erlang/Mnesia adaptor for rails](https://www.ruby-forum.com/t/erlang-mnesia-adaptor-for-rails/114172)

<div class="topic-metadata">

**Author:** [@snacktime](https://www.ruby-forum.com/u/snacktime)\
**Replies:** 2\
**Last updated:** [September 10, 2007, 5:03am UTC](https://www.ruby-forum.com/t/erlang-mnesia-adaptor-for-rails/114172 "2007-09-10T05:03:47Z")

</div>

I’m working on a site that will most likely be huge and could easily be one of the largest ruby on rails sites yet. While we will be using databases to some extent on the backend, I know that’s only going to scale o…

---

## [Ruby 1.8.6 fresh install...now mongrel gem says no](https://www.ruby-forum.com/t/ruby-1-8-6-fresh-install-now-mongrel-gem-says-no/114216)

<div class="topic-metadata">

**Author:** [@eddiewould](https://www.ruby-forum.com/u/eddiewould)\
**Replies:** 1\
**Last updated:** [September 10, 2007, 4:13am UTC](https://www.ruby-forum.com/t/ruby-1-8-6-fresh-install-now-mongrel-gem-says-no/114216 "2007-09-10T04:13:44Z")

</div>

i installed ruby 1.8.6 instead… and now i’m trying to install mongrel, and it says ‘ruby lib version (1.8.5) doesn’t match ex’ is there a way to edit the mongrel gem, or am i screwed until there’s an update for mongre…

---

## [Pass object to a before\_filter](https://www.ruby-forum.com/t/pass-object-to-a-before-filter/114195)

<div class="topic-metadata">

**Author:** [@Yannick\_K](https://www.ruby-forum.com/u/Yannick_K)\
**Replies:** 1\
**Last updated:** [September 10, 2007, 1:24am UTC](https://www.ruby-forum.com/t/pass-object-to-a-before-filter/114195 "2007-09-10T01:24:29Z")

</div>

i would like to build a authetication system where i can pass a object (precisely the current id in the controller) to the before\_filter. then i do some reflection fun to find out if the passed user has that object. …

---

## [How to fix assigns(:user) on controller test](https://www.ruby-forum.com/t/how-to-fix-assigns-user-on-controller-test/114168)

<div class="topic-metadata">

**Author:** [@OnRails](https://www.ruby-forum.com/u/OnRails)\
**Replies:** 4\
**Last updated:** [September 9, 2007, 11:03pm UTC](https://www.ruby-forum.com/t/how-to-fix-assigns-user-on-controller-test/114168 "2007-09-09T23:03:14Z")

</div>

Hi everyon, Thank you for your any help! I did the controller test, but there is a problem where run the test. On controller.rb: def change\_password user = current\_user if User.authenticate(user.login, params\[:old\_…

---

## [Handle mail server problems](https://www.ruby-forum.com/t/handle-mail-server-problems/112710)

<div class="topic-metadata">

**Author:** [@Eivind\_LSSSSland-An](https://www.ruby-forum.com/u/Eivind_LSSSSland-An)\
**Replies:** 5\
**Last updated:** [September 9, 2007, 8:55pm UTC](https://www.ruby-forum.com/t/handle-mail-server-problems/112710 "2007-09-09T20:55:55Z")

</div>

I’m making a rails application that regularly sends out e-mails to users. While testing recently a controller got a timeout when trying to send an e-mail. =\> the mail server was down. Is there an easy way to handle so…

---

## [Join Tables/Forms](https://www.ruby-forum.com/t/join-tables-forms/114144)

<div class="topic-metadata">

**Author:** [@randall](https://www.ruby-forum.com/u/randall)\
**Replies:** 1\
**Last updated:** [September 9, 2007, 8:07pm UTC](https://www.ruby-forum.com/t/join-tables-forms/114144 "2007-09-09T20:07:59Z")

</div>

Hello all. I am hoping someone can clear up a problem I am having. Here is the background: a) I am using REST (create my scaffolds with scaffold\_resource) b) I have installed the RESTful\_Authentication plugin c) I h…

---

## [Double-entry bookkeeping (financial accounting)](https://www.ruby-forum.com/t/double-entry-bookkeeping-financial-accounting/114201)

<div class="topic-metadata">

**Author:** [@brett](https://www.ruby-forum.com/u/brett)\
**Replies:** 0\
**Last updated:** [September 9, 2007, 7:38pm UTC](https://www.ruby-forum.com/t/double-entry-bookkeeping-financial-accounting/114201 "2007-09-09T19:38:45Z")

</div>

Hello, I’m looking for a ruby program that provides double-entry bookkeeping in an organized database, as in a database that would be easy to integrate into other processes (so I could make my own reports/etc). Does …

---

## [Blank content-length?](https://www.ruby-forum.com/t/blank-content-length/114094)

<div class="topic-metadata">

**Author:** [@ldk2005](https://www.ruby-forum.com/u/ldk2005)\
**Replies:** 2\
**Last updated:** [September 9, 2007, 7:29pm UTC](https://www.ruby-forum.com/t/blank-content-length/114094 "2007-09-09T19:29:49Z")

</div>

Hi, The Content-Length http response header is blank. Anyone see that occur? My controller is sending back xml from a Zaya graph. Everything works fine on FF but it appears that IE wants the HTTP specification followe…

---

## [A little help with routes](https://www.ruby-forum.com/t/a-little-help-with-routes/114198)

<div class="topic-metadata">

**Author:** [@mix](https://www.ruby-forum.com/u/mix)\
**Replies:** 3\
**Last updated:** [September 9, 2007, 7:20pm UTC](https://www.ruby-forum.com/t/a-little-help-with-routes/114198 "2007-09-09T19:20:55Z")

</div>

hi, i’m setting up some routes, but i’ve a little problem. i’ve written map.connect ‘’, :controller =\> ‘/categories’, :action =\> :index and tryed to show localhost:3000…ok, it works…partially, it changes the url to…

---

## ["Common action" for a controller](https://www.ruby-forum.com/t/common-action-for-a-controller/114166)

<div class="topic-metadata">

**Author:** [@twp](https://www.ruby-forum.com/u/twp)\
**Replies:** 2\
**Last updated:** [September 9, 2007, 6:21pm UTC](https://www.ruby-forum.com/t/common-action-for-a-controller/114166 "2007-09-09T18:21:13Z")

</div>

Sorry if this has been asked before; it seems like a simple problem. I have a controller called ItemController which displays information about specific items to a user on various pages. The routing looks like “items/…

---

## [How can I put multiple model classes to one file?](https://www.ruby-forum.com/t/how-can-i-put-multiple-model-classes-to-one-file/114060)

<div class="topic-metadata">

**Author:** [@xain](https://www.ruby-forum.com/u/xain)\
**Replies:** 3\
**Last updated:** [September 9, 2007, 6:20pm UTC](https://www.ruby-forum.com/t/how-can-i-put-multiple-model-classes-to-one-file/114060 "2007-09-09T18:20:46Z")

</div>

It seems, by default, the model\_name.rb file is a must for a model. I just created a ‘bars’ table in database, and I can’t access Bar model until I create an app/models/bar.rb file with: class Bar \< ActiveRecord::Bas…

---

## [Ruby on rails developer- us company](https://www.ruby-forum.com/t/ruby-on-rails-developer-us-company/114171)

<div class="topic-metadata">

**Author:** [@avity](https://www.ruby-forum.com/u/avity)\
**Replies:** 1\
**Last updated:** [September 9, 2007, 5:51pm UTC](https://www.ruby-forum.com/t/ruby-on-rails-developer-us-company/114171 "2007-09-09T17:51:33Z")

</div>

Super-Intelligent Ruby on Rails Developer - US Company - Immediate We are a rapidly growing American company with staff in Latin America and Europe. We would like to retain three or more developers immediately to sta…

---

## [Method "movie\_file=" can someone explain this to me please?](https://www.ruby-forum.com/t/method-movie-file-can-someone-explain-this-to-me-please/114129)

<div class="topic-metadata">

**Author:** [@cmaxvv](https://www.ruby-forum.com/u/cmaxvv)\
**Replies:** 3\
**Last updated:** [September 9, 2007, 3:58pm UTC](https://www.ruby-forum.com/t/method-movie-file-can-someone-explain-this-to-me-please/114129 "2007-09-09T15:58:48Z")

</div>

I’m using this method, adapted from a similar one for pictures, and it works fine but i don’t really understand how: def movie\_file=(input\_data) self.filename = input\_data.original\_filename self.content\_type = input\_…

---

## [Www.rorhost.ro - ruby on rails free hosting](https://www.ruby-forum.com/t/www-rorhost-ro-ruby-on-rails-free-hosting/114196)

<div class="topic-metadata">

**Author:** [@distilat](https://www.ruby-forum.com/u/distilat)\
**Replies:** 0\
**Last updated:** [September 9, 2007, 3:40pm UTC](https://www.ruby-forum.com/t/www-rorhost-ro-ruby-on-rails-free-hosting/114196 "2007-09-09T15:40:47Z")

</div>

a reliable system to place your website free, large bandwidth, no ads www.rorhost.ro

---

## [Country select + county select listbox](https://www.ruby-forum.com/t/country-select-county-select-listbox/114194)

<div class="topic-metadata">

**Author:** [@softf5ajivanet](https://www.ruby-forum.com/u/softf5ajivanet)\
**Replies:** 0\
**Last updated:** [September 9, 2007, 2:16pm UTC](https://www.ruby-forum.com/t/country-select-county-select-listbox/114194 "2007-09-09T14:16:09Z")

</div>

Hi, i’ve got to re-design my signup form so that it will allow the user to select their country (e.g. UK), and then the appropriate county (e.g. ESSEX). Managed to find the code to display any possible country + count…

---

## [Indentifier name too long](https://www.ruby-forum.com/t/indentifier-name-too-long/67564)

<div class="topic-metadata">

**Author:** [@Dylan\_S](https://www.ruby-forum.com/u/Dylan_S)\
**Replies:** 2\
**Last updated:** [September 9, 2007, 2:05pm UTC](https://www.ruby-forum.com/t/indentifier-name-too-long/67564 "2007-09-09T14:05:19Z")

</div>

Running Edge (4991) and MySQL (5.0.22) When running “rake db:migrate” Mysql::Error: Identifier name ‘index\_globalize\_translations\_on\_table\_name\_and\_item\_id\_and\_language\_id’ is too long: CREATE INDEX index\_globalize…

---

## [\[AD\] 2 RailsConf Europe Tickets For Sale at lower price](https://www.ruby-forum.com/t/ad-2-railsconf-europe-tickets-for-sale-at-lower-price/114189)

<div class="topic-metadata">

**Author:** [@pratik](https://www.ruby-forum.com/u/pratik)\
**Replies:** 0\
**Last updated:** [September 9, 2007, 1:47pm UTC](https://www.ruby-forum.com/t/ad-2-railsconf-europe-tickets-for-sale-at-lower-price/114189 "2007-09-09T13:47:00Z")

</div>

The event is sold out. Please check my announcement at http://m.onkey.org/2007/9/9/2-railsconf-europe-tickets-for-sale and contact me directly if you’re interested. Cheers! Pratik http://m.onkey.org

---

## [InstantRails - command "rails" does not work](https://www.ruby-forum.com/t/instantrails-command-rails-does-not-work/114186)

<div class="topic-metadata">

**Author:** [@heyho](https://www.ruby-forum.com/u/heyho)\
**Replies:** 4\
**Last updated:** [September 9, 2007, 1:01pm UTC](https://www.ruby-forum.com/t/instantrails-command-rails-does-not-work/114186 "2007-09-09T13:01:52Z")

</div>

Hey, I installed InstantRails 1.7 (on Windows XP Home). I unzipped it with 7-Zip in D:\\InstantRails (no spaces in pathname + short pathname) to avoid UnZip-problems. I followed the installation instructions. The cook…

---

## [How to add a initialize method when rails app starts?](https://www.ruby-forum.com/t/how-to-add-a-initialize-method-when-rails-app-starts/113953)

<div class="topic-metadata">

**Author:** [@Ye\_Dingding](https://www.ruby-forum.com/u/Ye_Dingding)\
**Replies:** 2\
**Last updated:** [September 9, 2007, 11:43am UTC](https://www.ruby-forum.com/t/how-to-add-a-initialize-method-when-rails-app-starts/113953 "2007-09-09T11:43:45Z")

</div>

I know the Rails::Initializer class process the initialization for apps. But i found the method is under the protection. That is, Rails::Initializer.run do |config| end when i invoke the run method, it then do proce…

---

## [Sake error, I am getting](https://www.ruby-forum.com/t/sake-error-i-am-getting/114185)

<div class="topic-metadata">

**Author:** [@anildigital](https://www.ruby-forum.com/u/anildigital)\
**Replies:** 0\
**Last updated:** [September 9, 2007, 11:12am UTC](https://www.ruby-forum.com/t/sake-error-i-am-getting/114185 "2007-09-09T11:12:41Z")

</div>

Hi, I am getting following error when I run Sake… Could u please tell how to correct this on my MacBook $sake /opt/local/lib/ruby/gems/1.8/gems/sake-1.0.10/lib/sake.rb:14: undefined method die' for main:Object (NoMe…

---

## [Hook into appending child records to parent in acts\_as\_tree](https://www.ruby-forum.com/t/hook-into-appending-child-records-to-parent-in-acts-as-tree/114155)

<div class="topic-metadata">

**Author:** [@mike](https://www.ruby-forum.com/u/mike)\
**Replies:** 1\
**Last updated:** [September 9, 2007, 10:41am UTC](https://www.ruby-forum.com/t/hook-into-appending-child-records-to-parent-in-acts-as-tree/114155 "2007-09-09T10:41:48Z")

</div>

I have a class with an acts\_as\_tree association and I’d like to add some additional functionality to take place whenever I try to append something to an instances child list. So when I try something like my\_object.chi…

---

## [What is difference between form\_for and form\_tag?](https://www.ruby-forum.com/t/what-is-difference-between-form-for-and-form-tag/114182)

<div class="topic-metadata">

**Author:** [@mmnmm7](https://www.ruby-forum.com/u/mmnmm7)\
**Replies:** 1\
**Last updated:** [September 9, 2007, 10:39am UTC](https://www.ruby-forum.com/t/what-is-difference-between-form-for-and-form-tag/114182 "2007-09-09T10:39:34Z")

</div>

Hello! The many answers of this question are not appropriated for me. What is the BIG difference between form\_for and form\_tag? In several web pages, i read like below… form\_for method is used for specificated wrappe…

---

## [Rails truncating raw\_post\_data?](https://www.ruby-forum.com/t/rails-truncating-raw-post-data/112589)

<div class="topic-metadata">

**Author:** [@ktheory](https://www.ruby-forum.com/u/ktheory)\
**Replies:** 8\
**Last updated:** [September 9, 2007, 9:26am UTC](https://www.ruby-forum.com/t/rails-truncating-raw-post-data/112589 "2007-09-09T09:26:08Z")

</div>

Has anyone ever run into any problems with rails truncating raw\_post\_data. My situation is this: I’m the developer for RubyAMF (wiki.rubyamf.org). Which is a flash remoting application server. With the rails plugin, i…

---

## [I don't understand how to cache this](https://www.ruby-forum.com/t/i-dont-understand-how-to-cache-this/114128)

<div class="topic-metadata">

**Author:** [@snaggy](https://www.ruby-forum.com/u/snaggy)\
**Replies:** 3\
**Last updated:** [September 9, 2007, 8:48am UTC](https://www.ruby-forum.com/t/i-dont-understand-how-to-cache-this/114128 "2007-09-09T08:48:31Z")

</div>

My website is mainly a single controller/action and the menu/page is chosen by passing the parameters params\[‘menu’\] params\[‘submenu’\] after rerouting, the urls look like this: www.mywebsite.com/:menu/:submenu I’d …

---

## [Actions have no CSS?](https://www.ruby-forum.com/t/actions-have-no-css/114174)

<div class="topic-metadata">

**Author:** [@vanik](https://www.ruby-forum.com/u/vanik)\
**Replies:** 2\
**Last updated:** [September 9, 2007, 4:48am UTC](https://www.ruby-forum.com/t/actions-have-no-css/114174 "2007-09-09T04:48:22Z")

</div>

Hi everyone, I’ve started a new site from scratch. It’s quite straightforward and nothing special. I have a simple controller with just a few actions. I have one style sheet and the majority of the site is held in …

---

## [Joining tables where foreign key is not the \[singular\_of\_oth](https://www.ruby-forum.com/t/joining-tables-where-foreign-key-is-not-the-singular-of-oth/114170)

<div class="topic-metadata">

**Author:** [@thomas](https://www.ruby-forum.com/u/thomas)\
**Replies:** 1\
**Last updated:** [September 9, 2007, 4:29am UTC](https://www.ruby-forum.com/t/joining-tables-where-foreign-key-is-not-the-singular-of-oth/114170 "2007-09-09T04:29:21Z")

</div>

I am rather new to RoR and am having the following issue. I have read some conflicting posts so I wanted to see what people have to say for my particular example. Here is what I have. class Expense \< ActiveRecord::Ba…

---

## [Antique 1912-1949 Porcelain teapot 528 chinaware 4 00ï¼Œ inv](https://www.ruby-forum.com/t/antique-1912-1949-porcelain-teapot-528-chinaware-4-00i-oe-inv/114173)

<div class="topic-metadata">

**Author:** [@jx5888](https://www.ruby-forum.com/u/jx5888)\
**Replies:** 0\
**Last updated:** [September 9, 2007, 4:13am UTC](https://www.ruby-forum.com/t/antique-1912-1949-porcelain-teapot-528-chinaware-4-00i-oe-inv/114173 "2007-09-09T04:13:20Z")

</div>

Antique 1912-1949 Porcelain teapot 528 chinaware 400£¬ invitation visit Thanks £¡ Jianxiong Xu City Shengzhou Zhejiang China Tel: 86-57583103731 Website:http://www.xjx588.com E-mail:removed\_email\_address@domain.in…

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

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