# Rails

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

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

---

## [Rails Recipe 44 -- Write Tests for Your Helpers \[Corrected\]](https://www.ruby-forum.com/t/rails-recipe-44-write-tests-for-your-helpers-corrected/122447)

<div class="topic-metadata">

**Author:** [@kevin\_cline](https://www.ruby-forum.com/u/kevin_cline)\
**Replies:** 1\
**Last updated:** [December 7, 2007, 5:59pm UTC](https://www.ruby-forum.com/t/rails-recipe-44-write-tests-for-your-helpers-corrected/122447 "2007-12-07T17:59:02Z")

</div>

I’m having trouble getting this to work. The recipe is simple: def setup @controller = SomeController.new request = ActionController::TestRequest.new @controller.instance\_eval { @params = {}, @request = request } @…

---

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

<div class="topic-metadata">

**Author:** [@jcernelli](https://www.ruby-forum.com/u/jcernelli)\
**Replies:** 3\
**Last updated:** [December 7, 2007, 5:30pm UTC](https://www.ruby-forum.com/t/has-many-through-to-has-many/122318 "2007-12-07T17:30:23Z")

</div>

I have a situation where I need to get Courses for a particular User. Courses are associated with Divisions that in turn are related to the user by a has\_many, through relationship. Ideally, I’d like to stay within …

---

## [Nested Resources, REST, and overall strategy for syndication service](https://www.ruby-forum.com/t/nested-resources-rest-and-overall-strategy-for-syndication-service/122444)

<div class="topic-metadata">

**Author:** [@Astorian](https://www.ruby-forum.com/u/Astorian)\
**Replies:** 0\
**Last updated:** [December 7, 2007, 5:27pm UTC](https://www.ruby-forum.com/t/nested-resources-rest-and-overall-strategy-for-syndication-service/122444 "2007-12-07T17:27:56Z")

</div>

Hi folks. I was hoping to get a couple tips before I launched headlong into my next project. I am prototyping a content syndication service. There are two types of application users: Content Providers supply content…

---

## [No such file to load -- postgres (newbie)](https://www.ruby-forum.com/t/no-such-file-to-load-postgres-newbie/122317)

<div class="topic-metadata">

**Author:** [@statictony](https://www.ruby-forum.com/u/statictony)\
**Replies:** 6\
**Last updated:** [December 7, 2007, 5:27pm UTC](https://www.ruby-forum.com/t/no-such-file-to-load-postgres-newbie/122317 "2007-12-07T17:27:22Z")

</div>

Ok, Completely new to Rails here and have just started running through some tutorials using Netbeans 6 Postgres 8.3 beta Windows Vista I’m looking at migration and trying to get my head round that, but each time I…

---

## [Mysterious Rails Crashes](https://www.ruby-forum.com/t/mysterious-rails-crashes/122351)

<div class="topic-metadata">

**Author:** [@emmett](https://www.ruby-forum.com/u/emmett)\
**Replies:** 8\
**Last updated:** [December 7, 2007, 5:02pm UTC](https://www.ruby-forum.com/t/mysterious-rails-crashes/122351 "2007-12-07T17:02:38Z")

</div>

Whenever an exception is thrown (and not caught) during rendering in my Rails application, Rails dies immediately with no stack trace or error screen. The symptom is, from the outside, “pages with errors look blank wh…

---

## [Ruby on Rails applications with Mongrel cluster](https://www.ruby-forum.com/t/ruby-on-rails-applications-with-mongrel-cluster/122431)

<div class="topic-metadata">

**Author:** [@ajitonrails](https://www.ruby-forum.com/u/ajitonrails)\
**Replies:** 1\
**Last updated:** [December 7, 2007, 4:46pm UTC](https://www.ruby-forum.com/t/ruby-on-rails-applications-with-mongrel-cluster/122431 "2007-12-07T16:46:15Z")

</div>

Hello All I am trying to install 5 mongrel servers against my app. i am using Vista. I found this article on a website… but am stuck on one point. here are some notes from article: Now enable the needed modules (url …

---

## [\[ANN\] Rails 2.0: It's done!](https://www.ruby-forum.com/t/ann-rails-2-0-its-done/122432)

<div class="topic-metadata">

**Author:** [@DHH](https://www.ruby-forum.com/u/DHH)\
**Replies:** 2\
**Last updated:** [December 7, 2007, 4:35pm UTC](https://www.ruby-forum.com/t/ann-rails-2-0-its-done/122432 "2007-12-07T16:35:38Z")

</div>

Rails 2.0 is finally finished after about a year in the making. This is a fantastic release that’s absolutely stuffed with great new features, loads of fixes, and an incredible amount of polish. We’ve even taken a fai…

---

## [Restful Nested Resource without ugly id](https://www.ruby-forum.com/t/restful-nested-resource-without-ugly-id/122422)

<div class="topic-metadata">

**Author:** [@Kei\_Simone](https://www.ruby-forum.com/u/Kei_Simone)\
**Replies:** 7\
**Last updated:** [December 7, 2007, 4:30pm UTC](https://www.ruby-forum.com/t/restful-nested-resource-without-ugly-id/122422 "2007-12-07T16:30:22Z")

</div>

To all: hi i am pretty noob. Basically I am learning via copy and paste, so please forgive me. I am using rails 1.2.6. I built 2 scaffold\_resource called traders and orders. I want a localhost:3000/v1/traders/{trade…

---

## [Rails 2.0.1 : activeresource-2.0.1 is missing (was: Rails 2.0 is real !)](https://www.ruby-forum.com/t/rails-2-0-1-activeresource-2-0-1-is-missing-was-rails-2-0-is-real/122428)

<div class="topic-metadata">

**Author:** [@Jean-FranSSSSois\_Tr](https://www.ruby-forum.com/u/Jean-FranSSSSois_Tr)\
**Replies:** 1\
**Last updated:** [December 7, 2007, 4:25pm UTC](https://www.ruby-forum.com/t/rails-2-0-1-activeresource-2-0-1-is-missing-was-rails-2-0-is-real/122428 "2007-12-07T16:25:05Z")

</div>

2007/12/7, Jean-François Trân removed\_email\_address@domain.invalid: Other gems (actionmailer-2.0.0.gem, actionpack-2.0.0.gem, activerecord-2.0.0.gem, activesupport-2.0.0.gem, rails-2.0.0.gem) are available. Same pr…

---

## [Documentation for OpenSSL](https://www.ruby-forum.com/t/documentation-for-openssl/122437)

<div class="topic-metadata">

**Author:** [@snantz](https://www.ruby-forum.com/u/snantz)\
**Replies:** 0\
**Last updated:** [December 7, 2007, 4:20pm UTC](https://www.ruby-forum.com/t/documentation-for-openssl/122437 "2007-12-07T16:20:49Z")

</div>

I need to figue out how to calculate the modulus, exponent and base - the parts that make up a key for encryption and I was just wondering if someone knows where I can find good documention for OpenSSL::PKey::RSA. I k…

---

## [\[ADV\] Advanced Rails Recipes Now in Beta](https://www.ruby-forum.com/t/adv-advanced-rails-recipes-now-in-beta/122433)

<div class="topic-metadata">

**Author:** [@clarkware](https://www.ruby-forum.com/u/clarkware)\
**Replies:** 0\
**Last updated:** [December 7, 2007, 4:14pm UTC](https://www.ruby-forum.com/t/adv-advanced-rails-recipes-now-in-beta/122433 "2007-12-07T16:14:29Z")

</div>

Hi Folks, Sorry for the commercial. Now that the much-anticipated Rails 2.0 is out, I’m pleased to announce that Advanced Rails Recipes is now available in beta form: This has been an especially fun project becaus…

---

## [Routing Error](https://www.ruby-forum.com/t/routing-error/122365)

<div class="topic-metadata">

**Author:** [@brad](https://www.ruby-forum.com/u/brad)\
**Replies:** 3\
**Last updated:** [December 7, 2007, 4:02pm UTC](https://www.ruby-forum.com/t/routing-error/122365 "2007-12-07T16:02:09Z")

</div>

Hello, I’m just starting to learn Ruby on Rails. I’m following a tutorial in a book but the examples are not working, I keep getting Routing Error “no route found to match “/\\look\\at” with {:method=\>:get}” What I ha…

---

## [Experienced Ruby on Rails developers to build a social network](https://www.ruby-forum.com/t/experienced-ruby-on-rails-developers-to-build-a-social-network/122372)

<div class="topic-metadata">

**Author:** [@john\_old](https://www.ruby-forum.com/u/john_old)\
**Replies:** 7\
**Last updated:** [December 7, 2007, 3:51pm UTC](https://www.ruby-forum.com/t/experienced-ruby-on-rails-developers-to-build-a-social-network/122372 "2007-12-07T15:51:35Z")

</div>

I’m starting a company and we are building a social network with Ruby on Rails. I’m looking for some expert, energetic and experienced Ruby on Rails developers and I’m not sure where I should go to post these jobs. A…

---

## [Nested controllers](https://www.ruby-forum.com/t/nested-controllers/122429)

<div class="topic-metadata">

**Author:** [@thefatpenguin](https://www.ruby-forum.com/u/thefatpenguin)\
**Replies:** 0\
**Last updated:** [December 7, 2007, 3:32pm UTC](https://www.ruby-forum.com/t/nested-controllers/122429 "2007-12-07T15:32:50Z")

</div>

Hello all, Can anyone give me a bit of advice on nested controllers? I am using rails 1.2.6. I have controllers/views directory structures as: controllers -products –product1\_controller.rb –product2\_controller.rb …

---

## [Restoring from acts\_as\_paranoid](https://www.ruby-forum.com/t/restoring-from-acts-as-paranoid/122427)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [December 7, 2007, 3:29pm UTC](https://www.ruby-forum.com/t/restoring-from-acts-as-paranoid/122427 "2007-12-07T15:29:54Z")

</div>

Hello all, I’m using acts\_as\_paranoid in one of my apps. I have been looking around for a way to restore items that have been deleted and have it do so across the board. ie. If I have Foo, Bar, Baz, if I delete Foo,…

---

## [Http://api.rubyonrails.org/ for rails 2.0?](https://www.ruby-forum.com/t/http-api-rubyonrails-org-for-rails-2-0/122353)

<div class="topic-metadata">

**Author:** [@uncle](https://www.ruby-forum.com/u/uncle)\
**Replies:** 4\
**Last updated:** [December 7, 2007, 2:56pm UTC](https://www.ruby-forum.com/t/http-api-rubyonrails-org-for-rails-2-0/122353 "2007-12-07T14:56:23Z")

</div>

Are they online docs for rails 2.0 ??? like this for 1.x http://api.rubyonrails.org/

---

## [Change default directory of javascripts?](https://www.ruby-forum.com/t/change-default-directory-of-javascripts/122415)

<div class="topic-metadata">

**Author:** [@sun](https://www.ruby-forum.com/u/sun)\
**Replies:** 1\
**Last updated:** [December 7, 2007, 2:55pm UTC](https://www.ruby-forum.com/t/change-default-directory-of-javascripts/122415 "2007-12-07T14:55:48Z")

</div>

Hi, I am using overlibmws.js library to add some dynamic effect to my rails web pages. But the server can not find the gif files that required by javascripts. It always tries to search in , for example ,"/experiment…

---

## [Retrieving Google account info](https://www.ruby-forum.com/t/retrieving-google-account-info/122423)

<div class="topic-metadata">

**Author:** [@srinathbtech](https://www.ruby-forum.com/u/srinathbtech)\
**Replies:** 0\
**Last updated:** [December 7, 2007, 2:54pm UTC](https://www.ruby-forum.com/t/retrieving-google-account-info/122423 "2007-12-07T14:54:51Z")

</div>

hi , i have integrated acts\_as\_google\_account plugin in my application, and i had succesfully got authenticated to google proxy with my gmail accounts and now the problem is , i want to retrieve users firstname and…

---

## [Sorting by a field of an associated class](https://www.ruby-forum.com/t/sorting-by-a-field-of-an-associated-class/122410)

<div class="topic-metadata">

**Author:** [@cmaxvv](https://www.ruby-forum.com/u/cmaxvv)\
**Replies:** 6\
**Last updated:** [December 7, 2007, 2:44pm UTC](https://www.ruby-forum.com/t/sorting-by-a-field-of-an-associated-class/122410 "2007-12-07T14:44:50Z")

</div>

I feel like i should know this but i’ve got the lurgy and am feeling a bit dumb… If a User belongs\_to a Company, how do i find a list of users, ordered by user.company.name? thanks max

---

## [Why delete\_all works but not delele(nn)?](https://www.ruby-forum.com/t/why-delete-all-works-but-not-delele-nn/122364)

<div class="topic-metadata">

**Author:** [@comopasta](https://www.ruby-forum.com/u/comopasta)\
**Replies:** 4\
**Last updated:** [December 7, 2007, 2:39pm UTC](https://www.ruby-forum.com/t/why-delete-all-works-but-not-delele-nn/122364 "2007-12-07T14:39:19Z")

</div>

Hi, I’m sorry to post such a trivial question but… I have a table for comments. And I can fill it normally: @tab = Tab.find(params\[:id\]) @tab.comments.create(:body =\> ‘This is the body 1’) I am able to correctly see…

---

## [Rails 2.0 is real!](https://www.ruby-forum.com/t/rails-2-0-is-real/122398)

<div class="topic-metadata">

**Author:** [@Jean-FranSSSSois\_Tr](https://www.ruby-forum.com/u/Jean-FranSSSSois_Tr)\
**Replies:** 2\
**Last updated:** [December 7, 2007, 2:36pm UTC](https://www.ruby-forum.com/t/rails-2-0-is-real/122398 "2007-12-07T14:36:58Z")

</div>

“Changeset \[8328\] by david : Tagged Rails 2.0.0” yes !! – Jean-François. – Ruby ( http://www.rubyfrance.org ) on Rails ( http://www.railsfrance.org )

---

## [Request.env\_table method undefined in functional test](https://www.ruby-forum.com/t/request-env-table-method-undefined-in-functional-test/122310)

<div class="topic-metadata">

**Author:** [@gabru](https://www.ruby-forum.com/u/gabru)\
**Replies:** 1\
**Last updated:** [December 7, 2007, 1:33pm UTC](https://www.ruby-forum.com/t/request-env-table-method-undefined-in-functional-test/122310 "2007-12-07T13:33:00Z")

</div>

when i make a functional test for an action which access the server variables with e.g. @user.last\_ip = request.env\_table\[‘REMOTE\_ADDR’\] my functional test breaks… it says that the ‘env\_table’ method is undefined. t…

---

## [Paginate question](https://www.ruby-forum.com/t/paginate-question/119009)

<div class="topic-metadata">

**Author:** [@jimmygoogle](https://www.ruby-forum.com/u/jimmygoogle)\
**Replies:** 2\
**Last updated:** [December 7, 2007, 12:44pm UTC](https://www.ruby-forum.com/t/paginate-question/119009 "2007-12-07T12:44:30Z")

</div>

I created my first app using scaffold. My question is it possible to paginate the show.rhtml so instead of paginating in the list view it does it in show.rhtml. I keep getting ?page=id appended to my urls. ex (http:…

---

## [Querying one table to find all possible combinations](https://www.ruby-forum.com/t/querying-one-table-to-find-all-possible-combinations/122395)

<div class="topic-metadata">

**Author:** [@zayne](https://www.ruby-forum.com/u/zayne)\
**Replies:** 3\
**Last updated:** [December 7, 2007, 11:48am UTC](https://www.ruby-forum.com/t/querying-one-table-to-find-all-possible-combinations/122395 "2007-12-07T11:48:07Z")

</div>

I am building an online shop and have products with specs - a shirt can have colours and sizes. There are multiple colours and multiple sizes. Obviously the shop has to be able to offer each combination to the shopper…

---

## [Rails 2.0.0](https://www.ruby-forum.com/t/rails-2-0-0/122407)

<div class="topic-metadata">

**Author:** [@bluetrust](https://www.ruby-forum.com/u/bluetrust)\
**Replies:** 1\
**Last updated:** [December 7, 2007, 11:21am UTC](https://www.ruby-forum.com/t/rails-2-0-0/122407 "2007-12-07T11:21:44Z")

</div>

Hi, yesterday evening (in Europe it was 11pm) I installed Rails 2.0.0. Since there is no official announcement, can I expect this is really the final version? If so, congratulations to the team. Greetings Michael

---

## [Scaffold :foo versus ScaffoldGenerator](https://www.ruby-forum.com/t/scaffold-foo-versus-scaffoldgenerator/122404)

<div class="topic-metadata">

**Author:** [@Thufir](https://www.ruby-forum.com/u/Thufir)\
**Replies:** 1\
**Last updated:** [December 7, 2007, 11:18am UTC](https://www.ruby-forum.com/t/scaffold-foo-versus-scaffoldgenerator/122404 "2007-12-07T11:18:14Z")

</div>

I don’t seem to have svn worked out totally, but most of the code is available at: Basically, without running “script/generate scaffold post” how can I generate the scaffold for the posts model automagically? I sorta …

---

## [Pagination using will\_paginate](https://www.ruby-forum.com/t/pagination-using-will-paginate/122391)

<div class="topic-metadata">

**Author:** [@ratnavel](https://www.ruby-forum.com/u/ratnavel)\
**Replies:** 2\
**Last updated:** [December 7, 2007, 10:45am UTC](https://www.ruby-forum.com/t/pagination-using-will-paginate/122391 "2007-12-07T10:45:35Z")

</div>

Hi, I use will\_paginate plugin to paginate the records in my view file… I implement the same in 2 of my modules… Its working fine in one module where i perform only the basic CRUD operation. In the other module i do…

---

## [Problem creating test database](https://www.ruby-forum.com/t/problem-creating-test-database/122403)

<div class="topic-metadata">

**Author:** [@jagan](https://www.ruby-forum.com/u/jagan)\
**Replies:** 0\
**Last updated:** [December 7, 2007, 10:40am UTC](https://www.ruby-forum.com/t/problem-creating-test-database/122403 "2007-12-07T10:40:39Z")

</div>

Hello All, I am trying to create a test data base for my application and i used the rake task ‘rake db:test:prepare --trace’ .I am getting the following error.it complains for test.rb file missing where in my applic…

---

## [Mailer question -- Order Confirmation](https://www.ruby-forum.com/t/mailer-question-order-confirmation/122173)

<div class="topic-metadata">

**Author:** [@elle](https://www.ruby-forum.com/u/elle)\
**Replies:** 7\
**Last updated:** [December 7, 2007, 10:35am UTC](https://www.ruby-forum.com/t/mailer-question-order-confirmation/122173 "2007-12-07T10:35:58Z")

</div>

Hi, I have a method “process” to process an order. It works good. I then added an actionmailer to send an email confirmation when the order is processed. I believed I followed the example from AWDWR 2nd ed. Anyhow, I…

---

## [Scaffolds, Multiple Tables, and Key Fields](https://www.ruby-forum.com/t/scaffolds-multiple-tables-and-key-fields/122380)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [December 7, 2007, 10:14am UTC](https://www.ruby-forum.com/t/scaffolds-multiple-tables-and-key-fields/122380 "2007-12-07T10:14:51Z")

</div>

Is there a simple way to edit two tables with a has\_many/belongs\_to relationship? I have a very typical parent table (Departments) with an id, name, description, etc. And I have a child Resources table with an id,…

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

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