# Rails

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

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

---

## [Mogrel Clusters with apache on Windows](https://www.ruby-forum.com/t/mogrel-clusters-with-apache-on-windows/91212)

<div class="topic-metadata">

**Author:** [@andrewonrails](https://www.ruby-forum.com/u/andrewonrails)\
**Replies:** 1\
**Last updated:** [April 6, 2007, 4:06am UTC](https://www.ruby-forum.com/t/mogrel-clusters-with-apache-on-windows/91212 "2007-04-06T04:06:15Z")

</div>

I have read some posts that give conflicting info on whether it is possible to run mongrel clusters on Windows with apache. Is it possible?, if possible is it stable? I don’t have an option of \*nix. Andrew

---

## [Has many with multiple joins](https://www.ruby-forum.com/t/has-many-with-multiple-joins/91227)

<div class="topic-metadata">

**Author:** [@Alex\_Kroman](https://www.ruby-forum.com/u/Alex_Kroman)\
**Replies:** 1\
**Last updated:** [April 6, 2007, 3:24am UTC](https://www.ruby-forum.com/t/has-many-with-multiple-joins/91227 "2007-04-06T03:24:12Z")

</div>

I have the following data model for a simple blog application. A user is in many groups and posts many entries. Every group displays the entries of everyone who is a member of that group. The models look like this: U…

---

## [Relationships](https://www.ruby-forum.com/t/relationships/91259)

<div class="topic-metadata">

**Author:** [@Shanon](https://www.ruby-forum.com/u/Shanon)\
**Replies:** 0\
**Last updated:** [April 6, 2007, 2:42am UTC](https://www.ruby-forum.com/t/relationships/91259 "2007-04-06T02:42:23Z")

</div>

How does one setup relations between table I have the has\_many and belongs\_to in the correct places (hopefully) but i think i have the migrations in the incorrect order A user can create many jobs so i have user has…

---

## [I need to link an item in the 'yield'](https://www.ruby-forum.com/t/i-need-to-link-an-item-in-the-yield/91242)

<div class="topic-metadata">

**Author:** [@nubyonrails37](https://www.ruby-forum.com/u/nubyonrails37)\
**Replies:** 1\
**Last updated:** [April 6, 2007, 2:31am UTC](https://www.ruby-forum.com/t/i-need-to-link-an-item-in-the-yield/91242 "2007-04-06T02:31:01Z")

</div>

Code below displays pitchers attached to a given scoreboard – but i want to be able to edit the pitchers using this page to click ‘edit’ from. Is there a way i can have the pitcher’s name be a hyperlink, and i need t…

---

## [Programmatically disabling validates\_presence\_of for an inst](https://www.ruby-forum.com/t/programmatically-disabling-validates-presence-of-for-an-inst/91145)

<div class="topic-metadata">

**Author:** [@ntran](https://www.ruby-forum.com/u/ntran)\
**Replies:** 3\
**Last updated:** [April 6, 2007, 2:22am UTC](https://www.ruby-forum.com/t/programmatically-disabling-validates-presence-of-for-an-inst/91145 "2007-04-06T02:22:00Z")

</div>

I have a number of models with various data validations, e.g: class Task \< ActiveRecord::Base validates\_presence\_of :comment validates\_presence\_of :complaint validates\_inclusion\_of :status, :in =\> TASK\_STATUSES vali…

---

## [Struggling with upgrade from 1.1.6](https://www.ruby-forum.com/t/struggling-with-upgrade-from-1-1-6/91258)

<div class="topic-metadata">

**Author:** [@craigrails](https://www.ruby-forum.com/u/craigrails)\
**Replies:** 1\
**Last updated:** [April 6, 2007, 2:16am UTC](https://www.ruby-forum.com/t/struggling-with-upgrade-from-1-1-6/91258 "2007-04-06T02:16:59Z")

</div>

perhaps I did it backwards but I upgraded rails before rubygems but it should work but doesn’t. (I’ve since done a gem cleanup) In a brand new rails directory… $ script/server --trace ./script/…/config/boot.rb:29: un…

---

## [Config/environment.rb](https://www.ruby-forum.com/t/config-environment-rb/85954)

<div class="topic-metadata">

**Author:** [@hatless](https://www.ruby-forum.com/u/hatless)\
**Replies:** 4\
**Last updated:** [April 6, 2007, 1:20am UTC](https://www.ruby-forum.com/t/config-environment-rb/85954 "2007-04-06T01:20:56Z")

</div>

I just recently started using the file\_column plugin. I have an easy time getting it to upload files, but I can seem to get it to work on the view. I get the error “undefined method \`image\_relative\_path’”. I read the …

---

## [A search engine coded with rails and ferret](https://www.ruby-forum.com/t/a-search-engine-coded-with-rails-and-ferret/91254)

<div class="topic-metadata">

**Author:** [@john\_old](https://www.ruby-forum.com/u/john_old)\
**Replies:** 0\
**Last updated:** [April 6, 2007, 12:47am UTC](https://www.ruby-forum.com/t/a-search-engine-coded-with-rails-and-ferret/91254 "2007-04-06T00:47:52Z")

</div>

A search engine coded with rails and ferret http://www.teenwag.com/search?q=Anna

---

## [Plesk 8.1 / Mongrel](https://www.ruby-forum.com/t/plesk-8-1-mongrel/91206)

<div class="topic-metadata">

**Author:** [@jcontonio](https://www.ruby-forum.com/u/jcontonio)\
**Replies:** 1\
**Last updated:** [April 6, 2007, 12:21am UTC](https://www.ruby-forum.com/t/plesk-8-1-mongrel/91206 "2007-04-06T00:21:47Z")

</div>

I have been searching online and cant find a great tutorial on how to get apache 2.2 and Mongrel playing nice on a Plesk 8.1 box. I thought maybe I could find something here but no results come up for Plesk. I’m sure …

---

## [Agile Web Development Question](https://www.ruby-forum.com/t/agile-web-development-question/91248)

<div class="topic-metadata">

**Author:** [@bruparel](https://www.ruby-forum.com/u/bruparel)\
**Replies:** 0\
**Last updated:** [April 5, 2007, 11:34pm UTC](https://www.ruby-forum.com/t/agile-web-development-question/91248 "2007-04-05T23:34:32Z")

</div>

This is a question about Integration Tests from Agile Web D. book - 2nd Edition. The integration test is contained in the file “user\_stories\_test.rb” and given on page 208 of the book. I can run the test fine and it …

---

## [Add record to database via form](https://www.ruby-forum.com/t/add-record-to-database-via-form/91184)

<div class="topic-metadata">

**Author:** [@Kniv7s](https://www.ruby-forum.com/u/Kniv7s)\
**Replies:** 1\
**Last updated:** [April 5, 2007, 11:12pm UTC](https://www.ruby-forum.com/t/add-record-to-database-via-form/91184 "2007-04-05T23:12:12Z")

</div>

I left RoR few months ago and I’ve never used it very much, so I’ve a small problem in the development of my application. Db (mysql). Table: learned\_things The form: \<%= form\_tag :action=\>“add”, :method=\>“post” %\> T…

---

## [Is the mailing list still receiving messages?](https://www.ruby-forum.com/t/is-the-mailing-list-still-receiving-messages/91216)

<div class="topic-metadata">

**Author:** [@danielb](https://www.ruby-forum.com/u/danielb)\
**Replies:** 1\
**Last updated:** [April 5, 2007, 10:49pm UTC](https://www.ruby-forum.com/t/is-the-mailing-list-still-receiving-messages/91216 "2007-04-05T22:49:39Z")

</div>

Hi all, I haven’t received any emails from removed\_email\_address@domain.invalid for a few hours now. Is anyone else experiencing this? I hope they haven’t started blocking it at work… Thanks, Dan

---

## [Menu and Sitemap Component for RoR](https://www.ruby-forum.com/t/menu-and-sitemap-component-for-ror/91003)

<div class="topic-metadata">

**Author:** [@kena](https://www.ruby-forum.com/u/kena)\
**Replies:** 4\
**Last updated:** [April 5, 2007, 10:28pm UTC](https://www.ruby-forum.com/t/menu-and-sitemap-component-for-ror/91003 "2007-04-05T22:28:28Z")

</div>

Do we have a Menu and Sitemap Component for RoR?

---

## [Human-friendly time period descriptions](https://www.ruby-forum.com/t/human-friendly-time-period-descriptions/91159)

<div class="topic-metadata">

**Author:** [@chriscole](https://www.ruby-forum.com/u/chriscole)\
**Replies:** 1\
**Last updated:** [April 5, 2007, 10:25pm UTC](https://www.ruby-forum.com/t/human-friendly-time-period-descriptions/91159 "2007-04-05T22:25:38Z")

</div>

Thought I’d post this as it might be useful to someone else as well. I was looking for a way to convert the difference in duration between two times, in seconds, to a friendly, human-readable form such as “2 weeks, 3 …

---

## [AWS RPC API's with dynamic params](https://www.ruby-forum.com/t/aws-rpc-apis-with-dynamic-params/91236)

<div class="topic-metadata">

**Author:** [@jmaenpaa](https://www.ruby-forum.com/u/jmaenpaa)\
**Replies:** 0\
**Last updated:** [April 5, 2007, 9:51pm UTC](https://www.ruby-forum.com/t/aws-rpc-apis-with-dynamic-params/91236 "2007-04-05T21:51:18Z")

</div>

Hi All, I’ve been looking at the ActiveWebService::Base::API in rails. I’m trying to creat several function that are generally like set\_state(statename, \*args). There is simply not a good way to determine the type …

---

## [Multiple Non-Arbitrary File Uploads](https://www.ruby-forum.com/t/multiple-non-arbitrary-file-uploads/91233)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [April 5, 2007, 9:41pm UTC](https://www.ruby-forum.com/t/multiple-non-arbitrary-file-uploads/91233 "2007-04-05T21:41:33Z")

</div>

Can anyone point me to a good way to have multiple non-arbitrary file uploads on Rails, possibly with a plugin? I came up with my own way using a single generic file upload model and single table inheritance, but I wa…

---

## [Selectively failing when mongrel restarted with monit \[was:](https://www.ruby-forum.com/t/selectively-failing-when-mongrel-restarted-with-monit-was/91223)

<div class="topic-metadata">

**Author:** [@cwt137](https://www.ruby-forum.com/u/cwt137)\
**Replies:** 2\
**Last updated:** [April 5, 2007, 9:04pm UTC](https://www.ruby-forum.com/t/selectively-failing-when-mongrel-restarted-with-monit-was/91223 "2007-04-05T21:04:29Z")

</div>

OK. Made a bit of progress on this. Have setup a duplicate server instance with mongrel\_cluster on it (really glad I went with Xen now) and also done a bit of following back the code with ruby-debug. I can now reprodu…

---

## [How do i see SQL in my logs?](https://www.ruby-forum.com/t/how-do-i-see-sql-in-my-logs/91201)

<div class="topic-metadata">

**Author:** [@Gedanken](https://www.ruby-forum.com/u/Gedanken)\
**Replies:** 1\
**Last updated:** [April 5, 2007, 8:57pm UTC](https://www.ruby-forum.com/t/how-do-i-see-sql-in-my-logs/91201 "2007-04-05T20:57:28Z")

</div>

Warning, long time coder but new to RoR I am not seeing anywhere near the level of logging i want in my logs, for the sql stuff. regular ruby logging ( in development.log) seems ok. For example, Mysql::Error (Acces…

---

## [NFS and Rails - whats the deal?](https://www.ruby-forum.com/t/nfs-and-rails-whats-the-deal/91169)

<div class="topic-metadata">

**Author:** [@rsanheim](https://www.ruby-forum.com/u/rsanheim)\
**Replies:** 5\
**Last updated:** [April 5, 2007, 8:33pm UTC](https://www.ruby-forum.com/t/nfs-and-rails-whats-the-deal/91169 "2007-04-05T20:33:22Z")

</div>

So for page caching across a cluster, or static resources in general w/ a rails cluster, is NFS a bad idea? I’ve read a lot of posts where folks talk about how unreliable NFS has been in the past, and it has issues w…

---

## [Fw: Capistrano problem deploying to production database only](https://www.ruby-forum.com/t/fw-capistrano-problem-deploying-to-production-database-only/91228)

<div class="topic-metadata">

**Author:** [@raul](https://www.ruby-forum.com/u/raul)\
**Replies:** 0\
**Last updated:** [April 5, 2007, 8:06pm UTC](https://www.ruby-forum.com/t/fw-capistrano-problem-deploying-to-production-database-only/91228 "2007-04-05T20:06:20Z")

</div>

Oops. I had other problems that needed fixing first. I was missing the net-ssh gem from the gem install net-ssh on all the poroduction servers. So now I just have a problem getting the migration to work. I’m still …

---

## [Can RJS cause page refresh?](https://www.ruby-forum.com/t/can-rjs-cause-page-refresh/91225)

<div class="topic-metadata">

**Author:** [@helzer](https://www.ruby-forum.com/u/helzer)\
**Replies:** 3\
**Last updated:** [April 5, 2007, 7:53pm UTC](https://www.ruby-forum.com/t/can-rjs-cause-page-refresh/91225 "2007-04-05T19:53:19Z")

</div>

Hi everyone, I’m using AJAX to replace parts of a page, but sometimes, I need to refresh the entire page. Is it possible to keep using the form\_remote helpers and RJS views but still cause the entire page to reload (…

---

## [\[ANN\] daemon\_generator 0.5.1 released](https://www.ruby-forum.com/t/ann-daemon-generator-0-5-1-released/84399)

<div class="topic-metadata">

**Author:** [@kylemathews](https://www.ruby-forum.com/u/kylemathews)\
**Replies:** 1\
**Last updated:** [April 5, 2007, 7:52pm UTC](https://www.ruby-forum.com/t/ann-daemon-generator-0-5-1-released/84399 "2007-04-05T19:52:14Z")

</div>

This release updates daemon\_generator to be compatible with changes introduced in the Rails 1.2.x release. Daemon\_generator leverages the daemons gem to provide a lightweight alternative to BackgrounDrb. It provides …

---

## [How to DRY This? (params=\>var?)](https://www.ruby-forum.com/t/how-to-dry-this-params-var/91217)

<div class="topic-metadata">

**Author:** [@sneptune](https://www.ruby-forum.com/u/sneptune)\
**Replies:** 4\
**Last updated:** [April 5, 2007, 7:27pm UTC](https://www.ruby-forum.com/t/how-to-dry-this-params-var/91217 "2007-04-05T19:27:09Z")

</div>

Hi everyone, Is it possible to dry this code? recipients = params\[:mail\]\[:recipients\] from = params\[:mail\]\[:from\] subject = params\[:mail\]\[:subject\] email\_body = params\[:mail\]\[:email\_body\] user = params\[:mail\]\[:user…

---

## [ON DELETE RESTRICT: Problems with fixtures loading?](https://www.ruby-forum.com/t/on-delete-restrict-problems-with-fixtures-loading/91205)

<div class="topic-metadata">

**Author:** [@josh](https://www.ruby-forum.com/u/josh)\
**Replies:** 2\
**Last updated:** [April 5, 2007, 7:08pm UTC](https://www.ruby-forum.com/t/on-delete-restrict-problems-with-fixtures-loading/91205 "2007-04-05T19:08:25Z")

</div>

Hi all I’m quite unsure about this topic, so before hacking some stuff I try to get some help here. :slight\_smile: I use the foreign keys migrations plugin from red hill consulting which automatically creates foreign…

---

## [A new server has gone away message](https://www.ruby-forum.com/t/a-new-server-has-gone-away-message/91220)

<div class="topic-metadata">

**Author:** [@technodolt](https://www.ruby-forum.com/u/technodolt)\
**Replies:** 0\
**Last updated:** [April 5, 2007, 6:53pm UTC](https://www.ruby-forum.com/t/a-new-server-has-gone-away-message/91220 "2007-04-05T18:53:13Z")

</div>

Ok, so, I’ve read ticket #428 forwards, backwards, and sideways… and up until a few days ago, had never had a problem. However, I now have one. One of my applications, due to a plugin, was accessing the DB during the …

---

## [\[ANN\] CriteriaQuery](https://www.ruby-forum.com/t/ann-criteriaquery/67829)

<div class="topic-metadata">

**Author:** [@fangheuschrecke](https://www.ruby-forum.com/u/fangheuschrecke)\
**Replies:** 5\
**Last updated:** [April 5, 2007, 6:52pm UTC](https://www.ruby-forum.com/t/ann-criteriaquery/67829 "2007-04-05T18:52:13Z")

</div>

The first public release of the CriteriaQuery plugin is available. CriteriaQuery is an extension to the ActiveRecord find mechanism. It allows object-oriented construction of queries. In short, it lets you write: Per…

---

## [Handling Multiple Uploads on One Page](https://www.ruby-forum.com/t/handling-multiple-uploads-on-one-page/90363)

<div class="topic-metadata">

**Author:** [@starnix17](https://www.ruby-forum.com/u/starnix17)\
**Replies:** 3\
**Last updated:** [April 5, 2007, 6:16pm UTC](https://www.ruby-forum.com/t/handling-multiple-uploads-on-one-page/90363 "2007-04-05T18:16:10Z")

</div>

I’ve been trying to create a page like this: http://img175.imageshack.us/img175/7323/mephistohw0.png I was able to browse through the Mephisto source and figure out the JavaScript to add upload fields dynamically, but…

---

## [Subfolder on meditemple](https://www.ruby-forum.com/t/subfolder-on-meditemple/91213)

<div class="topic-metadata">

**Author:** [@jetienne](https://www.ruby-forum.com/u/jetienne)\
**Replies:** 0\
**Last updated:** [April 5, 2007, 6:03pm UTC](https://www.ruby-forum.com/t/subfolder-on-meditemple/91213 "2007-04-05T18:03:37Z")

</div>

Hi, I have some issues with some deployment on MediaTemple. So, first the mtr app is installed properly and rails app works fine if webpath is test.domain.com. But then, by simply changing the web path to: ~$ mtr st…

---

## [Make jpg thumbnails from vids in database](https://www.ruby-forum.com/t/make-jpg-thumbnails-from-vids-in-database/90818)

<div class="topic-metadata">

**Author:** [@azgar](https://www.ruby-forum.com/u/azgar)\
**Replies:** 18\
**Last updated:** [April 5, 2007, 5:52pm UTC](https://www.ruby-forum.com/t/make-jpg-thumbnails-from-vids-in-database/90818 "2007-04-05T17:52:08Z")

</div>

Hey does anyone know of any resources (web, books, anything) that could explain how to make a rails app “read” a file in the database like a video file and creates a jpg thumbnail? This would be very helpful as I am t…

---

## [Rake test swallowing errors](https://www.ruby-forum.com/t/rake-test-swallowing-errors/91211)

<div class="topic-metadata">

**Author:** [@matt](https://www.ruby-forum.com/u/matt)\
**Replies:** 0\
**Last updated:** [April 5, 2007, 5:49pm UTC](https://www.ruby-forum.com/t/rake-test-swallowing-errors/91211 "2007-04-05T17:49:08Z")

</div>

I am trying to write a rake commit task so that before I commit changes to svn it executes my unit tests. I have a failing unit test, but the test:units is not raising the exception so my commit task still executes. E…

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

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