# Rails

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

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

---

## [Updating GEMS using nmake](https://www.ruby-forum.com/t/updating-gems-using-nmake/124703)

<div class="topic-metadata">

**Author:** [@KLONQ](https://www.ruby-forum.com/u/KLONQ)\
**Replies:** 1\
**Last updated:** [January 1, 2008, 8:10pm UTC](https://www.ruby-forum.com/t/updating-gems-using-nmake/124703 "2008-01-01T20:10:57Z")

</div>

I am trying to update the win32-api (standard) gem using Netbeans IDE. but I am getting an error from nmake. Microsoft (R) Program Maintenance Utility Version 1.50 Copyright (c) Microsoft Corp 1988-94. All rights r…

---

## [\[ANN\] BackgrounDRb release 1.0 available now](https://www.ruby-forum.com/t/ann-backgroundrb-release-1-0-available-now/123407)

<div class="topic-metadata">

**Author:** [@gnufied](https://www.ruby-forum.com/u/gnufied)\
**Replies:** 4\
**Last updated:** [January 1, 2008, 7:32pm UTC](https://www.ruby-forum.com/t/ann-backgroundrb-release-1-0-available-now/123407 "2008-01-01T19:32:19Z")

</div>

Hi Folks, I am glad to announce 1.0 release of BackgrounDRb. This would be a major release since 0.2 release of BackgrounDRb. Here is a brief summary of changes: BackgrounDRb is DRb no longer. It makes use of Event…

---

## [Testing and has\_many Questions](https://www.ruby-forum.com/t/testing-and-has-many-questions/124714)

<div class="topic-metadata">

**Author:** [@taro](https://www.ruby-forum.com/u/taro)\
**Replies:** 1\
**Last updated:** [January 1, 2008, 5:53pm UTC](https://www.ruby-forum.com/t/testing-and-has-many-questions/124714 "2008-01-01T17:53:22Z")

</div>

To unit test the models’ functionality, I realized I need to call save. That said, I wondered if save in test causes the model to be stored in the database. If so, what should I do to avoid this problem? Should I j…

---

## [Testing and has\_many Questions](https://www.ruby-forum.com/t/testing-and-has-many-questions/196557)

<div class="topic-metadata">

**Author:** [@taro](https://www.ruby-forum.com/u/taro)\
**Replies:** 0\
**Last updated:** [January 1, 2008, 5:33pm UTC](https://www.ruby-forum.com/t/testing-and-has-many-questions/196557 "2008-01-01T17:33:29Z")

</div>

To unit test the models’ functionality, I realized I need to call save. That said, I wondered if save in test causes the model to be stored in the database. If so, what should I do to avoid this problem? Should I j…

---

## [Apache installed but cant view default page outside of LAN](https://www.ruby-forum.com/t/apache-installed-but-cant-view-default-page-outside-of-lan/124653)

<div class="topic-metadata">

**Author:** [@bbqplate](https://www.ruby-forum.com/u/bbqplate)\
**Replies:** 1\
**Last updated:** [January 1, 2008, 3:43pm UTC](https://www.ruby-forum.com/t/apache-installed-but-cant-view-default-page-outside-of-lan/124653 "2008-01-01T15:43:01Z")

</div>

hi, i installed apache and i can view the default splash page by entering the local ipaddress from another computer on the network. however, i cant view the splash page from another computer on toutside the network. …

---

## [Automatically loading controller-specifc JS](https://www.ruby-forum.com/t/automatically-loading-controller-specifc-js/124708)

<div class="topic-metadata">

**Author:** [@pkoebbe](https://www.ruby-forum.com/u/pkoebbe)\
**Replies:** 0\
**Last updated:** [January 1, 2008, 2:09pm UTC](https://www.ruby-forum.com/t/automatically-loading-controller-specifc-js/124708 "2008-01-01T14:09:56Z")

</div>

There was a thread recently that brought up the idea of modifying javascript\_include\_tag to load a controller-specific js file automatically. I took a look at doing that last night, and discovered that it’s actually …

---

## [Getting the results of AR's generated SQL](https://www.ruby-forum.com/t/getting-the-results-of-ars-generated-sql/124436)

<div class="topic-metadata">

**Author:** [@pkoebbe](https://www.ruby-forum.com/u/pkoebbe)\
**Replies:** 9\
**Last updated:** [January 1, 2008, 1:59pm UTC](https://www.ruby-forum.com/t/getting-the-results-of-ars-generated-sql/124436 "2008-01-01T13:59:59Z")

</div>

Has anyone tackled the idea of stored queries, like for reporting? I’d like to use AR to build a query then save the query off for future use. I’ve been looking in the AR API and doing some googling, but what I’m fin…

---

## [Behaviour on ActiveRecord in unit-tests](https://www.ruby-forum.com/t/behaviour-on-activerecord-in-unit-tests/124707)

<div class="topic-metadata">

**Author:** [@rbjl](https://www.ruby-forum.com/u/rbjl)\
**Replies:** 0\
**Last updated:** [January 1, 2008, 1:54pm UTC](https://www.ruby-forum.com/t/behaviour-on-activerecord-in-unit-tests/124707 "2008-01-01T13:54:01Z")

</div>

Hello, sadly I’ve some trouble understanding the behaviour of AR in a unit test, in which an object is destroyed, but not destroyed within the database Test is here: http://pastie.caboo.se/133741 The background is …

---

## [Functional tests](https://www.ruby-forum.com/t/functional-tests/124704)

<div class="topic-metadata">

**Author:** [@site-master](https://www.ruby-forum.com/u/site-master)\
**Replies:** 1\
**Last updated:** [January 1, 2008, 1:47pm UTC](https://www.ruby-forum.com/t/functional-tests/124704 "2008-01-01T13:47:31Z")

</div>

Hi, Im stating to play with rails testing and have hit a slight snag that i’m hoping someone can hit me with a clue bat for. I have my models and associations set up correctly and all is working as it should. I only…

---

## [Happy New Year 2008..... see it](https://www.ruby-forum.com/t/happy-new-year-2008-see-it/124705)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [January 1, 2008, 12:42pm UTC](https://www.ruby-forum.com/t/happy-new-year-2008-see-it/124705 "2008-01-01T12:42:31Z")

</div>

Hi Friend, I wish u a HAPPY AND PROPURS NEW YEAR 2008. IF you want to meet your old school & college mate’s of your life there is a chance, just enter school or college details in the below site PL…

---

## [Nested Controllers - Development vs. Production](https://www.ruby-forum.com/t/nested-controllers-development-vs-production/124645)

<div class="topic-metadata">

**Author:** [@bingobob](https://www.ruby-forum.com/u/bingobob)\
**Replies:** 4\
**Last updated:** [January 1, 2008, 10:05am UTC](https://www.ruby-forum.com/t/nested-controllers-development-vs-production/124645 "2008-01-01T10:05:02Z")

</div>

I have an infuriating problem! Very excited about my app, working well and then I dropped it into production (first deployment) and it continued to operate at first as expected (I’ve learned an awful lot in the last 6…

---

## [Automatically install standard plugins](https://www.ruby-forum.com/t/automatically-install-standard-plugins/124701)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [January 1, 2008, 9:22am UTC](https://www.ruby-forum.com/t/automatically-install-standard-plugins/124701 "2008-01-01T09:22:02Z")

</div>

Is there a way to automatically include a user defined standard set of plugin each time a new rails project is created. Right now each new project, I have to load rSpec plus several others that I use with each project…

---

## [Chained collection\_selects RJS](https://www.ruby-forum.com/t/chained-collection-selects-rjs/124700)

<div class="topic-metadata">

**Author:** [@Jorge\_Mario\_GSMazo](https://www.ruby-forum.com/u/Jorge_Mario_GSMazo)\
**Replies:** 0\
**Last updated:** [January 1, 2008, 8:51am UTC](https://www.ruby-forum.com/t/chained-collection-selects-rjs/124700 "2008-01-01T08:51:05Z")

</div>

Hi there I´m trying to get working a bunch of chained collection selects so it is like this from 2 collection selects I replace 2 divs (just text) and generate 2 more collections selects depeneding on the results from…

---

## [Syntax for text\_field](https://www.ruby-forum.com/t/syntax-for-text-field/124693)

<div class="topic-metadata">

**Author:** [@suneeta](https://www.ruby-forum.com/u/suneeta)\
**Replies:** 0\
**Last updated:** [January 1, 2008, 6:44am UTC](https://www.ruby-forum.com/t/syntax-for-text-field/124693 "2008-01-01T06:44:28Z")

</div>

Hi… I have two tables named cis and software\_cis which are polymorphically related. In the interface for editing the data in software\_cis table, i specified the text\_field component as Name \<%= text\_field ‘ci.conte…

---

## [Errno::ENOBUFS:](https://www.ruby-forum.com/t/errno/124695)

<div class="topic-metadata">

**Author:** [@Haris\_G](https://www.ruby-forum.com/u/Haris_G)\
**Replies:** 0\
**Last updated:** [January 1, 2008, 6:14am UTC](https://www.ruby-forum.com/t/errno/124695 "2008-01-01T06:14:37Z")

</div>

Hello all, I am facing an error when I send a hit to the app. The page doesnt display anything and the server console says: ERROR Errno::ENOBUFS: An operation on a socket could not be performed because the system la…

---

## [Un cache a page](https://www.ruby-forum.com/t/un-cache-a-page/124680)

<div class="topic-metadata">

**Author:** [@gemblon](https://www.ruby-forum.com/u/gemblon)\
**Replies:** 2\
**Last updated:** [January 1, 2008, 5:00am UTC](https://www.ruby-forum.com/t/un-cache-a-page/124680 "2008-01-01T05:00:02Z")

</div>

how do i un-cache a page? i updated my application, and every works but the cached pages. for the cached pages, the old pages appear. thanks

---

## [Missing values in LEFT OUTER JOIN using find\_by\_sql (possible bug?)](https://www.ruby-forum.com/t/missing-values-in-left-outer-join-using-find-by-sql-possible-bug/124646)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [January 1, 2008, 4:50am UTC](https://www.ruby-forum.com/t/missing-values-in-left-outer-join-using-find-by-sql-possible-bug/124646 "2008-01-01T04:50:32Z")

</div>

This is related to an earlier post " left outer join change in 1.2.1?" by Benjamin Ritcey. I need to use a LEFT OUTER JOIN for its classic purpose: joining two two tables such that tuples are returned containing attr…

---

## [Restful-Authentication Rspec Failure Rails 2.0.2](https://www.ruby-forum.com/t/restful-authentication-rspec-failure-rails-2-0-2/124603)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 6\
**Last updated:** [January 1, 2008, 3:06am UTC](https://www.ruby-forum.com/t/restful-authentication-rspec-failure-rails-2-0-2/124603 "2008-01-01T03:06:32Z")

</div>

I am trying the Restful-Authentication (latest version, downloaded today) and upon running the generator, doing the migration, prepping the test system and putting the resources in routes.rb I get a Rspec test failure…

---

## [Development and server have different routes](https://www.ruby-forum.com/t/development-and-server-have-different-routes/124679)

<div class="topic-metadata">

**Author:** [@gemblon](https://www.ruby-forum.com/u/gemblon)\
**Replies:** 0\
**Last updated:** [January 1, 2008, 2:33am UTC](https://www.ruby-forum.com/t/development-and-server-have-different-routes/124679 "2008-01-01T02:33:09Z")

</div>

hi for my application on the web server, the path is: iCloud but on my development machine (instant rails/vista), the route is: iCloud ((( no /rails )))) it is only a problem, when calling a controller from the p…

---

## [Is the acts\_as\_taggable plugin still relevant?](https://www.ruby-forum.com/t/is-the-acts-as-taggable-plugin-still-relevant/114127)

<div class="topic-metadata">

**Author:** [@dacbo](https://www.ruby-forum.com/u/dacbo)\
**Replies:** 10\
**Last updated:** [January 1, 2008, 2:12am UTC](https://www.ruby-forum.com/t/is-the-acts-as-taggable-plugin-still-relevant/114127 "2008-01-01T02:12:14Z")

</div>

I’ve been reading around on the various acts\_as\_taggable implementations (DHH plugin, gem, steroids plugin) and I’m a bit confused as to which one to use… All of the documentation that I’ve read says that the DHH plug…

---

## [Easiest defense against SQL injection in object creation?](https://www.ruby-forum.com/t/easiest-defense-against-sql-injection-in-object-creation/124677)

<div class="topic-metadata">

**Author:** [@mlopke](https://www.ruby-forum.com/u/mlopke)\
**Replies:** 2\
**Last updated:** [January 1, 2008, 1:59am UTC](https://www.ruby-forum.com/t/easiest-defense-against-sql-injection-in-object-creation/124677 "2008-01-01T01:59:47Z")

</div>

I’ve been scouring the web for suggested Rails defenses against SQL injection, but I haven’t found much on the object creation part. Certainly using attr\_protected, etc., is a good way to prevent unwanted fields from …

---

## [Can you mixin 'has\_many', etc., into models?](https://www.ruby-forum.com/t/can-you-mixin-has-many-etc-into-models/124257)

<div class="topic-metadata">

**Author:** [@mlopke](https://www.ruby-forum.com/u/mlopke)\
**Replies:** 8\
**Last updated:** [January 1, 2008, 1:18am UTC](https://www.ruby-forum.com/t/can-you-mixin-has-many-etc-into-models/124257 "2008-01-01T01:18:49Z")

</div>

Folks, I’m developing a blog plugin which adds a bunch of ‘has\_many’ associations to the user object, e.g.: has\_many :blogs\_created, :class\_name =\> ‘Blog’, :foreign\_key =\> ‘created\_by’ The caveat is that I’m trying …

---

## [Test Problem with model name "Tester"](https://www.ruby-forum.com/t/test-problem-with-model-name-tester/123838)

<div class="topic-metadata">

**Author:** [@gampolt](https://www.ruby-forum.com/u/gampolt)\
**Replies:** 2\
**Last updated:** [January 1, 2008, 12:10am UTC](https://www.ruby-forum.com/t/test-problem-with-model-name-tester/123838 "2008-01-01T00:10:46Z")

</div>

I’m using rails 2.0.2 now. Here is the step for generate the error Create rails project name demo “rails demo” I create model name “Tester” using command “ruby script/generate model Tester name:string description:tex…

---

## [I wish](https://www.ruby-forum.com/t/i-wish/124665)

<div class="topic-metadata">

**Author:** [@jawosis](https://www.ruby-forum.com/u/jawosis)\
**Replies:** 2\
**Last updated:** [January 1, 2008, 12:07am UTC](https://www.ruby-forum.com/t/i-wish/124665 "2008-01-01T00:07:16Z")

</div>

…everyone on this list a happy new year…still 2 hours till 2008 here in Germany… …and thanx to everyone for the great answers. – Jochen K. figgfrosch.de / gissmoh.de / ror-ror.de / railswerk.de

---

## [Conditional Float Precision](https://www.ruby-forum.com/t/conditional-float-precision/124673)

<div class="topic-metadata">

**Author:** [@blaine](https://www.ruby-forum.com/u/blaine)\
**Replies:** 2\
**Last updated:** [December 31, 2007, 11:50pm UTC](https://www.ruby-forum.com/t/conditional-float-precision/124673 "2007-12-31T23:50:54Z")

</div>

I’m trying to figure out the best way (and hopefully leanest) to conditionally have precision to a float number. Here’s what I’m doing… I have a float (which has a default precision of 1) so like 250.0 What I want to…

---

## [Simply Rich Authenticator Released](https://www.ruby-forum.com/t/simply-rich-authenticator-released/124531)

<div class="topic-metadata">

**Author:** [@bparanj](https://www.ruby-forum.com/u/bparanj)\
**Replies:** 2\
**Last updated:** [December 31, 2007, 11:50pm UTC](https://www.ruby-forum.com/t/simply-rich-authenticator-released/124531 "2007-12-31T23:50:54Z")

</div>

Hi, I have developed a mini Rails app using Rails 2.0.2, RESTful authentication and Acts as State Machine. It has the following features: Login Logout User Activation Forgot Password Reset Password You can check ou…

---

## [How to add a new column to a table using RadRails](https://www.ruby-forum.com/t/how-to-add-a-new-column-to-a-table-using-radrails/124652)

<div class="topic-metadata">

**Author:** [@alex-osu3](https://www.ruby-forum.com/u/alex-osu3)\
**Replies:** 2\
**Last updated:** [December 31, 2007, 10:55pm UTC](https://www.ruby-forum.com/t/how-to-add-a-new-column-to-a-table-using-radrails/124652 "2007-12-31T22:55:58Z")

</div>

Hi all, I am new to ROR and I use RadRails for ROR. I start a project and create a model,a scaffold, and a table. It works fine. The table contains two columns. Later on I need to add one more column to the table and…

---

## [Help with tricky query / relationship?](https://www.ruby-forum.com/t/help-with-tricky-query-relationship/124668)

<div class="topic-metadata">

**Author:** [@goodieboy](https://www.ruby-forum.com/u/goodieboy)\
**Replies:** 4\
**Last updated:** [December 31, 2007, 10:20pm UTC](https://www.ruby-forum.com/t/help-with-tricky-query-relationship/124668 "2007-12-31T22:20:20Z")

</div>

Hi, I’ve got a tree that is described by 2 different tables. One table is for the nodes, and another is for the relationships. The relationship table simply has a child\_node\_id and a parent\_node\_id. I’d like to find …

---

## [Don't know how to build task 'db:test:prepare'](https://www.ruby-forum.com/t/dont-know-how-to-build-task-dbprepare/124659)

<div class="topic-metadata">

**Author:** [@SmallPaul](https://www.ruby-forum.com/u/SmallPaul)\
**Replies:** 1\
**Last updated:** [December 31, 2007, 10:20pm UTC](https://www.ruby-forum.com/t/dont-know-how-to-build-task-dbprepare/124659 "2007-12-31T22:20:20Z")

</div>

I am running ‘rake db:test:prepare’ from the root dir and get error “Don’t know how to build task ‘db:test:prepare’”, and I don’t know what to do!

---

## [Problems with new cookie session store and firefox](https://www.ruby-forum.com/t/problems-with-new-cookie-session-store-and-firefox/124590)

<div class="topic-metadata">

**Author:** [@jawosis](https://www.ruby-forum.com/u/jawosis)\
**Replies:** 5\
**Last updated:** [December 31, 2007, 10:14pm UTC](https://www.ruby-forum.com/t/problems-with-new-cookie-session-store-and-firefox/124590 "2007-12-31T22:14:29Z")

</div>

I run Rails 2.0.2 and use the new cookie based session store. My users get authenticated against a mysql database. When the credentials are ok I set session\[:userid\]. I use session\[:userid\] for example to track the u…

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

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