# Rails

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

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

---

## [Has\_many :through](https://www.ruby-forum.com/t/has-many-through/87892)

<div class="topic-metadata">

**Author:** [@starburger](https://www.ruby-forum.com/u/starburger)\
**Replies:** 10\
**Last updated:** [March 8, 2007, 2:26pm UTC](https://www.ruby-forum.com/t/has-many-through/87892 "2007-03-08T14:26:32Z")

</div>

I have the following (simple) scenario in a community project: There is a simple messaging system where users can send messages to one or many other users (comparable to email). So a message has one user as sender and…

---

## [(announce) Engines 1.2 plugin creation tutorial](https://www.ruby-forum.com/t/announce-engines-1-2-plugin-creation-tutorial/88015)

<div class="topic-metadata">

**Author:** [@Gwyn\_Morfey](https://www.ruby-forum.com/u/Gwyn_Morfey)\
**Replies:** 3\
**Last updated:** [March 8, 2007, 1:50pm UTC](https://www.ruby-forum.com/t/announce-engines-1-2-plugin-creation-tutorial/88015 "2007-03-08T13:50:54Z")

</div>

I’ve just written a tutorial on writing plugins that use the Engines 1.2 plugin. The latest release of Engines changes quite a few things, and while they’re all documented in the rdoc, I’ve pulled them together into a…

---

## [How to store (doc) file containts in Database (blob type)](https://www.ruby-forum.com/t/how-to-store-doc-file-containts-in-database-blob-type/88138)

<div class="topic-metadata">

**Author:** [@manohar\_amrutkar](https://www.ruby-forum.com/u/manohar_amrutkar)\
**Replies:** 0\
**Last updated:** [March 8, 2007, 1:20pm UTC](https://www.ruby-forum.com/t/how-to-store-doc-file-containts-in-database-blob-type/88138 "2007-03-08T13:20:47Z")

</div>

hi, In my controller on Upload am trying to store file containts in table ArticleDetails. @docfile = params\[:article\_file\] ArticleDetail is my model in which ArticleDetails is a BLOB data type field. @articledetail…

---

## [Detect if an attribute was updated after save operation](https://www.ruby-forum.com/t/detect-if-an-attribute-was-updated-after-save-operation/87731)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 8\
**Last updated:** [March 8, 2007, 12:33pm UTC](https://www.ruby-forum.com/t/detect-if-an-attribute-was-updated-after-save-operation/87731 "2007-03-08T12:33:37Z")

</div>

Hi, I would like to perform some action if the value of a specific attribute is changed during a save/update operation. Unfortuently, I ve got no idea how to detect this. Maybe somebody can explain the rails way to d…

---

## [Extending controllers with actions from external files?](https://www.ruby-forum.com/t/extending-controllers-with-actions-from-external-files/88121)

<div class="topic-metadata">

**Author:** [@danielb](https://www.ruby-forum.com/u/danielb)\
**Replies:** 2\
**Last updated:** [March 8, 2007, 12:19pm UTC](https://www.ruby-forum.com/t/extending-controllers-with-actions-from-external-files/88121 "2007-03-08T12:19:34Z")

</div>

Hey :slight\_smile: I have some auto\_complete\_for\_blah\_blah actions that are used in different controllers. In the spirit of DRY, I’d like to separate these actions in unique files which I then load into the controller…

---

## [Using send\_file and handling browser side cacheing](https://www.ruby-forum.com/t/using-send-file-and-handling-browser-side-cacheing/88128)

<div class="topic-metadata">

**Author:** [@mezza](https://www.ruby-forum.com/u/mezza)\
**Replies:** 0\
**Last updated:** [March 8, 2007, 11:49am UTC](https://www.ruby-forum.com/t/using-send-file-and-handling-browser-side-cacheing/88128 "2007-03-08T11:49:31Z")

</div>

I’m using send\_file to send rather large SWF files that I’d prefer the end browser to cache to reduce my bandwidth usage. I’ve used the method suggested by madrobby (http://mir.aculo.us/ 2005/08/28/internet-explorer-a…

---

## [Error with plugin module tree](https://www.ruby-forum.com/t/error-with-plugin-module-tree/88126)

<div class="topic-metadata">

**Author:** [@adammontgomery](https://www.ruby-forum.com/u/adammontgomery)\
**Replies:** 1\
**Last updated:** [March 8, 2007, 11:46am UTC](https://www.ruby-forum.com/t/error-with-plugin-module-tree/88126 "2007-03-08T11:46:57Z")

</div>

Hello, I have created a cut down version of technoweenie’s acts\_as\_attachment for a project im working on. It has worked fine but now with what appears to be a change to edge rails (did piston update on vendor/rails …

---

## [Rails messing up FPDF / encodings?](https://www.ruby-forum.com/t/rails-messing-up-fpdf-encodings/88005)

<div class="topic-metadata">

**Author:** [@Isak\_H](https://www.ruby-forum.com/u/Isak_H)\
**Replies:** 1\
**Last updated:** [March 8, 2007, 11:32am UTC](https://www.ruby-forum.com/t/rails-messing-up-fpdf-encodings/88005 "2007-03-08T11:32:28Z")

</div>

This code seems to break under rails and the console (1.2.2 branch), while working as expected under irb: require “fpdf/fpdf” s = ("" \<\< 73 \<\< 241 \<\< 116 \<\< 234 \<\< 114 \<\< 110 \<\< 228 \<\< 116 \<\< 105 \<\< 111 \<\< 110 \<\< 97…

---

## [What happens when "rake test"?](https://www.ruby-forum.com/t/what-happens-when-rake-test/88120)

<div class="topic-metadata">

**Author:** [@Kevin\_Yang](https://www.ruby-forum.com/u/Kevin_Yang)\
**Replies:** 0\
**Last updated:** [March 8, 2007, 10:35am UTC](https://www.ruby-forum.com/t/what-happens-when-rake-test/88120 "2007-03-08T10:35:23Z")

</div>

Hello, I meet a problem which become a stopper. When I run “rake test” . then there always comes the error : D:/InstantRails/ruby/lib/ruby/1.8/csv.rb:11: CSV is not a class (TypeError) my enviroment is Rails1.2.1+Ru…

---

## [\[Problem\] wrong number of arguments (1 for 0)](https://www.ruby-forum.com/t/problem-wrong-number-of-arguments-1-for-0/88036)

<div class="topic-metadata">

**Author:** [@Sven\_Magnus](https://www.ruby-forum.com/u/Sven_Magnus)\
**Replies:** 3\
**Last updated:** [March 8, 2007, 9:49am UTC](https://www.ruby-forum.com/t/problem-wrong-number-of-arguments-1-for-0/88036 "2007-03-08T09:49:19Z")

</div>

Hi, I’m pretty new to Rails. I’ll explain what I did. I created a model called User. I edited the migration file to look like this (no table name pluralization) : class CreateUsers \< ActiveRecord::Migration def self…

---

## [Link to some cool videos tutorials](https://www.ruby-forum.com/t/link-to-some-cool-videos-tutorials/88082)

<div class="topic-metadata">

**Author:** [@Vivian\_Aranha](https://www.ruby-forum.com/u/Vivian_Aranha)\
**Replies:** 3\
**Last updated:** [March 8, 2007, 9:05am UTC](https://www.ruby-forum.com/t/link-to-some-cool-videos-tutorials/88082 "2007-03-08T09:05:12Z")

</div>

Hi, i found this cool link to video tutorials on Ruby On Rails… Check it out… Its really good for newbies. Enjoi, Vivian ARanha

---

## [How to create a route by file extension?](https://www.ruby-forum.com/t/how-to-create-a-route-by-file-extension/88106)

<div class="topic-metadata">

**Author:** [@snowbug](https://www.ruby-forum.com/u/snowbug)\
**Replies:** 0\
**Last updated:** [March 8, 2007, 8:17am UTC](https://www.ruby-forum.com/t/how-to-create-a-route-by-file-extension/88106 "2007-03-08T08:17:38Z")

</div>

I want to have a controller that handles serving all .js files. But I don’t know how to write the routes.rb map.connect entry so all requests for javascript files can be routed to my controller. The .js requests somet…

---

## [Names routes double escape html?](https://www.ruby-forum.com/t/names-routes-double-escape-html/88105)

<div class="topic-metadata">

**Author:** [@benjohnson](https://www.ruby-forum.com/u/benjohnson)\
**Replies:** 0\
**Last updated:** [March 8, 2007, 8:16am UTC](https://www.ruby-forum.com/t/names-routes-double-escape-html/88105 "2007-03-08T08:16:43Z")

</div>

Is anyone else having this problem? \<%= link\_to\_function( “Some link”, “alert(‘some action here’);” + remote\_function(:url =\> named\_route\_url(:arg1 =\> “test”, :arg2 =\> “test”)).gsub(/&/, ‘&’) ) %\> Notice the .gsub(…

---

## [Faking page requests](https://www.ruby-forum.com/t/faking-page-requests/88070)

<div class="topic-metadata">

**Author:** [@robert](https://www.ruby-forum.com/u/robert)\
**Replies:** 1\
**Last updated:** [March 8, 2007, 7:21am UTC](https://www.ruby-forum.com/t/faking-page-requests/88070 "2007-03-08T07:21:04Z")

</div>

I’ve got a site built in RoR. I deliver the pages staticly - upload the public folder contents to my site. The page creation is done by caching and all that works very neatly. I’d like to streamline the page creation.…

---

## [Programmer Needed for Game Project](https://www.ruby-forum.com/t/programmer-needed-for-game-project/88103)

<div class="topic-metadata">

**Author:** [@Ruby\_Hires](https://www.ruby-forum.com/u/Ruby_Hires)\
**Replies:** 0\
**Last updated:** [March 8, 2007, 7:21am UTC](https://www.ruby-forum.com/t/programmer-needed-for-game-project/88103 "2007-03-08T07:21:04Z")

</div>

We are looking for a programmer who can create support and administrative systems in Ruby for a game related project. The job requires a minimum commitment of 25 hours per week and is an offsite position. Providing …

---

## [CSS XHTML resource required?](https://www.ruby-forum.com/t/css-xhtml-resource-required/88096)

<div class="topic-metadata">

**Author:** [@jima](https://www.ruby-forum.com/u/jima)\
**Replies:** 4\
**Last updated:** [March 8, 2007, 6:08am UTC](https://www.ruby-forum.com/t/css-xhtml-resource-required/88096 "2007-03-08T06:08:59Z")

</div>

Can anyone recommend a good book or site for doing CSS and \[X|D\]HTML. cheers \<.jima\>

---

## [Form nested parameters issue](https://www.ruby-forum.com/t/form-nested-parameters-issue/88098)

<div class="topic-metadata">

**Author:** [@TuteC](https://www.ruby-forum.com/u/TuteC)\
**Replies:** 0\
**Last updated:** [March 8, 2007, 5:12am UTC](https://www.ruby-forum.com/t/form-nested-parameters-issue/88098 "2007-03-08T05:12:57Z")

</div>

Hello everyone. I’m doing something similar to the AJAX based search facility presented the Friends of ED book, but it doesn’t work for non-javascript browsers, so I’m trying to improve it. The search engine looks lik…

---

## [\[JOB\] Full Time Ruby on Rails Position in Phoenix, AZ](https://www.ruby-forum.com/t/job-full-time-ruby-on-rails-position-in-phoenix-az/88092)

<div class="topic-metadata">

**Author:** [@tamc](https://www.ruby-forum.com/u/tamc)\
**Replies:** 0\
**Last updated:** [March 8, 2007, 4:21am UTC](https://www.ruby-forum.com/t/job-full-time-ruby-on-rails-position-in-phoenix-az/88092 "2007-03-08T04:21:38Z")

</div>

Description: We are looking for a skilled Ruby on Rails/PHP developer that can join our team and assist us in day-to-day projects as well as the development and maintenance of our upcoming, top-secret web app! This is…

---

## [Rhtml: are carriage returns treated differently in IE vs FF?](https://www.ruby-forum.com/t/rhtml-are-carriage-returns-treated-differently-in-ie-vs-ff/88089)

<div class="topic-metadata">

**Author:** [@koloa](https://www.ruby-forum.com/u/koloa)\
**Replies:** 2\
**Last updated:** [March 8, 2007, 3:56am UTC](https://www.ruby-forum.com/t/rhtml-are-carriage-returns-treated-differently-in-ie-vs-ff/88089 "2007-03-08T03:56:38Z")

</div>

hi, Ive been trying to debug why my sites div page content floats all the way to the left and not within its main place where it belongs!..my site shows correctly in firefox but not in internet explorer. i ran a diff…

---

## [Login\_generator Issues](https://www.ruby-forum.com/t/login-generator-issues/88091)

<div class="topic-metadata">

**Author:** [@davidstokar](https://www.ruby-forum.com/u/davidstokar)\
**Replies:** 0\
**Last updated:** [March 8, 2007, 3:44am UTC](https://www.ruby-forum.com/t/login-generator-issues/88091 "2007-03-08T03:44:25Z")

</div>

After I have logged in I get the following error: no such file to load – login\_system RAILS\_ROOT: C:/David/InstantRails/rails\_apps/ishopr\_v2/config/… Application Trace | Framework Trace | Full Trace C:/David/InstantR…

---

## [OSX apache2 final-stage setup hints?](https://www.ruby-forum.com/t/osx-apache2-final-stage-setup-hints/87868)

<div class="topic-metadata">

**Author:** [@dankitania](https://www.ruby-forum.com/u/dankitania)\
**Replies:** 17\
**Last updated:** [March 8, 2007, 3:14am UTC](https://www.ruby-forum.com/t/osx-apache2-final-stage-setup-hints/87868 "2007-03-08T03:14:46Z")

</div>

Preamble: I hope people on this list will tolerate a question that, while motivated by RoR, is not strictly about RoR. I’m trying to let colleagues see a RoR site I’m developing, so I need to share the pages. I’m an…

---

## [Has\_many :through - replace and clear Don't Work?](https://www.ruby-forum.com/t/has-many-through-replace-and-clear-dont-work/102707)

<div class="topic-metadata">

**Author:** [@hunter\_h](https://www.ruby-forum.com/u/hunter_h)\
**Replies:** 2\
**Last updated:** [March 8, 2007, 2:22am UTC](https://www.ruby-forum.com/t/has-many-through-replace-and-clear-dont-work/102707 "2007-03-08T02:22:42Z")

</div>

I have the following setup: class NewsItem \< ActiveRecord::Base has\_many :connections, :as =\> :connectable, :dependent =\> :destroy has\_many :ideas, :through =\> :connections end The relationship is a has\_many :throug…

---

## [Routing Problem](https://www.ruby-forum.com/t/routing-problem/88056)

<div class="topic-metadata">

**Author:** [@jcernelli](https://www.ruby-forum.com/u/jcernelli)\
**Replies:** 3\
**Last updated:** [March 8, 2007, 1:46am UTC](https://www.ruby-forum.com/t/routing-problem/88056 "2007-03-08T01:46:39Z")

</div>

Hi, I’m having a problem with the routing within my rails app. I’m probably doing something completely, obviously, and totally wrong, but for the life of me I can’t see it. The short of it: My banner disappears if…

---

## [HOWTO: Upcoming birthdays partial](https://www.ruby-forum.com/t/howto-upcoming-birthdays-partial/88075)

<div class="topic-metadata">

**Author:** [@taylorstrait](https://www.ruby-forum.com/u/taylorstrait)\
**Replies:** 2\
**Last updated:** [March 8, 2007, 1:38am UTC](https://www.ruby-forum.com/t/howto-upcoming-birthdays-partial/88075 "2007-03-08T01:38:38Z")

</div>

I searched for this info earlier and only found other people asking how to do this. So, now that I have done it I though I would add it to the archives: \_UPCOMING\_BIRTHDAYS.RHTML \<% @upcoming\_birthdays = Person.find…

---

## [Downloading a non UTF filename](https://www.ruby-forum.com/t/downloading-a-non-utf-filename/87398)

<div class="topic-metadata">

**Author:** [@peter](https://www.ruby-forum.com/u/peter)\
**Replies:** 4\
**Last updated:** [March 8, 2007, 1:33am UTC](https://www.ruby-forum.com/t/downloading-a-non-utf-filename/87398 "2007-03-08T01:33:37Z")

</div>

Hi, I’m using Rails 1.2.2 and my app can upload files with special characters like ãçáéíóú. I’m converting the filename (the physical name and not it’s content!) from UTF to ISO and it’s working fine. Otherwise all …

---

## [One Lookup Table for Multiple Properties in a Model](https://www.ruby-forum.com/t/one-lookup-table-for-multiple-properties-in-a-model/88084)

<div class="topic-metadata">

**Author:** [@brian](https://www.ruby-forum.com/u/brian)\
**Replies:** 2\
**Last updated:** [March 8, 2007, 12:52am UTC](https://www.ruby-forum.com/t/one-lookup-table-for-multiple-properties-in-a-model/88084 "2007-03-08T00:52:31Z")

</div>

How can one use the same lookup table for multiple columns in the same table? e.g. let’s say I have a lookup table with automobile makes (Audi, BMW, Chevrolet) , and then a “drivers” table with columns for primary car …

---

## [Globalize and views](https://www.ruby-forum.com/t/globalize-and-views/88085)

<div class="topic-metadata">

**Author:** [@chriscole](https://www.ruby-forum.com/u/chriscole)\
**Replies:** 0\
**Last updated:** [March 8, 2007, 12:38am UTC](https://www.ruby-forum.com/t/globalize-and-views/88085 "2007-03-08T00:38:29Z")

</div>

This seems like it should be pretty obvious but I haven’t found an answer anywhere (the Rails Recipes book even says “translating views is really easy…” and then drops the subject). So, as a result I have a bunch of q…

---

## [Having problems upgrading to edge 6354](https://www.ruby-forum.com/t/having-problems-upgrading-to-edge-6354/88086)

<div class="topic-metadata">

**Author:** [@matthew](https://www.ruby-forum.com/u/matthew)\
**Replies:** 1\
**Last updated:** [March 8, 2007, 12:36am UTC](https://www.ruby-forum.com/t/having-problems-upgrading-to-edge-6354/88086 "2007-03-08T00:36:28Z")

</div>

Hi, I have been running edge release 6119 with out any problems. I have just upgraded to release 6354 & am experiencing what I think is a problem. I now longer see any error messages in either my browser or my server …

---

## [Missing openssl ruby bindings on Fedora Core 5](https://www.ruby-forum.com/t/missing-openssl-ruby-bindings-on-fedora-core-5/88059)

<div class="topic-metadata">

**Author:** [@jarrold](https://www.ruby-forum.com/u/jarrold)\
**Replies:** 1\
**Last updated:** [March 8, 2007, 12:30am UTC](https://www.ruby-forum.com/t/missing-openssl-ruby-bindings-on-fedora-core-5/88059 "2007-03-08T00:30:26Z")

</div>

Hi, I’ve been reading about the many openssl ruby bindings problems on Ubuntu and Debian and their solutions to the following problem: /usr/local/lib/ruby/site\_ruby/1.8/rubygems/custom\_require.rb:27:in gem\_original\_r…

---

## [How to design database: has\_and\_belongs\_to\_many](https://www.ruby-forum.com/t/how-to-design-database-has-and-belongs-to-many/87777)

<div class="topic-metadata">

**Author:** [@leonb](https://www.ruby-forum.com/u/leonb)\
**Replies:** 8\
**Last updated:** [March 8, 2007, 12:14am UTC](https://www.ruby-forum.com/t/how-to-design-database-has-and-belongs-to-many/87777 "2007-03-08T00:14:25Z")

</div>

I’m not sure how to design my database. This is the casus: There are users who can make declarations. And there are users who are coupled to the declaration. They are the ones who have to pay for the declaration. So t…

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

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