# Rails

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

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

---

## [\[ANN\] Haml 1.5!](https://www.ruby-forum.com/t/ann-haml-1-5/89095)

<div class="topic-metadata">

**Author:** [@nex3](https://www.ruby-forum.com/u/nex3)\
**Replies:** 0\
**Last updated:** [March 17, 2007, 6:10am UTC](https://www.ruby-forum.com/t/ann-haml-1-5/89095 "2007-03-17T06:10:29Z")

</div>

Haml 1.5 has been released! Download the new version and give it a try. For Rails: “./script/plugin install http://svn.hamptoncatlin.com/svn/haml/tags/stable” Standalone: “gem install haml” For those of you who don’…

---

## [\[portuguese\]Grupo Brasileiro sobre ROR](https://www.ruby-forum.com/t/portuguese-grupo-brasileiro-sobre-ror/89077)

<div class="topic-metadata">

**Author:** [@dudu](https://www.ruby-forum.com/u/dudu)\
**Replies:** 2\
**Last updated:** [March 17, 2007, 5:30am UTC](https://www.ruby-forum.com/t/portuguese-grupo-brasileiro-sobre-ror/89077 "2007-03-17T05:30:26Z")

</div>

Convido aos intusiastas que acreditam nessa linguagem a participar do novo grupo em lingua portuguesa. http://groups.google.com/group/rrig Obrigado. Obs: As discussões serão em português mas a descrição é inglês, só …

---

## [Better from ebuild or gem?](https://www.ruby-forum.com/t/better-from-ebuild-or-gem/88913)

<div class="topic-metadata">

**Author:** [@david](https://www.ruby-forum.com/u/david)\
**Replies:** 4\
**Last updated:** [March 17, 2007, 5:07am UTC](https://www.ruby-forum.com/t/better-from-ebuild-or-gem/88913 "2007-03-17T05:07:24Z")

</div>

hi, with gentoo what is better? install things with ebuild/emerge or with gem? for example rails, capistrano, etc

---

## [Webrick failing with "NameError: cannot remove Object::Unkno](https://www.ruby-forum.com/t/webrick-failing-with-nameerror-cannot-remove-object-unkno/89088)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [March 17, 2007, 5:02am UTC](https://www.ruby-forum.com/t/webrick-failing-with-nameerror-cannot-remove-object-unkno/89088 "2007-03-17T05:02:24Z")

</div>

Hi, I just downloaded the latest rails, and tried to run webrick. I get this strange set of error messages. It looks like the real error is NameError: cannot remove Object::UnknownPropertyMethod I never had this p…

---

## [\[ANN\] Dojo Toolbocks - v1.0.0 (Ruby on Rails Plugin)](https://www.ruby-forum.com/t/ann-dojo-toolbocks-v1-0-0-ruby-on-rails-plugin/89089)

<div class="topic-metadata">

**Author:** [@nshb](https://www.ruby-forum.com/u/nshb)\
**Replies:** 0\
**Last updated:** [March 17, 2007, 4:51am UTC](https://www.ruby-forum.com/t/ann-dojo-toolbocks-v1-0-0-ruby-on-rails-plugin/89089 "2007-03-17T04:51:23Z")

</div>

In true engine style, here is a new alternative to the default javascript libraries that come with Rails. Dojo, the massively successful and huge repository of established widgets most with internationalization librar…

---

## [Out of Office reply - Re: \[ANN\] D ojo Toolbocks - v1.0.0 (R](https://www.ruby-forum.com/t/out-of-office-reply-re-ann-d-ojo-toolbocks-v1-0-0-r/102877)

<div class="topic-metadata">

**Author:** [@tekin](https://www.ruby-forum.com/u/tekin)\
**Replies:** 0\
**Last updated:** [March 17, 2007, 4:51am UTC](https://www.ruby-forum.com/t/out-of-office-reply-re-ann-d-ojo-toolbocks-v1-0-0-r/102877 "2007-03-17T04:51:23Z")

</div>

Hi, I shall be out of the office from Monday 12th of March to Monday 19th. If you have an urgent enquiry, please contact either Mike or Liam at the Raid office. Regards, Tekin S. Raid Associates Ltd

---

## [Helper content\_tag and Blocks](https://www.ruby-forum.com/t/helper-content-tag-and-blocks/88945)

<div class="topic-metadata">

**Author:** [@jmckible](https://www.ruby-forum.com/u/jmckible)\
**Replies:** 1\
**Last updated:** [March 17, 2007, 3:58am UTC](https://www.ruby-forum.com/t/helper-content-tag-and-blocks/88945 "2007-03-17T03:58:11Z")

</div>

The content\_tag helper allows you to do things like: content\_tag(:p, “Hello world!”) =\> Hello world! It can take in blocks, for functionality like this: \<% content\_tag :div, :class =\> “strong” do -%\> Hello world! \<…

---

## [Capistrano: after\_deploy doesn't run if I deploy\_with\_migrat](https://www.ruby-forum.com/t/capistrano-after-deploy-doesnt-run-if-i-deploy-with-migrat/89059)

<div class="topic-metadata">

**Author:** [@pergesu](https://www.ruby-forum.com/u/pergesu)\
**Replies:** 3\
**Last updated:** [March 17, 2007, 3:36am UTC](https://www.ruby-forum.com/t/capistrano-after-deploy-doesnt-run-if-i-deploy-with-migrat/89059 "2007-03-17T03:36:19Z")

</div>

I’ve got an after\_deploy task in my cap script. If I cap deploy, the task executes. If I do cap deploy\_with\_migrations, it doesn’t. Do I have to define the deploy\_with\_migrations task to include this after\_deploy t…

---

## [Ruby Position - Bethpage NY](https://www.ruby-forum.com/t/ruby-position-bethpage-ny/89085)

<div class="topic-metadata">

**Author:** [@Katie](https://www.ruby-forum.com/u/Katie)\
**Replies:** 0\
**Last updated:** [March 17, 2007, 2:31am UTC](https://www.ruby-forum.com/t/ruby-position-bethpage-ny/89085 "2007-03-17T02:31:16Z")

</div>

We are looking for a programmer with Ruby experience for a consulting position in Bethpage NY (Long Island). The consultant would work on a small team to automate some paper processes. The position will last for 6 mon…

---

## [Renaming RESTful actions](https://www.ruby-forum.com/t/renaming-restful-actions/89053)

<div class="topic-metadata">

**Author:** [@jruyle](https://www.ruby-forum.com/u/jruyle)\
**Replies:** 7\
**Last updated:** [March 17, 2007, 1:24am UTC](https://www.ruby-forum.com/t/renaming-restful-actions/89053 "2007-03-17T01:24:09Z")

</div>

I’ve got a RESTful controller that takes in a file upload as the main input into a table. I want to rename POST:resources\_url to hit #upload instead of #create. Is there something I can specify on map.resources that …

---

## [Capistrano/rake integration is deprecated](https://www.ruby-forum.com/t/capistrano-rake-integration-is-deprecated/89042)

<div class="topic-metadata">

**Author:** [@andy-spb](https://www.ruby-forum.com/u/andy-spb)\
**Replies:** 1\
**Last updated:** [March 17, 2007, 1:16am UTC](https://www.ruby-forum.com/t/capistrano-rake-integration-is-deprecated/89042 "2007-03-17T01:16:08Z")

</div>

Hello everybody, I’m trying to include capistrano support into RoR application, as descripbed in the 2nd version of the Agile Rails book. But after invoking the command : rake remote:cold\_deploy I’ve received the mes…

---

## [Reporting Form Errors](https://www.ruby-forum.com/t/reporting-form-errors/89080)

<div class="topic-metadata">

**Author:** [@doug](https://www.ruby-forum.com/u/doug)\
**Replies:** 0\
**Last updated:** [March 17, 2007, 12:44am UTC](https://www.ruby-forum.com/t/reporting-form-errors/89080 "2007-03-17T00:44:05Z")

</div>

Sometimes I pass values from a form to its associated action by assigning that value to hidden field in the form. The intention is to use the passed value to modify the behavior of the action. So, it’s sort of a conf…

---

## [Wrap conditions around many find requests](https://www.ruby-forum.com/t/wrap-conditions-around-many-find-requests/89079)

<div class="topic-metadata">

**Author:** [@Nathaniel](https://www.ruby-forum.com/u/Nathaniel)\
**Replies:** 1\
**Last updated:** [March 17, 2007, 12:44am UTC](https://www.ruby-forum.com/t/wrap-conditions-around-many-find-requests/89079 "2007-03-17T00:44:05Z")

</div>

Dear all, Is it possible to declare Active Record ‘find’ conditions and have these ‘:conditions’ apply to numerous find queries on a table without having to re-declare the conditions on every line where you have a fin…

---

## [Deprecation Notices for 1.2](https://www.ruby-forum.com/t/deprecation-notices-for-1-2/89075)

<div class="topic-metadata">

**Author:** [@robertjames](https://www.ruby-forum.com/u/robertjames)\
**Replies:** 1\
**Last updated:** [March 17, 2007, 12:27am UTC](https://www.ruby-forum.com/t/deprecation-notices-for-1-2/89075 "2007-03-17T00:27:04Z")

</div>

Is there any way to shut off the deprecation notices for 1.2? Some of them are hard to fix without breaking 1.1 support.

---

## [\[portuguese\]Grupo Brasileiro sobre ROR](https://www.ruby-forum.com/t/portuguese-grupo-brasileiro-sobre-ror/89076)

<div class="topic-metadata">

**Author:** [@dudu](https://www.ruby-forum.com/u/dudu)\
**Replies:** 0\
**Last updated:** [March 17, 2007, 12:03am UTC](https://www.ruby-forum.com/t/portuguese-grupo-brasileiro-sobre-ror/89076 "2007-03-17T00:03:44Z")

</div>

convido aos intusiastas que acreditam nessa linguagem a participar do grupo: http://groups.google.com/group/rrig

---

## [Requiring one field or another](https://www.ruby-forum.com/t/requiring-one-field-or-another/89060)

<div class="topic-metadata">

**Author:** [@tomx](https://www.ruby-forum.com/u/tomx)\
**Replies:** 2\
**Last updated:** [March 16, 2007, 11:11pm UTC](https://www.ruby-forum.com/t/requiring-one-field-or-another/89060 "2007-03-16T23:11:59Z")

</div>

I’m fairly new to Rails so I’m having some trouble with what is probably an easy task. Any assistance would be appreciated. I have two fields, I only have to have one of them filled in… At the moment I’m working on s…

---

## [Modifying title of browser window when rendering a file](https://www.ruby-forum.com/t/modifying-title-of-browser-window-when-rendering-a-file/89073)

<div class="topic-metadata">

**Author:** [@weyus](https://www.ruby-forum.com/u/weyus)\
**Replies:** 0\
**Last updated:** [March 16, 2007, 10:31pm UTC](https://www.ruby-forum.com/t/modifying-title-of-browser-window-when-rendering-a-file/89073 "2007-03-16T22:31:35Z")

</div>

All, I am using this to render a file to a browser window (a popup) - send\_file(‘xyz’, :type =\> ‘application/pdf’, :disposition =\> ‘inline’) By default, the window’s title bar shows the host and the name of the contr…

---

## [Funky deadlocking of activerecord thread by Test::Unit](https://www.ruby-forum.com/t/funky-deadlocking-of-activerecord-thread-by-test-unit/89057)

<div class="topic-metadata">

**Author:** [@soroe](https://www.ruby-forum.com/u/soroe)\
**Replies:** 0\
**Last updated:** [March 16, 2007, 8:51pm UTC](https://www.ruby-forum.com/t/funky-deadlocking-of-activerecord-thread-by-test-unit/89057 "2007-03-16T20:51:57Z")

</div>

Hey Guys, The following works fine. TaskInterrupt is a ActiveRecord subclass. require File.dirname(FILE) + ‘/…/test\_helper’ def test\_1 aproc = lambda{ TaskInterrupt.new.pause(‘blue’) } threads = Thread.new(aproc) {…

---

## [Newbie](https://www.ruby-forum.com/t/newbie/89052)

<div class="topic-metadata">

**Author:** [@prgmr](https://www.ruby-forum.com/u/prgmr)\
**Replies:** 2\
**Last updated:** [March 16, 2007, 8:47pm UTC](https://www.ruby-forum.com/t/newbie/89052 "2007-03-16T20:47:20Z")

</div>

how do i get started?? need everything from hardware advice on server plus hardware advice on dev station, etc.

---

## [Adding key value pairs in a hash](https://www.ruby-forum.com/t/adding-key-value-pairs-in-a-hash/89034)

<div class="topic-metadata">

**Author:** [@reg](https://www.ruby-forum.com/u/reg)\
**Replies:** 6\
**Last updated:** [March 16, 2007, 8:41pm UTC](https://www.ruby-forum.com/t/adding-key-value-pairs-in-a-hash/89034 "2007-03-16T20:41:20Z")

</div>

I have a controller which is passed params\[:transfer\] from a form. I want to add some key vale pairs so the .create(params\[:transfer\] used later has the other data base columns not populated in the form. thanks reg

---

## [Lorem ipsum generator](https://www.ruby-forum.com/t/lorem-ipsum-generator/89055)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [March 16, 2007, 7:39pm UTC](https://www.ruby-forum.com/t/lorem-ipsum-generator/89055 "2007-03-16T19:39:11Z")

</div>

yeah, it can be faster slicker and shorter but works fine. #======================================== lorem #======================================== def self.lorem(word\_count = 20) #===== words words =\<\<EOS Lorem ip…

---

## [Web log analyzer for rails](https://www.ruby-forum.com/t/web-log-analyzer-for-rails/88875)

<div class="topic-metadata">

**Author:** [@wheresdave](https://www.ruby-forum.com/u/wheresdave)\
**Replies:** 2\
**Last updated:** [March 16, 2007, 7:30pm UTC](https://www.ruby-forum.com/t/web-log-analyzer-for-rails/88875 "2007-03-16T19:30:10Z")

</div>

Does anyone have a suggestion on an analyzer that would work well with a rails app? Curious to know what everyone is using as my host does not provide one so I am choosing my own. Thanx, Dave

---

## [Routing question](https://www.ruby-forum.com/t/routing-question/89005)

<div class="topic-metadata">

**Author:** [@thelorax](https://www.ruby-forum.com/u/thelorax)\
**Replies:** 3\
**Last updated:** [March 16, 2007, 7:20pm UTC](https://www.ruby-forum.com/t/routing-question/89005 "2007-03-16T19:20:08Z")

</div>

Hello. I’m adding an admin section to my site and have configured routing along the following lines: map.connect ‘admin/:controller/:action/:id’ The above works fine. However, if I have controller ‘A’, it is still …

---

## [Where do custom exceptions belong?](https://www.ruby-forum.com/t/where-do-custom-exceptions-belong/89049)

<div class="topic-metadata">

**Author:** [@nielsene](https://www.ruby-forum.com/u/nielsene)\
**Replies:** 0\
**Last updated:** [March 16, 2007, 7:19pm UTC](https://www.ruby-forum.com/t/where-do-custom-exceptions-belong/89049 "2007-03-16T19:19:08Z")

</div>

I’m curious where custom exceptions are usually stored in a rails app. I want to create a UserException that I intend to throw if the user tries to do something that causes an error such as trying to delete something …

---

## [Edge rails, REST, erb & partials](https://www.ruby-forum.com/t/edge-rails-rest-erb-partials/89046)

<div class="topic-metadata">

**Author:** [@Matthieu\_S](https://www.ruby-forum.com/u/Matthieu_S)\
**Replies:** 0\
**Last updated:** [March 16, 2007, 7:02pm UTC](https://www.ruby-forum.com/t/edge-rails-rest-erb-partials/89046 "2007-03-16T19:02:14Z")

</div>

Hello, I’m having some trouble rendering some partials whilst migrating some code to be RESTful, using the latest version of edge rails. I’ve run ruby script/generate scaffold\_resource & made the change to routes.rb …

---

## [Development mode Mongrel slower than WEBrick?](https://www.ruby-forum.com/t/development-mode-mongrel-slower-than-webrick/89036)

<div class="topic-metadata">

**Author:** [@plambert](https://www.ruby-forum.com/u/plambert)\
**Replies:** 1\
**Last updated:** [March 16, 2007, 6:16pm UTC](https://www.ruby-forum.com/t/development-mode-mongrel-slower-than-webrick/89036 "2007-03-16T18:16:01Z")

</div>

I just installed Mongrel for my prototype rails application (running in development mode). I was surprised to see that page accesses to my application are now noticeably slower (e.g. browser load times of 4s instead …

---

## [Legacy database support (iSeries / as/400)](https://www.ruby-forum.com/t/legacy-database-support-iseries-as-400/88926)

<div class="topic-metadata">

**Author:** [@shawn](https://www.ruby-forum.com/u/shawn)\
**Replies:** 4\
**Last updated:** [March 16, 2007, 6:07pm UTC](https://www.ruby-forum.com/t/legacy-database-support-iseries-as-400/88926 "2007-03-16T18:07:00Z")

</div>

I would really like to incorporate Ruby in my organization, but I have been mostly limited to Java (for the past 10 years or so) due to the availability of mature JDBC drivers (particularly for as/400 aka i5 aka iSeri…

---

## [Can i limit a has\_many photos per user?](https://www.ruby-forum.com/t/can-i-limit-a-has-many-photos-per-user/89038)

<div class="topic-metadata">

**Author:** [@treebeard](https://www.ruby-forum.com/u/treebeard)\
**Replies:** 0\
**Last updated:** [March 16, 2007, 6:02pm UTC](https://www.ruby-forum.com/t/can-i-limit-a-has-many-photos-per-user/89038 "2007-03-16T18:02:00Z")

</div>

is there a rails way? or should i just a do a before\_save :check\_limit, and just tally up the amount of photos before saving? so maybe do something like if user.photos.count == 4, max limit set. etc… thanks

---

## [How to test a plugin with an around\_filter?](https://www.ruby-forum.com/t/how-to-test-a-plugin-with-an-around-filter/89037)

<div class="topic-metadata">

**Author:** [@starmaerker](https://www.ruby-forum.com/u/starmaerker)\
**Replies:** 0\
**Last updated:** [March 16, 2007, 5:59pm UTC](https://www.ruby-forum.com/t/how-to-test-a-plugin-with-an-around-filter/89037 "2007-03-16T17:59:59Z")

</div>

Hello, Does anybody know how to test a plugin module that looks like the one below? It’s designed to be included by a controller, typically the application controller. My specific questions are: Can I get at my do…

---

## [Engines Development Best Practices](https://www.ruby-forum.com/t/engines-development-best-practices/88979)

<div class="topic-metadata">

**Author:** [@James\_Ho](https://www.ruby-forum.com/u/James_Ho)\
**Replies:** 2\
**Last updated:** [March 16, 2007, 5:55pm UTC](https://www.ruby-forum.com/t/engines-development-best-practices/88979 "2007-03-16T17:55:56Z")

</div>

We have been developing with engines version 1.1.2 for some time. However, we are going through a major code cleanup. Our development happened organically, first we built a single rails app, then we realized we needed…

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

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