# Rails

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

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

---

## [Production environment without root access](https://www.ruby-forum.com/t/production-environment-without-root-access/127080)

<div class="topic-metadata">

**Author:** [@techwiz18](https://www.ruby-forum.com/u/techwiz18)\
**Replies:** 1\
**Last updated:** [January 24, 2008, 9:40pm UTC](https://www.ruby-forum.com/t/production-environment-without-root-access/127080 "2008-01-24T21:40:36Z")

</div>

Is there any way to set up a production Rails environment without root access?

---

## [How to support file downloads (e.g., PDFs, .docs)](https://www.ruby-forum.com/t/how-to-support-file-downloads-e-g-pdfs-docs/127086)

<div class="topic-metadata">

**Author:** [@sd.codewarrior](https://www.ruby-forum.com/u/sd.codewarrior)\
**Replies:** 2\
**Last updated:** [January 24, 2008, 9:30pm UTC](https://www.ruby-forum.com/t/how-to-support-file-downloads-e-g-pdfs-docs/127086 "2008-01-24T21:30:49Z")

</div>

I have a simple website in which I upload files (e.g., PDFs and .docs) for later download by visitors to the site. I store the files under public/images in a sub-directory corresponding to the particular file. An exa…

---

## [Smart Debugger (Ruby)](https://www.ruby-forum.com/t/smart-debugger-ruby/127083)

<div class="topic-metadata">

**Author:** [@kraman](https://www.ruby-forum.com/u/kraman)\
**Replies:** 0\
**Last updated:** [January 24, 2008, 8:58pm UTC](https://www.ruby-forum.com/t/smart-debugger-ruby/127083 "2008-01-24T20:58:55Z")

</div>

Hi All, Please find the smart debugger for ruby. it is an enchanced version of ruby’s default debugger with data rendering feature. http://develsdb.googlecode.com/svn/trunk/ruby/ http://develsdb.googlecode.com/svn/…

---

## [Attachment\_fu and really small files (and an extension?)](https://www.ruby-forum.com/t/attachment-fu-and-really-small-files-and-an-extension/126528)

<div class="topic-metadata">

**Author:** [@mcampbell](https://www.ruby-forum.com/u/mcampbell)\
**Replies:** 3\
**Last updated:** [January 24, 2008, 8:52pm UTC](https://www.ruby-forum.com/t/attachment-fu-and-really-small-files-and-an-extension/126528 "2008-01-24T20:52:23Z")

</div>

whats up guys…ive tried sifting through the archives of this forum but to no avail…i am using rick olson’s attachment\_fu (great stuff btw) but i run into problems when I have a really small file (like 20kb) and I go t…

---

## [Using object.find() in a loop not returning an array](https://www.ruby-forum.com/t/using-object-find-in-a-loop-not-returning-an-array/127072)

<div class="topic-metadata">

**Author:** [@rubylicious](https://www.ruby-forum.com/u/rubylicious)\
**Replies:** 4\
**Last updated:** [January 24, 2008, 8:06pm UTC](https://www.ruby-forum.com/t/using-object-find-in-a-loop-not-returning-an-array/127072 "2008-01-24T20:06:02Z")

</div>

I’m running a loop (illustrated below) that retrieves records from a table based on an id that might be different with each iteration. The loop uses the array scrns (composed of IDs) to find the related records in th…

---

## [.::: New Social Networking Site :::](https://www.ruby-forum.com/t/new-social-networking-site/127079)

<div class="topic-metadata">

**Author:** [@Mario\_Feonands](https://www.ruby-forum.com/u/Mario_Feonands)\
**Replies:** 0\
**Last updated:** [January 24, 2008, 8:02pm UTC](https://www.ruby-forum.com/t/new-social-networking-site/127079 "2008-01-24T20:02:29Z")

</div>

Hi !! How are you ? myLoveZone is a new social networking site designed for all the people around the world. Please support us by visiting our site. Visit Us @ Visit http://my.lovezone.ro Thank you very much.

---

## [How to parse my own custom "programming language"?](https://www.ruby-forum.com/t/how-to-parse-my-own-custom-programming-language/127074)

<div class="topic-metadata">

**Author:** [@josh](https://www.ruby-forum.com/u/josh)\
**Replies:** 2\
**Last updated:** [January 24, 2008, 7:03pm UTC](https://www.ruby-forum.com/t/how-to-parse-my-own-custom-programming-language/127074 "2008-01-24T19:03:48Z")

</div>

Hi all I’m brain storming on ways how to optimize the act of writing good CSS… My plan is to create some sort of Meta-CSS-Language that is parsed by a translation-processor which outputs the “normal” CSS code (packed…

---

## [Ruby on Rails in industry - publications?](https://www.ruby-forum.com/t/ruby-on-rails-in-industry-publications/126382)

<div class="topic-metadata">

**Author:** [@timhunter](https://www.ruby-forum.com/u/timhunter)\
**Replies:** 6\
**Last updated:** [January 24, 2008, 6:27pm UTC](https://www.ruby-forum.com/t/ruby-on-rails-in-industry-publications/126382 "2008-01-24T18:27:29Z")

</div>

Hi, I’m in my final year of a BSc Computer Science course (my final year project is on Rails) and have been seraching high and low for some publications on the success of Ruby on Rails within industry. I’m basically …

---

## [Problems with associations and sorting](https://www.ruby-forum.com/t/problems-with-associations-and-sorting/127070)

<div class="topic-metadata">

**Author:** [@jfoxny](https://www.ruby-forum.com/u/jfoxny)\
**Replies:** 0\
**Last updated:** [January 24, 2008, 6:11pm UTC](https://www.ruby-forum.com/t/problems-with-associations-and-sorting/127070 "2008-01-24T18:11:09Z")

</div>

I have the following code that always fails with “comparison of String with 0 failed”. Here’s the sort I’m trying to do: orders = SalesOrder.find(:all, :include =\> \[:latest\_type\]).sort{ |a,b| if a.latest\_type.nil? an…

---

## [Subdirectories in generator template directory](https://www.ruby-forum.com/t/subdirectories-in-generator-template-directory/127067)

<div class="topic-metadata">

**Author:** [@peter](https://www.ruby-forum.com/u/peter)\
**Replies:** 0\
**Last updated:** [January 24, 2008, 6:09pm UTC](https://www.ruby-forum.com/t/subdirectories-in-generator-template-directory/127067 "2008-01-24T18:09:44Z")

</div>

Hi all, I’m trying to create a generator. As there are quite a few files in my generator i decided it would be a good idea to make some subdirectories in the template directory. But now i can’t seem to copy the files…

---

## [Modifying has\_many list without saving](https://www.ruby-forum.com/t/modifying-has-many-list-without-saving/127017)

<div class="topic-metadata">

**Author:** [@Mozmonkey](https://www.ruby-forum.com/u/Mozmonkey)\
**Replies:** 4\
**Last updated:** [January 24, 2008, 5:58pm UTC](https://www.ruby-forum.com/t/modifying-has-many-list-without-saving/127017 "2008-01-24T17:58:02Z")

</div>

I have a multi-page form which creates/edits an event (model held in session) and it’s invites. When the event is edited I want the user to be able to modify the invites without saving. For example: invite = Invite.…

---

## [Strange numeric validation problem in ActiveRecord](https://www.ruby-forum.com/t/strange-numeric-validation-problem-in-activerecord/126961)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [January 24, 2008, 5:43pm UTC](https://www.ruby-forum.com/t/strange-numeric-validation-problem-in-activerecord/126961 "2008-01-24T17:43:53Z")

</div>

Hi, I am trying to do validation in an ActiveRecord object. I have a field called replay\_limit. Here is what happens when the web page user fills in invalid data into replay\_limit (which is declared as an integer i…

---

## [Multistage and mongrel\_cluster.yml](https://www.ruby-forum.com/t/multistage-and-mongrel-cluster-yml/126987)

<div class="topic-metadata">

**Author:** [@mememe](https://www.ruby-forum.com/u/mememe)\
**Replies:** 2\
**Last updated:** [January 24, 2008, 5:32pm UTC](https://www.ruby-forum.com/t/multistage-and-mongrel-cluster-yml/126987 "2008-01-24T17:32:08Z")

</div>

When using multistage, how does one control cwd in mongrel\_cluster.yml? Or do you just end up using different mongrel\_cluster files, each with a different cwd setting, and then setting :mongrel\_conf accordingly in de…

---

## [Abbreviating routes when :format is presented](https://www.ruby-forum.com/t/abbreviating-routes-when-format-is-presented/127061)

<div class="topic-metadata">

**Author:** [@damaris](https://www.ruby-forum.com/u/damaris)\
**Replies:** 0\
**Last updated:** [January 24, 2008, 5:22pm UTC](https://www.ruby-forum.com/t/abbreviating-routes-when-format-is-presented/127061 "2008-01-24T17:22:18Z")

</div>

Hi you all, I have some routes like the following, one for a possible HTML route, and the others when a :format parameter is presented, like .xml: map.bugs\_by “bugs/by/:att/:value”, :controller =\> “bugs”, :action =\>…

---

## [Troubles with TzTime](https://www.ruby-forum.com/t/troubles-with-tztime/127060)

<div class="topic-metadata">

**Author:** [@Jack\_Nutting](https://www.ruby-forum.com/u/Jack_Nutting)\
**Replies:** 0\
**Last updated:** [January 24, 2008, 5:22pm UTC](https://www.ruby-forum.com/t/troubles-with-tztime/127060 "2008-01-24T17:22:04Z")

</div>

I’m trying to get some timezone stuff working in my app (rails 2.0.2), and from what I’ve read it looks like TzTime can help out with this, so… I’ve got things set up the way I think I’m supposed to: database and ra…

---

## [No SQL inserts -- is the controller the problem?](https://www.ruby-forum.com/t/no-sql-inserts-is-the-controller-the-problem/127049)

<div class="topic-metadata">

**Author:** [@Thufir](https://www.ruby-forum.com/u/Thufir)\
**Replies:** 1\
**Last updated:** [January 24, 2008, 5:14pm UTC](https://www.ruby-forum.com/t/no-sql-inserts-is-the-controller-the-problem/127049 "2008-01-24T17:14:23Z")

</div>

The “save changes” button from http://localhost:3000/feeds/show/1 is supposed to insert data to the memberships table. A check mark is placed next to a “tag” which is unassociated with that feed, then button is clic…

---

## [Render view depending on state](https://www.ruby-forum.com/t/render-view-depending-on-state/127051)

<div class="topic-metadata">

**Author:** [@Tarscher](https://www.ruby-forum.com/u/Tarscher)\
**Replies:** 1\
**Last updated:** [January 24, 2008, 5:07pm UTC](https://www.ruby-forum.com/t/render-view-depending-on-state/127051 "2008-01-24T17:07:18Z")

</div>

Hi all, I have a list of events and when clicked an event you get detailed info of the event. The detailed info actually depends on whether the event has already occured or not. So if the event still has to happen di…

---

## [Troubles having arrays of objects inside a class](https://www.ruby-forum.com/t/troubles-having-arrays-of-objects-inside-a-class/127048)

<div class="topic-metadata">

**Author:** [@andreas](https://www.ruby-forum.com/u/andreas)\
**Replies:** 2\
**Last updated:** [January 24, 2008, 4:59pm UTC](https://www.ruby-forum.com/t/troubles-having-arrays-of-objects-inside-a-class/127048 "2008-01-24T16:59:35Z")

</div>

My goal for the following function is to make an array of objects, and then make a new object that containts this list of objects. And to be able to see that it works a function that goes trough each element of objects…

---

## [Paginate\_find affects subsequent find\_by\_name](https://www.ruby-forum.com/t/paginate-find-affects-subsequent-find-by-name/127052)

<div class="topic-metadata">

**Author:** [@peter](https://www.ruby-forum.com/u/peter)\
**Replies:** 0\
**Last updated:** [January 24, 2008, 4:55pm UTC](https://www.ruby-forum.com/t/paginate-find-affects-subsequent-find-by-name/127052 "2008-01-24T16:55:35Z")

</div>

Hi I am trying to add pagination to my noddy blog. I installed the paginate\_find plugin (manually because I had (firewall?) problems). It was a straight copy into vendor as far as I can see. Anyway when I add :page t…

---

## [Mongrel: ERROR RUNNING 'service::install'](https://www.ruby-forum.com/t/mongrel-error-running-service-install/127042)

<div class="topic-metadata">

**Author:** [@gers32](https://www.ruby-forum.com/u/gers32)\
**Replies:** 1\
**Last updated:** [January 24, 2008, 4:34pm UTC](https://www.ruby-forum.com/t/mongrel-error-running-service-install/127042 "2008-01-24T16:34:18Z")

</div>

Hi, I’m trying to start a Mongrel (1.1.3) Server, running as a Windows Service, via mongrel\_rails service::install -N FDS\_Server\_4001 -p 4001 -e production But I get the following error message : ERROR RUNNING ‘ser…

---

## [Deploying flex + rails apps using capistrano](https://www.ruby-forum.com/t/deploying-flex-rails-apps-using-capistrano/127000)

<div class="topic-metadata">

**Author:** [@flexrails](https://www.ruby-forum.com/u/flexrails)\
**Replies:** 1\
**Last updated:** [January 24, 2008, 4:34pm UTC](https://www.ruby-forum.com/t/deploying-flex-rails-apps-using-capistrano/127000 "2008-01-24T16:34:18Z")

</div>

hi there, i am developing a rails app with a flex frontend using eclipse, subversion and capistrano. does anybody have a similar setup? i am looking for good practices on how to configure my environment so that a ca…

---

## [Adv. Rails Recipes - Select List CSS Style](https://www.ruby-forum.com/t/adv-rails-recipes-select-list-css-style/126992)

<div class="topic-metadata">

**Author:** [@newrubygirl](https://www.ruby-forum.com/u/newrubygirl)\
**Replies:** 4\
**Last updated:** [January 24, 2008, 4:29pm UTC](https://www.ruby-forum.com/t/adv-rails-recipes-select-list-css-style/126992 "2008-01-24T16:29:12Z")

</div>

I’m using CSS to style form based on the Advanced Rails Recipe #22 for DRY forms. Everything is working great. The only exception is the select lists. To generate all of the fields, I only need to put in this line: …

---

## [How to do a block from embedded ruby (rhtml)](https://www.ruby-forum.com/t/how-to-do-a-block-from-embedded-ruby-rhtml/126909)

<div class="topic-metadata">

**Author:** [@Thufir](https://www.ruby-forum.com/u/Thufir)\
**Replies:** 4\
**Last updated:** [January 24, 2008, 4:00pm UTC](https://www.ruby-forum.com/t/how-to-do-a-block-from-embedded-ruby-rhtml/126909 "2008-01-24T16:00:30Z")

</div>

I want to drop deprecated code as per: start\_form\_tag and end\_form\_tag Use form\_tag with a block. However, I’m not sure how to do a block from the rhtml file. Somewhere I need curly braces for a block? Or, does i…

---

## [Filecolumn in Edit View - restful form - Update existing Image](https://www.ruby-forum.com/t/filecolumn-in-edit-view-restful-form-update-existing-image/126766)

<div class="topic-metadata">

**Author:** [@bxsitecover](https://www.ruby-forum.com/u/bxsitecover)\
**Replies:** 1\
**Last updated:** [January 24, 2008, 4:00pm UTC](https://www.ruby-forum.com/t/filecolumn-in-edit-view-restful-form-update-existing-image/126766 "2008-01-24T16:00:17Z")

</div>

I generated code with ruby script/generate scaffold\_resource Whenever I go to edit an image in filecolumn it creates a whole new record with the new image, as opposed to overwriting the image. My Question is about the…

---

## [Sorting on a related STI-field](https://www.ruby-forum.com/t/sorting-on-a-related-sti-field/127001)

<div class="topic-metadata">

**Author:** [@adrie](https://www.ruby-forum.com/u/adrie)\
**Replies:** 4\
**Last updated:** [January 24, 2008, 3:52pm UTC](https://www.ruby-forum.com/t/sorting-on-a-related-sti-field/127001 "2008-01-24T15:52:04Z")

</div>

I have the following models: Event name location customer\_id with relation belongs\_to :customer Person name address city type Customer \< Person has\_many :events Now I want to have a list, sorted on the name…

---

## [Link\_to that sends multi-level params](https://www.ruby-forum.com/t/link-to-that-sends-multi-level-params/127039)

<div class="topic-metadata">

**Author:** [@jfoxny](https://www.ruby-forum.com/u/jfoxny)\
**Replies:** 1\
**Last updated:** [January 24, 2008, 3:27pm UTC](https://www.ruby-forum.com/t/link-to-that-sends-multi-level-params/127039 "2008-01-24T15:27:38Z")

</div>

How can I use a link\_to that will send multi-level params? I need to be able to use the following in the controller: params\[:sales\_order\]\[:id\] Here’s the link\_to I currently have: link\_to sales\_order.id.to\_s, :actio…

---

## [Restful\_authentication: Where is 'crypted\_password'?](https://www.ruby-forum.com/t/restful-authentication-where-is-crypted-password/126722)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 13\
**Last updated:** [January 24, 2008, 3:11pm UTC](https://www.ruby-forum.com/t/restful-authentication-where-is-crypted-password/126722 "2008-01-24T15:11:21Z")

</div>

Hi, I’m using the latest version of RoR installed on Fedora Core 6 Linux with Apache 2.2. I just installed the plugin “restful\_authentication” (http://agilewebdevelopment.com/plugins/ restful\_authentication), but wh…

---

## [Failed to load Rails: Could not find RubyGem jruby-openssl](https://www.ruby-forum.com/t/failed-to-load-rails-could-not-find-rubygem-jruby-openssl/126919)

<div class="topic-metadata">

**Author:** [@bharathchunchu](https://www.ruby-forum.com/u/bharathchunchu)\
**Replies:** 2\
**Last updated:** [January 24, 2008, 3:07pm UTC](https://www.ruby-forum.com/t/failed-to-load-rails-could-not-find-rubygem-jruby-openssl/126919 "2008-01-24T15:07:41Z")

</div>

Hi, I am new to Rails.I am trying to run rails application in Tomcat. I am getting the fallowing error. INFO: Failed to load Rails: Could not find RubyGem jruby-openssl (\>= 0.0.0) But I have installed JRuby-openssl …

---

## [Mix Resources and non Resource routes](https://www.ruby-forum.com/t/mix-resources-and-non-resource-routes/123802)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [January 24, 2008, 3:05pm UTC](https://www.ruby-forum.com/t/mix-resources-and-non-resource-routes/123802 "2008-01-24T15:05:38Z")

</div>

Hello, I have this routing right now: map.resources :events do |event| event.resources :invitations event.resources :personalized\_invitations event.resources :questions end Now I want to add to the event resource …

---

## [Passing Params to Named Restful Routes](https://www.ruby-forum.com/t/passing-params-to-named-restful-routes/122836)

<div class="topic-metadata">

**Author:** [@gdevore](https://www.ruby-forum.com/u/gdevore)\
**Replies:** 1\
**Last updated:** [January 24, 2008, 2:59pm UTC](https://www.ruby-forum.com/t/passing-params-to-named-restful-routes/122836 "2008-01-24T14:59:43Z")

</div>

I am a bit of newbie and have a question: Can you pass additional parameters to named restful routes that aren’t nested. For example if I have a named route classroom\_path(@classroom.id) can I also pass a topic.id or…

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

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