# Rails

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

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

---

## [Items.destroy doesn't work](https://www.ruby-forum.com/t/items-destroy-doesnt-work/157047)

<div class="topic-metadata">

**Author:** [@scottnj](https://www.ruby-forum.com/u/scottnj)\
**Replies:** 1\
**Last updated:** [January 6, 2009, 10:45pm UTC](https://www.ruby-forum.com/t/items-destroy-doesnt-work/157047 "2009-01-06T22:45:44Z")

</div>

why doesn’t this work items.destroy if items = find(:all, :conditions =\> …) right now i have this that works, but it seems ugly and inefficient. if items = find(:all, :conditions =\> …) items.each do |item| item.dest…

---

## [IntegrationTest doesn't affect model](https://www.ruby-forum.com/t/integrationtest-doesnt-affect-model/156599)

<div class="topic-metadata">

**Author:** [@fritza](https://www.ruby-forum.com/u/fritza)\
**Replies:** 1\
**Last updated:** [January 6, 2009, 10:29pm UTC](https://www.ruby-forum.com/t/integrationtest-doesnt-affect-model/156599 "2009-01-06T22:29:47Z")

</div>

At the end of this message, I have (trimmed) code for an IntegrationTest, controller, and model. The IntegrationTest posts to a URL that should destroy a model object (“Secondary”). The Secondary belongs\_to a Principa…

---

## [Plugin auto\_complete](https://www.ruby-forum.com/t/plugin-auto-complete/156363)

<div class="topic-metadata">

**Author:** [@railsrailsrails](https://www.ruby-forum.com/u/railsrailsrails)\
**Replies:** 5\
**Last updated:** [January 6, 2009, 10:12pm UTC](https://www.ruby-forum.com/t/plugin-auto-complete/156363 "2009-01-06T22:12:53Z")

</div>

Hi all ! I began to develop Rails applications with Aptana Radrails under Windows. For that I had successfully installed auto\_complete plugin and succeeded to use it. Now I have an iMac and I’m trying to restart my d…

---

## [Can we create FTP users within Rails?](https://www.ruby-forum.com/t/can-we-create-ftp-users-within-rails/151391)

<div class="topic-metadata">

**Author:** [@naturalkid](https://www.ruby-forum.com/u/naturalkid)\
**Replies:** 5\
**Last updated:** [January 6, 2009, 9:31pm UTC](https://www.ruby-forum.com/t/can-we-create-ftp-users-within-rails/151391 "2009-01-06T21:31:49Z")

</div>

Hi All, I plan to use the vsftpd FTP damon in Ubuntu Linux server running my rails website. My website needs automatically create new FTP accounts everytime a new registration occurs. I have done basic homework of g…

---

## [Web framework for embedded appliance?](https://www.ruby-forum.com/t/web-framework-for-embedded-appliance/157042)

<div class="topic-metadata">

**Author:** [@Florian\_Dejako](https://www.ruby-forum.com/u/Florian_Dejako)\
**Replies:** 1\
**Last updated:** [January 6, 2009, 8:29pm UTC](https://www.ruby-forum.com/t/web-framework-for-embedded-appliance/157042 "2009-01-06T20:29:49Z")

</div>

Sorry for the off-topic post, but I figured someone here might know: I’m looking for a Ruby web framework that is suitable for developing a web service on an embedded network appliance. RAM is an issue, but probably n…

---

## [Rcov not detecting existing and valid test cases](https://www.ruby-forum.com/t/rcov-not-detecting-existing-and-valid-test-cases/157036)

<div class="topic-metadata">

**Author:** [@vahagn](https://www.ruby-forum.com/u/vahagn)\
**Replies:** 0\
**Last updated:** [January 6, 2009, 6:01pm UTC](https://www.ruby-forum.com/t/rcov-not-detecting-existing-and-valid-test-cases/157036 "2009-01-06T18:01:43Z")

</div>

Hello,- got a question regarding strange behavior by rcov. I have a gyms\_controller.rb with the usual group of CRUD methods. Each one of them is being tested in the gyms\_controller\_test.rb: $ ruby test/functional/gym…

---

## [Strange error](https://www.ruby-forum.com/t/strange-error/157034)

<div class="topic-metadata">

**Author:** [@Jej](https://www.ruby-forum.com/u/Jej)\
**Replies:** 1\
**Last updated:** [January 6, 2009, 5:55pm UTC](https://www.ruby-forum.com/t/strange-error/157034 "2009-01-06T17:55:14Z")

</div>

Hi all, I get a really strange error… I have 2 simple models: class Membre \< ActiveRecord::Base has\_one :adhesion end class Adhesion \< ActiveRecord::Base belongs\_to :membre end The relation works well in the cons…

---

## [ActionMailer failing test](https://www.ruby-forum.com/t/actionmailer-failing-test/156558)

<div class="topic-metadata">

**Author:** [@Diego\_Algorta](https://www.ruby-forum.com/u/Diego_Algorta)\
**Replies:** 3\
**Last updated:** [January 6, 2009, 5:16pm UTC](https://www.ruby-forum.com/t/actionmailer-failing-test/156558 "2009-01-06T17:16:43Z")

</div>

Hi all, I have an app using rails 2.2.2 and engines from master branch commit 5a2fb6db. I have an Emailer \< ActionMailer::Base but I need to have some of the templates in the app and some others in an engines plugin.…

---

## [How to reference parent object when using sub-resources](https://www.ruby-forum.com/t/how-to-reference-parent-object-when-using-sub-resources/157023)

<div class="topic-metadata">

**Author:** [@pooch](https://www.ruby-forum.com/u/pooch)\
**Replies:** 1\
**Last updated:** [January 6, 2009, 3:41pm UTC](https://www.ruby-forum.com/t/how-to-reference-parent-object-when-using-sub-resources/157023 "2009-01-06T15:41:15Z")

</div>

Hi, I’m building my first Rails application and have hit a problem using sub-resources. My model includes a Deposit that has\_many Payments. So routes.rb has a line: map.resources :deposits, :has\_many =\> :payment…

---

## [Generate random password in Rails](https://www.ruby-forum.com/t/generate-random-password-in-rails/157019)

<div class="topic-metadata">

**Author:** [@mikhailov](https://www.ruby-forum.com/u/mikhailov)\
**Replies:** 0\
**Last updated:** [January 6, 2009, 2:53pm UTC](https://www.ruby-forum.com/t/generate-random-password-in-rails/157019 "2009-01-06T14:53:16Z")

</div>

http://www.railsgeek.com/2009/1/6/generate-random-password-in-rails I am using Restful\_authentication plugin for one of my projects. As part of my user creation workflow, system should to generate a random password fo…

---

## [Cloning ActiveRecord objects](https://www.ruby-forum.com/t/cloning-activerecord-objects/157006)

<div class="topic-metadata">

**Author:** [@rob](https://www.ruby-forum.com/u/rob)\
**Replies:** 1\
**Last updated:** [January 6, 2009, 2:47pm UTC](https://www.ruby-forum.com/t/cloning-activerecord-objects/157006 "2009-01-06T14:47:06Z")

</div>

Hi there, I’ve been working on a solution to try and fix a problem I am getting with the Interlock plugin. However, my quick solution was to clone my ActiveRecord object and store the clone. I now realise that cloning …

---

## [Checking for Functional Site](https://www.ruby-forum.com/t/checking-for-functional-site/156832)

<div class="topic-metadata">

**Author:** [@wickie](https://www.ruby-forum.com/u/wickie)\
**Replies:** 6\
**Last updated:** [January 6, 2009, 2:41pm UTC](https://www.ruby-forum.com/t/checking-for-functional-site/156832 "2009-01-06T14:41:57Z")

</div>

I have my rails sites hosted by Bluehost. While they are in many ways an ideal host for developers, they have one very major problem. Their sysadmins periodically change the Rails installation without any warning to u…

---

## [Slow rendering (column statistics) after migration](https://www.ruby-forum.com/t/slow-rendering-column-statistics-after-migration/157016)

<div class="topic-metadata">

**Author:** [@albert](https://www.ruby-forum.com/u/albert)\
**Replies:** 1\
**Last updated:** [January 6, 2009, 2:04pm UTC](https://www.ruby-forum.com/t/slow-rendering-column-statistics-after-migration/157016 "2009-01-06T14:04:50Z")

</div>

After migrating to a new system, most parts work fine and perform as before. But the xml template where I use column statistics performs very bad: 8 seconds instead of 0.2 seconds on the old system. There I use statem…

---

## [\[JOBS\] France, Nantes, DÃ©velopp eur web (H/F)](https://www.ruby-forum.com/t/jobs-france-nantes-da-velopp-eur-web-h-f/157011)

<div class="topic-metadata">

**Author:** [@Kpitn](https://www.ruby-forum.com/u/Kpitn)\
**Replies:** 0\
**Last updated:** [January 6, 2009, 2:03pm UTC](https://www.ruby-forum.com/t/jobs-france-nantes-da-velopp-eur-web-h-f/157011 "2009-01-06T14:03:03Z")

</div>

L’entreprise La société UNEEK Sarl est une startup Nantaise dans le domaine des TIC. Co-incubés par Atlanpole (Technopole de Nantes Atlantique) et Audencia (Ecole de Management de Nantes), nous bénéficions également …

---

## [Security framework](https://www.ruby-forum.com/t/security-framework/157008)

<div class="topic-metadata">

**Author:** [@builtbysimple](https://www.ruby-forum.com/u/builtbysimple)\
**Replies:** 1\
**Last updated:** [January 6, 2009, 1:30pm UTC](https://www.ruby-forum.com/t/security-framework/157008 "2009-01-06T13:30:04Z")

</div>

Dear all, Could anyone refer me a good security framework in rails for authentication and authorization please? Thanks in advance

---

## [Need help on rjs calls and partials](https://www.ruby-forum.com/t/need-help-on-rjs-calls-and-partials/157001)

<div class="topic-metadata">

**Author:** [@sa125](https://www.ruby-forum.com/u/sa125)\
**Replies:** 0\
**Last updated:** [January 6, 2009, 11:31am UTC](https://www.ruby-forum.com/t/need-help-on-rjs-calls-and-partials/157001 "2009-01-06T11:31:38Z")

</div>

Hey all - What I’m trying to accomplish is creating my own edit in place on a set of data. Right now I’m just toying with some nonsense app, but when I figure it out it’ll be put to good use. I divide my code between …

---

## [Different class for a data\_select](https://www.ruby-forum.com/t/different-class-for-a-data-select/156999)

<div class="topic-metadata">

**Author:** [@Kpitn](https://www.ruby-forum.com/u/Kpitn)\
**Replies:** 0\
**Last updated:** [January 6, 2009, 11:22am UTC](https://www.ruby-forum.com/t/different-class-for-a-data-select/156999 "2009-01-06T11:22:25Z")

</div>

Hi, I am using this syntax : f.date\_select :birth\_date, :class=\>“test” I want to use a width different for the 3 select, but the class is not different for the three select. Is there a way to apply a different width …

---

## [Apache, REMOTE\_USER, and Mongrel](https://www.ruby-forum.com/t/apache-remote-user-and-mongrel/70506)

<div class="topic-metadata">

**Author:** [@wjrogers](https://www.ruby-forum.com/u/wjrogers)\
**Replies:** 12\
**Last updated:** [January 6, 2009, 10:41am UTC](https://www.ruby-forum.com/t/apache-remote-user-and-mongrel/70506 "2009-01-06T10:41:25Z")

</div>

I use mod\_auth\_sspi with Apache to authenticate requests to my Rails application. This means that Apache performs an NTLM challenge-response with the client on request, then sets its REMOTE\_USER variable to the userna…

---

## [RoR, Apache2, fcgid and ubuntu](https://www.ruby-forum.com/t/ror-apache2-fcgid-and-ubuntu/156995)

<div class="topic-metadata">

**Author:** [@zeba-momin](https://www.ruby-forum.com/u/zeba-momin)\
**Replies:** 0\
**Last updated:** [January 6, 2009, 9:55am UTC](https://www.ruby-forum.com/t/ror-apache2-fcgid-and-ubuntu/156995 "2009-01-06T09:55:25Z")

</div>

Hi. I’m trying to deploy my rails application on ubuntu server using apache2 and fcgid…but have not been successful… I am using ruby 1.8.6, rails 2.2.2 and fcgi 0.8.7 gem… I am able to start apache successfully and …

---

## [How to test a plugin](https://www.ruby-forum.com/t/how-to-test-a-plugin/154727)

<div class="topic-metadata">

**Author:** [@artchrst](https://www.ruby-forum.com/u/artchrst)\
**Replies:** 5\
**Last updated:** [January 6, 2009, 8:41am UTC](https://www.ruby-forum.com/t/how-to-test-a-plugin/154727 "2009-01-06T08:41:47Z")

</div>

Guys, I’ve created a plugin, i wanna put my automated test there. However, I got bad file descriptor error when i run the test like normal unit test file: “ruby plugins/acts\_as\_fox/test/acts\_as\_fox\_test.rb” How to t…

---

## [Best way to store this data in the database](https://www.ruby-forum.com/t/best-way-to-store-this-data-in-the-database/156795)

<div class="topic-metadata">

**Author:** [@skirkpatrick](https://www.ruby-forum.com/u/skirkpatrick)\
**Replies:** 2\
**Last updated:** [January 6, 2009, 6:05am UTC](https://www.ruby-forum.com/t/best-way-to-store-this-data-in-the-database/156795 "2009-01-06T06:05:28Z")

</div>

i have bunch of item properties that need to be stored in the database. the options for the properties are: -unknown -yes -no what do you think is the best way to store this data? should i use a tinyint and only st…

---

## [\[Please help!\]store parameters variable into database](https://www.ruby-forum.com/t/please-help-store-parameters-variable-into-database/156919)

<div class="topic-metadata">

**Author:** [@ukarick](https://www.ruby-forum.com/u/ukarick)\
**Replies:** 7\
**Last updated:** [January 6, 2009, 4:05am UTC](https://www.ruby-forum.com/t/please-help-store-parameters-variable-into-database/156919 "2009-01-06T04:05:59Z")

</div>

So here’s what I’m trying to do I’m going to store params variables into database. Here’s what it’s looklike. ------------------------Data that store on my database -------------- — !map:HashWithIndifferentAccess “1…

---

## [Error with production setup on Linode](https://www.ruby-forum.com/t/error-with-production-setup-on-linode/156961)

<div class="topic-metadata">

**Author:** [@jasonwold](https://www.ruby-forum.com/u/jasonwold)\
**Replies:** 2\
**Last updated:** [January 6, 2009, 3:51am UTC](https://www.ruby-forum.com/t/error-with-production-setup-on-linode/156961 "2009-01-06T03:51:30Z")

</div>

Hello All, I have gotten my VPS setup on linode, and now i’m in the process of getting a rails app running. I was able to get Spree (spreehq.com) running with very little effort. Now i’m trying to do the same with …

---

## [Form Posts Across Different Controllers?](https://www.ruby-forum.com/t/form-posts-across-different-controllers/156980)

<div class="topic-metadata">

**Author:** [@davox](https://www.ruby-forum.com/u/davox)\
**Replies:** 1\
**Last updated:** [January 6, 2009, 3:36am UTC](https://www.ruby-forum.com/t/form-posts-across-different-controllers/156980 "2009-01-06T03:36:19Z")

</div>

I have a basic, basic question about form posting across different controllers. I think I’m having a fundamental problem understanding html forms, while ruby I understand fairly well. If I have on my “item” “show” pag…

---

## [Undefined local variable or method \`acts\_as\_list'](https://www.ruby-forum.com/t/undefined-local-variable-or-method-acts-as-list/156917)

<div class="topic-metadata">

**Author:** [@quangn](https://www.ruby-forum.com/u/quangn)\
**Replies:** 3\
**Last updated:** [January 6, 2009, 3:04am UTC](https://www.ruby-forum.com/t/undefined-local-variable-or-method-acts-as-list/156917 "2009-01-06T03:04:48Z")

</div>

So I seem to be having an issue with trying to install acts\_as\_list in rails 2.2.2? I have downloaded the files from: I have put the files in the vendor/plugins folder the files are as follows: vendor/plugins/acts\_…

---

## [Learning Rails](https://www.ruby-forum.com/t/learning-rails/156982)

<div class="topic-metadata">

**Author:** [@Matt\_Osbun](https://www.ruby-forum.com/u/Matt_Osbun)\
**Replies:** 0\
**Last updated:** [January 6, 2009, 2:53am UTC](https://www.ruby-forum.com/t/learning-rails/156982 "2009-01-06T02:53:41Z")

</div>

I picked up a Rails book on a whim over my Christmas vacation, and started playing around. I’ve been a web developer for closing in on ten years now, and while I’ve used a few different platforms and languages, I’ve…

---

## [Updating Rails app from 1.2.6 to 2.2.2](https://www.ruby-forum.com/t/updating-rails-app-from-1-2-6-to-2-2-2/156981)

<div class="topic-metadata">

**Author:** [@adambeazley](https://www.ruby-forum.com/u/adambeazley)\
**Replies:** 1\
**Last updated:** [January 6, 2009, 2:12am UTC](https://www.ruby-forum.com/t/updating-rails-app-from-1-2-6-to-2-2-2/156981 "2009-01-06T02:12:46Z")

</div>

Hey all, Is there any information out there for updating a pre-2.0 rails app? The problem I’m running into right now has to do with the user system I’m running, which was originally installed as an engine. When I try …

---

## [Some tasks that will help index your db](https://www.ruby-forum.com/t/some-tasks-that-will-help-index-your-db/156978)

<div class="topic-metadata">

**Author:** [@ben](https://www.ruby-forum.com/u/ben)\
**Replies:** 2\
**Last updated:** [January 6, 2009, 1:35am UTC](https://www.ruby-forum.com/t/some-tasks-that-will-help-index-your-db/156978 "2009-01-06T01:35:21Z")

</div>

If you are looking to improve your database performance, you might want to index your database, esspecially if it is large. Here are some rake tasks that will look at your code and active record and automatically add…

---

## [Missing Template with edge Rails (2.3)](https://www.ruby-forum.com/t/missing-template-with-edge-rails-2-3/156850)

<div class="topic-metadata">

**Author:** [@rich](https://www.ruby-forum.com/u/rich)\
**Replies:** 3\
**Last updated:** [January 6, 2009, 12:31am UTC](https://www.ruby-forum.com/t/missing-template-with-edge-rails-2-3/156850 "2009-01-06T00:31:36Z")

</div>

After freezing edge rails, all my controller examples are failing with MissingTemplate errors. e.g., “Missing template attachments/create.erb in view path app/views” Trying to actually render the views gives me the sa…

---

## [Rails apps packaging](https://www.ruby-forum.com/t/rails-apps-packaging/156928)

<div class="topic-metadata">

**Author:** [@builtbysimple](https://www.ruby-forum.com/u/builtbysimple)\
**Replies:** 6\
**Last updated:** [January 6, 2009, 12:27am UTC](https://www.ruby-forum.com/t/rails-apps-packaging/156928 "2009-01-06T00:27:30Z")

</div>

Dear all, How do I package a rails apps and distribute it? As I can see that rails library is installed inside the Ruby gem folder and not inside the apps. Now if I want to distribute this with my client, how can I i…

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

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