# Rails

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

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

---

## [Color coded results on rake test\_\*](https://www.ruby-forum.com/t/color-coded-results-on-rake-test/88982)

<div class="topic-metadata">

**Author:** [@MichaelLatta](https://www.ruby-forum.com/u/MichaelLatta)\
**Replies:** 0\
**Last updated:** [March 16, 2007, 5:27am UTC](https://www.ruby-forum.com/t/color-coded-results-on-rake-test/88982 "2007-03-16T05:27:22Z")

</div>

Would someone be so kind as to say where the result message for rake test\_\* is produced. I would like to insert codes for Terminal to make a result with 0 errors and 0 failures be hilighted in Gree and any failures o…

---

## [Getting the stack trace](https://www.ruby-forum.com/t/getting-the-stack-trace/88889)

<div class="topic-metadata">

**Author:** [@Naga\_harish\_K](https://www.ruby-forum.com/u/Naga_harish_K)\
**Replies:** 1\
**Last updated:** [March 16, 2007, 4:34am UTC](https://www.ruby-forum.com/t/getting-the-stack-trace/88889 "2007-03-16T04:34:18Z")

</div>

Hi all, I am using the following code to print the exception, but is there a way to get the stack trace of the complete error like Exception: No option with text of Contract form in this select element C:/InstantRail…

---

## [Param to url mapping](https://www.ruby-forum.com/t/param-to-url-mapping/88943)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [March 16, 2007, 4:07am UTC](https://www.ruby-forum.com/t/param-to-url-mapping/88943 "2007-03-16T04:07:16Z")

</div>

I’m currently reading “Agile Web D. with Rails (2nd Edition)” and I’ve run into something I don’t quite understand. In one section of the book they have link in the one of the views that looks like this: \<%= link\_to …

---

## [WEBrick freezes overnight](https://www.ruby-forum.com/t/webrick-freezes-overnight/88942)

<div class="topic-metadata">

**Author:** [@plambert](https://www.ruby-forum.com/u/plambert)\
**Replies:** 2\
**Last updated:** [March 16, 2007, 3:25am UTC](https://www.ruby-forum.com/t/webrick-freezes-overnight/88942 "2007-03-16T03:25:13Z")

</div>

Each morning when I return to work, I find that my WEBrick server has stopped working. The process is still running, but when I try to connect to it with a web browser, the browser doesn’t get any response back. Usu…

---

## [Edge: Session Cookie Fix Causing Issues for Legacy App](https://www.ruby-forum.com/t/edge-session-cookie-fix-causing-issues-for-legacy-app/88714)

<div class="topic-metadata">

**Author:** [@cwd](https://www.ruby-forum.com/u/cwd)\
**Replies:** 4\
**Last updated:** [March 16, 2007, 1:51am UTC](https://www.ruby-forum.com/t/edge-session-cookie-fix-causing-issues-for-legacy-app/88714 "2007-03-16T01:51:07Z")

</div>

I love the idea of the cookie fix for session storage. But… I’ve gone round and round to get edge working with a legacy app and wonder if anyone has any pointers. Here’s what’s happening. I fresh-installed: rails fo…

---

## [How do i check what version of ruby and rails i have?](https://www.ruby-forum.com/t/how-do-i-check-what-version-of-ruby-and-rails-i-have/88865)

<div class="topic-metadata">

**Author:** [@desertfox](https://www.ruby-forum.com/u/desertfox)\
**Replies:** 7\
**Last updated:** [March 16, 2007, 12:46am UTC](https://www.ruby-forum.com/t/how-do-i-check-what-version-of-ruby-and-rails-i-have/88865 "2007-03-16T00:46:01Z")

</div>

Hello, What is the command to see what version of ruby and what version of rails i am running? Thanks in advance! Kristen

---

## [Decent banchmark results?](https://www.ruby-forum.com/t/decent-banchmark-results/88330)

<div class="topic-metadata">

**Author:** [@roller8](https://www.ruby-forum.com/u/roller8)\
**Replies:** 20\
**Last updated:** [March 16, 2007, 12:36am UTC](https://www.ruby-forum.com/t/decent-banchmark-results/88330 "2007-03-16T00:36:01Z")

</div>

Hi again folks! Everything is going really well since I last posted and I’m very close to live deployment! Anyway, I was benchamrking various Nginx + Mongrel cluster configs and came up with what seems like my best p…

---

## [Uploading Images](https://www.ruby-forum.com/t/uploading-images/88704)

<div class="topic-metadata">

**Author:** [@ali](https://www.ruby-forum.com/u/ali)\
**Replies:** 4\
**Last updated:** [March 16, 2007, 12:35am UTC](https://www.ruby-forum.com/t/uploading-images/88704 "2007-03-16T00:35:00Z")

</div>

Hi all, I’m trying to do a file upload. I have followed the examples in Agile Web D. with Rails, and Rails Cookbook, and I can’t get it to work!! The following code is from the Rails Cookbook. I have two tables: …

---

## [Create form from db](https://www.ruby-forum.com/t/create-form-from-db/88742)

<div class="topic-metadata">

**Author:** [@Bryce](https://www.ruby-forum.com/u/Bryce)\
**Replies:** 2\
**Last updated:** [March 15, 2007, 11:40pm UTC](https://www.ruby-forum.com/t/create-form-from-db/88742 "2007-03-15T23:40:52Z")

</div>

I think I have a rather simple question: I generate forms rather regularly. I would like to make the process as efficient as possible and would rather generate the markup from the database much like script/generate sc…

---

## [Help with understanding RESTful routes](https://www.ruby-forum.com/t/help-with-understanding-restful-routes/88957)

<div class="topic-metadata">

**Author:** [@pixellover](https://www.ruby-forum.com/u/pixellover)\
**Replies:** 3\
**Last updated:** [March 15, 2007, 11:14pm UTC](https://www.ruby-forum.com/t/help-with-understanding-restful-routes/88957 "2007-03-15T23:14:50Z")

</div>

Hi, I’m planning a new application and after all I’ve read a RESTful rails app seems to be perfect for the job. But since a few days I’m struggling with routing… here’s my simple test. If would be great if someone c…

---

## [Admin Interface builder roundup](https://www.ruby-forum.com/t/admin-interface-builder-roundup/88963)

<div class="topic-metadata">

**Author:** [@robertjames](https://www.ruby-forum.com/u/robertjames)\
**Replies:** 0\
**Last updated:** [March 15, 2007, 10:50pm UTC](https://www.ruby-forum.com/t/admin-interface-builder-roundup/88963 "2007-03-15T22:50:46Z")

</div>

Scaffolding is great for learning and first iterations. But, there’s another use for it: easily building admin interfaces. The difference? Scaffolding has to be simple, easy to change, and easy to learn from. Admin …

---

## [Generating summary reports](https://www.ruby-forum.com/t/generating-summary-reports/88960)

<div class="topic-metadata">

**Author:** [@BallS\_Donald\_A\_Jr\_S](https://www.ruby-forum.com/u/BallS_Donald_A_Jr_S)\
**Replies:** 0\
**Last updated:** [March 15, 2007, 10:30pm UTC](https://www.ruby-forum.com/t/generating-summary-reports/88960 "2007-03-15T22:30:42Z")

</div>

I’m looking to generate some summary reports for some data managed by rails/activerecord, pretty standard tables, figures, and listings. Have other railites come up with any useful libraries, patterns, practices, etc.…

---

## [FileColumn help](https://www.ruby-forum.com/t/filecolumn-help/95229)

<div class="topic-metadata">

**Author:** [@Alex\_Castro](https://www.ruby-forum.com/u/Alex_Castro)\
**Replies:** 2\
**Last updated:** [March 15, 2007, 10:29pm UTC](https://www.ruby-forum.com/t/filecolumn-help/95229 "2007-03-15T22:29:13Z")

</div>

I’m trying to upload an image that will be displayed alongside a user profile. I’ve been trying to use FileColumn but haven’t had any luck. I don’t receive any errors, I just don’t get the file on the server. Does a…

---

## [Select does not generate selected](https://www.ruby-forum.com/t/select-does-not-generate-selected/88848)

<div class="topic-metadata">

**Author:** [@leonb](https://www.ruby-forum.com/u/leonb)\
**Replies:** 5\
**Last updated:** [March 15, 2007, 10:02pm UTC](https://www.ruby-forum.com/t/select-does-not-generate-selected/88848 "2007-03-15T22:02:36Z")

</div>

Hi, I have this code: \<%= debug @deposit.to\_user\_id %\> \<%= select(“deposit”, “to\_user\_id”, User.find\_all.collect {|u| \[ u.fullname, u.id.to\_s \] }, {:prompt =\> ‘Select a user’, :selected =\> @deposit.to\_user\_id} ) %\> …

---

## [Willing to pay for Deployment Work](https://www.ruby-forum.com/t/willing-to-pay-for-deployment-work/88954)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [March 15, 2007, 9:49pm UTC](https://www.ruby-forum.com/t/willing-to-pay-for-deployment-work/88954 "2007-03-15T21:49:35Z")

</div>

I have an account with Planet Argon and I need help to deploy my Rails app using Capistrano. I am willing to pay for help, please contact me at bparanj with gmail as the domain for the email address. TIA.

---

## [Depot Application Tutorial and Foreign Keys](https://www.ruby-forum.com/t/depot-application-tutorial-and-foreign-keys/88882)

<div class="topic-metadata">

**Author:** [@vagabond](https://www.ruby-forum.com/u/vagabond)\
**Replies:** 4\
**Last updated:** [March 15, 2007, 9:49pm UTC](https://www.ruby-forum.com/t/depot-application-tutorial-and-foreign-keys/88882 "2007-03-15T21:49:30Z")

</div>

I’ve been working my way through the depot application tutorial in the Agile Rails book, and I’m at the “Check Out!” chapter. In the migration file for the line items, there are SQL commands to create foreign keys. Up…

---

## [Page.show only works if "display: none" is inline style?](https://www.ruby-forum.com/t/page-show-only-works-if-display-none-is-inline-style/88950)

<div class="topic-metadata">

**Author:** [@weyus](https://www.ruby-forum.com/u/weyus)\
**Replies:** 1\
**Last updated:** [March 15, 2007, 9:44pm UTC](https://www.ruby-forum.com/t/page-show-only-works-if-display-none-is-inline-style/88950 "2007-03-15T21:44:34Z")

</div>

All, I have a div that I want to be hidden when the page displays, but then have RJS code which will show it later (via either page.show(‘elem\_id’) or page\[‘elem\_id’\].show). If the “display: none” style for this elem…

---

## [Extending ActiveRecord Extensions](https://www.ruby-forum.com/t/extending-activerecord-extensions/88952)

<div class="topic-metadata">

**Author:** [@jmckible](https://www.ruby-forum.com/u/jmckible)\
**Replies:** 0\
**Last updated:** [March 15, 2007, 9:39pm UTC](https://www.ruby-forum.com/t/extending-activerecord-extensions/88952 "2007-03-15T21:39:42Z")

</div>

Let’s say I’ve got a table of people. Each person is either male or female and single or not single. I can get methods like: group.people.male group.people.female group.people.single By using extensions a la: cla…

---

## [Rake test and validates\_inclusion\_of](https://www.ruby-forum.com/t/rake-test-and-validates-inclusion-of/82189)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [March 15, 2007, 9:35pm UTC](https://www.ruby-forum.com/t/rake-test-and-validates-inclusion-of/82189 "2007-03-15T21:35:33Z")

</div>

Hello, I am just starting off with Rails, so I apologize in advance if there is a terribly obvious answer to my problem. I’ve done some searching and found similar problems to my own, but nothing which yielded a solu…

---

## [Submit\_tag?](https://www.ruby-forum.com/t/submit-tag/88928)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 7\
**Last updated:** [March 15, 2007, 9:26pm UTC](https://www.ruby-forum.com/t/submit-tag/88928 "2007-03-15T21:26:32Z")

</div>

I have a protected attribute that I wish to change with my edit form. Is it possible to do this with the “options” for submit\_tag? I guess what I’m asking is if there is a way to have the submit perform the, in this c…

---

## [Accessing external file system files](https://www.ruby-forum.com/t/accessing-external-file-system-files/88932)

<div class="topic-metadata">

**Author:** [@KSRajesh](https://www.ruby-forum.com/u/KSRajesh)\
**Replies:** 2\
**Last updated:** [March 15, 2007, 9:14pm UTC](https://www.ruby-forum.com/t/accessing-external-file-system-files/88932 "2007-03-15T21:14:29Z")

</div>

I am getting files uploaded and into a directory inside RAILS\_ROOT called docstore. I want to provide a Download link to http://localhost:3000/docstore/7/some\_file.ext The message I get is Recognition failed for “/do…

---

## [Manual](https://www.ruby-forum.com/t/manual/88947)

<div class="topic-metadata">

**Author:** [@luistelles](https://www.ruby-forum.com/u/luistelles)\
**Replies:** 2\
**Last updated:** [March 15, 2007, 8:58pm UTC](https://www.ruby-forum.com/t/manual/88947 "2007-03-15T20:58:28Z")

</div>

Hi, i am new using ruby on rails. Where to start…? Do you know any link or pdf to learn ruby on rails from cero. Thanks Luis

---

## [Silly question about console and controllers](https://www.ruby-forum.com/t/silly-question-about-console-and-controllers/88931)

<div class="topic-metadata">

**Author:** [@jonathan](https://www.ruby-forum.com/u/jonathan)\
**Replies:** 4\
**Last updated:** [March 15, 2007, 8:27pm UTC](https://www.ruby-forum.com/t/silly-question-about-console-and-controllers/88931 "2007-03-15T20:27:23Z")

</div>

I’m a bit of a n00b, so my problem is more that I can’t figure out the last step from other posts. I want to launch some controller methods in application.rb from a script, so I’m trying to use the console to help wri…

---

## [Associating to a hash?](https://www.ruby-forum.com/t/associating-to-a-hash/88941)

<div class="topic-metadata">

**Author:** [@Tyler\_MacDonald](https://www.ruby-forum.com/u/Tyler_MacDonald)\
**Replies:** 0\
**Last updated:** [March 15, 2007, 7:03pm UTC](https://www.ruby-forum.com/t/associating-to-a-hash/88941 "2007-03-15T19:03:06Z")

</div>

I’m setting up my users’ profiles as a set of key/value pairs… where each key/value pair is a row in an associated table, like so: user\_id profile\_key value The profile\_keys themselves are associations to a “profile…

---

## [Associations](https://www.ruby-forum.com/t/associations/88864)

<div class="topic-metadata">

**Author:** [@fafa](https://www.ruby-forum.com/u/fafa)\
**Replies:** 2\
**Last updated:** [March 15, 2007, 6:57pm UTC](https://www.ruby-forum.com/t/associations/88864 "2007-03-15T18:57:06Z")

</div>

Hi, I’ve got a problem with two models, connected via belongs\_to and has\_many associations. Lets say they are Article, and Category. In the Article the key is article\_id and foreign key column is category\_id, in the C…

---

## [Older rails apps fail after gem update](https://www.ruby-forum.com/t/older-rails-apps-fail-after-gem-update/88924)

<div class="topic-metadata">

**Author:** [@jjkiesch](https://www.ruby-forum.com/u/jjkiesch)\
**Replies:** 6\
**Last updated:** [March 15, 2007, 6:45pm UTC](https://www.ruby-forum.com/t/older-rails-apps-fail-after-gem-update/88924 "2007-03-15T18:45:04Z")

</div>

i just upgraded gems to 0.9.2 after restarting the server, all of the previous apps break. checking the logs reveals this for every actions: ArgumentError (wrong number of arguments (1 for 0)): /usr/local/lib/ruby/ge…

---

## [Different default layout directory than 'app/views/layouts'](https://www.ruby-forum.com/t/different-default-layout-directory-than-app-views-layouts/88935)

<div class="topic-metadata">

**Author:** [@marshall](https://www.ruby-forum.com/u/marshall)\
**Replies:** 0\
**Last updated:** [March 15, 2007, 6:27pm UTC](https://www.ruby-forum.com/t/different-default-layout-directory-than-app-views-layouts/88935 "2007-03-15T18:27:29Z")

</div>

I’d like to be able to specify different directory than the default ‘app/views/layouts’ globally. Has anyone done this, or have a recommendation as to how to best implement it? Thanks, Marshall

---

## [How to detect JavaScript in RoR?](https://www.ruby-forum.com/t/how-to-detect-javascript-in-ror/88862)

<div class="topic-metadata">

**Author:** [@johan](https://www.ruby-forum.com/u/johan)\
**Replies:** 13\
**Last updated:** [March 15, 2007, 5:24pm UTC](https://www.ruby-forum.com/t/how-to-detect-javascript-in-ror/88862 "2007-03-15T17:24:54Z")

</div>

Hi, This must be basic, but I’m unable to find the answer on the net. I would like to render different views depending on if the client has JavaScript enabled or not. Is there any easy/standard way for Rails to find …

---

## [Plugin Examples](https://www.ruby-forum.com/t/plugin-examples/88921)

<div class="topic-metadata">

**Author:** [@griffnb](https://www.ruby-forum.com/u/griffnb)\
**Replies:** 2\
**Last updated:** [March 15, 2007, 5:17pm UTC](https://www.ruby-forum.com/t/plugin-examples/88921 "2007-03-15T17:17:53Z")

</div>

Are there any good plugin example sites out there? Im wanting to componentize my application into a bunch of plugins so I can pick and choose which ones to use based on what the client wants. Thanks, Nick Griffith C…

---

## [:include associations of associations](https://www.ruby-forum.com/t/include-associations-of-associations/88905)

<div class="topic-metadata">

**Author:** [@halfgaar](https://www.ruby-forum.com/u/halfgaar)\
**Replies:** 13\
**Last updated:** [March 15, 2007, 5:11pm UTC](https://www.ruby-forum.com/t/include-associations-of-associations/88905 "2007-03-15T17:11:52Z")

</div>

Hi, Is there a way to include associations of the associations you’re including? As an example, you could have “orders” belonging to an “account”, which in turn belongs to a “person”. When I want to list orders sort…

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

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