# Rails

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

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

---

## [Another clue](https://www.ruby-forum.com/t/another-clue/122507)

<div class="topic-metadata">

**Author:** [@mfaine](https://www.ruby-forum.com/u/mfaine)\
**Replies:** 0\
**Last updated:** [December 8, 2007, 1:31pm UTC](https://www.ruby-forum.com/t/another-clue/122507 "2007-12-08T13:31:12Z")

</div>

Hi all, Regarding my database disconnect… It would appear that it happens more often when the googlebot visits… Processing Base#index (for 66.249.66.233 I am at a loss to understand why it’s going to Base#index rathe…

---

## [How to destroy a session in the proper way](https://www.ruby-forum.com/t/how-to-destroy-a-session-in-the-proper-way/122411)

<div class="topic-metadata">

**Author:** [@nad](https://www.ruby-forum.com/u/nad)\
**Replies:** 6\
**Last updated:** [December 8, 2007, 11:41am UTC](https://www.ruby-forum.com/t/how-to-destroy-a-session-in-the-proper-way/122411 "2007-12-08T11:41:49Z")

</div>

Hi All, i use a commend “session\[‘user’\] = nil” to destroy the session when the user log out from the system. bt even though i destroy the session i can see all the temporary files that was created in my temp folder.…

---

## [RadRails: Rake Tasks dropdown menu shows empty](https://www.ruby-forum.com/t/radrails-rake-tasks-dropdown-menu-shows-empty/122505)

<div class="topic-metadata">

**Author:** [@adinda\_p](https://www.ruby-forum.com/u/adinda_p)\
**Replies:** 0\
**Last updated:** [December 8, 2007, 11:35am UTC](https://www.ruby-forum.com/t/radrails-rake-tasks-dropdown-menu-shows-empty/122505 "2007-12-08T11:35:15Z")

</div>

Hi list, I’m having trouble with my RadRails. I have Instant Rails and on Aptana, I set up the “installed interpreters” to C:\\InstantRails\\ruby and the type is “standard VM”. On the Rake Tasks tab, the dropdown list …

---

## [Scaffold method versus script/generate scaffold](https://www.ruby-forum.com/t/scaffold-method-versus-script-generate-scaffold/122500)

<div class="topic-metadata">

**Author:** [@Thufir](https://www.ruby-forum.com/u/Thufir)\
**Replies:** 0\
**Last updated:** [December 8, 2007, 10:26am UTC](https://www.ruby-forum.com/t/scaffold-method-versus-script-generate-scaffold/122500 "2007-12-08T10:26:49Z")

</div>

For the following: "If you have a controller named ‘Entry’, and model named ‘Post’, it can be used as follows: class EntryController \< ApplicationController scaffold :post end" http://wiki.rubyonrails.org/rails/pag…

---

## [Using submit to pass own parameters](https://www.ruby-forum.com/t/using-submit-to-pass-own-parameters/122501)

<div class="topic-metadata">

**Author:** [@Sarah\_Lynam](https://www.ruby-forum.com/u/Sarah_Lynam)\
**Replies:** 0\
**Last updated:** [December 8, 2007, 9:00am UTC](https://www.ruby-forum.com/t/using-submit-to-pass-own-parameters/122501 "2007-12-08T09:00:17Z")

</div>

Im not sure if form\_for is the correct method to use here. I am trying to have a submit button, but I dont want the user to enter information. I want to pass the parameters myself. Is it correct to use form\_for her…

---

## [Trouble updating to Rails 2.0](https://www.ruby-forum.com/t/trouble-updating-to-rails-2-0/122491)

<div class="topic-metadata">

**Author:** [@GSaldana](https://www.ruby-forum.com/u/GSaldana)\
**Replies:** 1\
**Last updated:** [December 8, 2007, 7:24am UTC](https://www.ruby-forum.com/t/trouble-updating-to-rails-2-0/122491 "2007-12-08T07:24:27Z")

</div>

I recently updated my gems and first I got an error with Rails. Aparently, Rails 2.0 has a dependency on ActiveResource, but the gems dont install it as a dependency. At least not when upgrading from 1.2.6 to 2.0 The…

---

## [App Theme Support and Rails 2.0](https://www.ruby-forum.com/t/app-theme-support-and-rails-2-0/122497)

<div class="topic-metadata">

**Author:** [@hunter\_h](https://www.ruby-forum.com/u/hunter_h)\
**Replies:** 0\
**Last updated:** [December 8, 2007, 7:05am UTC](https://www.ruby-forum.com/t/app-theme-support-and-rails-2-0/122497 "2007-12-08T07:05:44Z")

</div>

I’m interested in adding theme support to a Rails 2.0 based app. It seems the two popular plugins for themes, theme\_support and multisite both are no go on 2.0. Anyone have any more info on this, workarounds or altern…

---

## [Auto\_complete\_field plugin](https://www.ruby-forum.com/t/auto-complete-field-plugin/122494)

<div class="topic-metadata">

**Author:** [@Obelix](https://www.ruby-forum.com/u/Obelix)\
**Replies:** 1\
**Last updated:** [December 8, 2007, 7:02am UTC](https://www.ruby-forum.com/t/auto-complete-field-plugin/122494 "2007-12-08T07:02:14Z")

</div>

Trying rails 2.0. ./script/plugin install auto\_complete\_field Plugin not found: \[“auto\_complete\_field”\] Does anyone know a svn repository that has this plugin?

---

## [Updating to 1.2.6](https://www.ruby-forum.com/t/updating-to-1-2-6/122483)

<div class="topic-metadata">

**Author:** [@Daniel\_Curran](https://www.ruby-forum.com/u/Daniel_Curran)\
**Replies:** 1\
**Last updated:** [December 8, 2007, 2:19am UTC](https://www.ruby-forum.com/t/updating-to-1-2-6/122483 "2007-12-08T02:19:27Z")

</div>

How does one go about updating to 1.2.6 now that 2.0 is out. gem update rails will update rails to 2.0 but gem update rails-1.2.6 results in ERROR: could not find rails-1.2.6 locally or in a repository Could anyone …

---

## [Html form and form\_for](https://www.ruby-forum.com/t/html-form-and-form-for/122466)

<div class="topic-metadata">

**Author:** [@nuby2ruby](https://www.ruby-forum.com/u/nuby2ruby)\
**Replies:** 4\
**Last updated:** [December 8, 2007, 1:47am UTC](https://www.ruby-forum.com/t/html-form-and-form-for/122466 "2007-12-08T01:47:53Z")

</div>

So, i’m not sure exactly how to do this, or if it is a smart thing to do this. I need some help on the best way to approach this. I have a simple form, it has a text\_field and a text\_area. I want to add 2 submit butto…

---

## [NoMethodError](https://www.ruby-forum.com/t/nomethoderror/122481)

<div class="topic-metadata">

**Author:** [@gadys](https://www.ruby-forum.com/u/gadys)\
**Replies:** 1\
**Last updated:** [December 8, 2007, 1:18am UTC](https://www.ruby-forum.com/t/nomethoderror/122481 "2007-12-08T01:18:39Z")

</div>

Hi I’m new to rails and i have a problem with an exception. I used masterView to generate a scaffold for a model named page. list mode work fine, and i can see a row i injected with sql but when i try to click on sho…

---

## [Fat models and validation](https://www.ruby-forum.com/t/fat-models-and-validation/122371)

<div class="topic-metadata">

**Author:** [@bhbrinckerhoff](https://www.ruby-forum.com/u/bhbrinckerhoff)\
**Replies:** 10\
**Last updated:** [December 8, 2007, 12:16am UTC](https://www.ruby-forum.com/t/fat-models-and-validation/122371 "2007-12-08T00:16:41Z")

</div>

Hi all, I’m trying my best to adhere to the thin controller/fat model philosophy - in particular, I’m trying to make sure my validation stays inside my models, so it can be reused in multiple places. My current probl…

---

## [Application plugins](https://www.ruby-forum.com/t/application-plugins/122479)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [December 7, 2007, 11:40pm UTC](https://www.ruby-forum.com/t/application-plugins/122479 "2007-12-07T23:40:24Z")

</div>

In cakephp (a rails like framework) there is an app/plugin directory. Here is the a “default” layout: plugins/blog/controllers: plugins/blog/controllers/blog\_controller.php plugins/blog/models: plugins/blog/models/b…

---

## [Creating an alphabetic list](https://www.ruby-forum.com/t/creating-an-alphabetic-list/122469)

<div class="topic-metadata">

**Author:** [@drewtempelmeyer](https://www.ruby-forum.com/u/drewtempelmeyer)\
**Replies:** 4\
**Last updated:** [December 7, 2007, 11:03pm UTC](https://www.ruby-forum.com/t/creating-an-alphabetic-list/122469 "2007-12-07T23:03:48Z")

</div>

I’m wishing to create an alphabetic list in Rails so it’s not necessary to hard code a block of code that would generate links to find records that being with A, or B, or C, etc Basically, I want to create an alphabet…

---

## [I'm told "template is missing", but file is there!](https://www.ruby-forum.com/t/im-told-template-is-missing-but-file-is-there/122258)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [December 7, 2007, 10:28pm UTC](https://www.ruby-forum.com/t/im-told-template-is-missing-but-file-is-there/122258 "2007-12-07T22:28:19Z")

</div>

Hi, I’m working through the tutorial (http://wiki.rubyonrails.org/rails/ pages/TutorialHelperMethods), and have created this file – /usr/local/ apache2/htdocs/myproject/app/views/edit.rhtml, with 775 perms. The file…

---

## [Intoducing Morph HelpME](https://www.ruby-forum.com/t/intoducing-morph-helpme/122472)

<div class="topic-metadata">

**Author:** [@mannye](https://www.ruby-forum.com/u/mannye)\
**Replies:** 0\
**Last updated:** [December 7, 2007, 9:45pm UTC](https://www.ruby-forum.com/t/intoducing-morph-helpme/122472 "2007-12-07T21:45:46Z")

</div>

Hi guys, I would like to introduce you to a new online help and training system that my company has just released. It is built on Ruby on Rails and I think you may find it interesting. Below is our standard content …

---

## [Introducing Morph helpME](https://www.ruby-forum.com/t/introducing-morph-helpme/122470)

<div class="topic-metadata">

**Author:** [@manny](https://www.ruby-forum.com/u/manny)\
**Replies:** 0\
**Last updated:** [December 7, 2007, 9:18pm UTC](https://www.ruby-forum.com/t/introducing-morph-helpme/122470 "2007-12-07T21:18:26Z")

</div>

Hi guys, I would like to introduce you to a new online help and training system that my company has just released. It is built on Ruby on Rails and I think you may find it interesting. I would like to ask that you a…

---

## [Automatic 'verify :xhr =\> true' for methods ending with \_xhr](https://www.ruby-forum.com/t/automatic-verify-xhr-true-for-methods-ending-with-xhr/122010)

<div class="topic-metadata">

**Author:** [@gabru](https://www.ruby-forum.com/u/gabru)\
**Replies:** 8\
**Last updated:** [December 7, 2007, 9:06pm UTC](https://www.ruby-forum.com/t/automatic-verify-xhr-true-for-methods-ending-with-xhr/122010 "2007-12-07T21:06:08Z")

</div>

hey guys, i am writing a couple of actions which are only used with an xhr. I ‘protect’ them all against a direct access with the ‘verify’ method in the controller verify :only =\> …, :xhr =\> true it would be cool if…

---

## [Mini\_magick error](https://www.ruby-forum.com/t/mini-magick-error/122468)

<div class="topic-metadata">

**Author:** [@raghus](https://www.ruby-forum.com/u/raghus)\
**Replies:** 0\
**Last updated:** [December 7, 2007, 8:51pm UTC](https://www.ruby-forum.com/t/mini-magick-error/122468 "2007-12-07T20:51:31Z")

</div>

I just started using mini\_magick and attachment\_fu to upload images. While the image gets uploaded, I don’t get a) thumbnails (even resizing doesn’t work) b) image parameters like size, width or height in the database…

---

## [X.nil? or x.blank?](https://www.ruby-forum.com/t/x-nil-or-x-blank/122305)

<div class="topic-metadata">

**Author:** [@gabru](https://www.ruby-forum.com/u/gabru)\
**Replies:** 9\
**Last updated:** [December 7, 2007, 8:32pm UTC](https://www.ruby-forum.com/t/x-nil-or-x-blank/122305 "2007-12-07T20:32:10Z")

</div>

does someone knows if there is method which checks both? if not then i’ll write my own … but i am curious if there is one for return x.nil? or blank?

---

## [How do I speed up RSPEC?](https://www.ruby-forum.com/t/how-do-i-speed-up-rspec/122244)

<div class="topic-metadata">

**Author:** [@akv292](https://www.ruby-forum.com/u/akv292)\
**Replies:** 2\
**Last updated:** [December 7, 2007, 8:32pm UTC](https://www.ruby-forum.com/t/how-do-i-speed-up-rspec/122244 "2007-12-07T20:32:10Z")

</div>

I am setup on Mac (OS X) using RSPEC (version 1.0.8) for my tests. This is the first time I have used RSPEC before but it is running my tests extremely slowly. I was trying to use ‘Autotest’ with Growl, but even just …

---

## [ANN: Rails-2.0 hosting already available at WebFaction with special discount](https://www.ruby-forum.com/t/ann-rails-2-0-hosting-already-available-at-webfaction-with-special-discount/122461)

<div class="topic-metadata">

**Author:** [@remi](https://www.ruby-forum.com/u/remi)\
**Replies:** 0\
**Last updated:** [December 7, 2007, 7:42pm UTC](https://www.ruby-forum.com/t/ann-rails-2-0-hosting-already-available-at-webfaction-with-special-discount/122461 "2007-12-07T19:42:48Z")

</div>

Hello everyone, I am pleased to announce that WebFaction has already added a one-click installer for Rails-2.0.1 to its control panel. To celeberate the highly anticipated release WebFaction is offering a 50% disco…

---

## [Changes from localhost:3000 to Apache/Mongrel (attachment\_fu)](https://www.ruby-forum.com/t/changes-from-localhost-3000-to-apache-mongrel-attachment-fu/122458)

<div class="topic-metadata">

**Author:** [@lazer\_rash](https://www.ruby-forum.com/u/lazer_rash)\
**Replies:** 0\
**Last updated:** [December 7, 2007, 7:20pm UTC](https://www.ruby-forum.com/t/changes-from-localhost-3000-to-apache-mongrel-attachment-fu/122458 "2007-12-07T19:20:31Z")

</div>

I have an application that using attachment\_fu. I am able to upload files on my local box but when I try it remotely it does not work. Is there any kind of known issues when you are using a Mongrel cluster and uploa…

---

## [Each.do error with one record](https://www.ruby-forum.com/t/each-do-error-with-one-record/122454)

<div class="topic-metadata">

**Author:** [@anthony](https://www.ruby-forum.com/u/anthony)\
**Replies:** 2\
**Last updated:** [December 7, 2007, 7:04pm UTC](https://www.ruby-forum.com/t/each-do-error-with-one-record/122454 "2007-12-07T19:04:43Z")

</div>

Hello, I realize that the reason I am getting this error is because my code returns many records when there is more than one to be found. However, if it only finds one, the each.do flakes out and gives me a NoMethodEr…

---

## [Adding a List to a rhtml file](https://www.ruby-forum.com/t/adding-a-list-to-a-rhtml-file/121567)

<div class="topic-metadata">

**Author:** [@gemblon](https://www.ruby-forum.com/u/gemblon)\
**Replies:** 3\
**Last updated:** [December 7, 2007, 6:40pm UTC](https://www.ruby-forum.com/t/adding-a-list-to-a-rhtml-file/121567 "2007-12-07T18:40:06Z")

</div>

I am a bit confused on the easiest way to add a drop down list on a page, that is all data from another table? It seems there would be a gem or package made to do this. It has to be pretty common stuff. If a user p…

---

## [Debugger dumps me into irb, not rdb](https://www.ruby-forum.com/t/debugger-dumps-me-into-irb-not-rdb/122309)

<div class="topic-metadata">

**Author:** [@gavin](https://www.ruby-forum.com/u/gavin)\
**Replies:** 2\
**Last updated:** [December 7, 2007, 6:32pm UTC](https://www.ruby-forum.com/t/debugger-dumps-me-into-irb-not-rdb/122309 "2007-12-07T18:32:29Z")

</div>

I just got on edge rails. When I call debugger from my code, I get dumped into irb, not rdb. Why’s that?

---

## [Rescuing migrations](https://www.ruby-forum.com/t/rescuing-migrations/122451)

<div class="topic-metadata">

**Author:** [@student](https://www.ruby-forum.com/u/student)\
**Replies:** 0\
**Last updated:** [December 7, 2007, 6:27pm UTC](https://www.ruby-forum.com/t/rescuing-migrations/122451 "2007-12-07T18:27:11Z")

</div>

DHH will probably hate my example, but… AWDR talks about the difficulties and dangers of using complex migrations–complex being defined as “doing more than one thing”. Not being satisfied with the alternatives, I hav…

---

## [Reconcile deploy and daemon w/ deprec](https://www.ruby-forum.com/t/reconcile-deploy-and-daemon-w-deprec/122450)

<div class="topic-metadata">

**Author:** [@vince](https://www.ruby-forum.com/u/vince)\
**Replies:** 0\
**Last updated:** [December 7, 2007, 6:22pm UTC](https://www.ruby-forum.com/t/reconcile-deploy-and-daemon-w-deprec/122450 "2007-12-07T18:22:39Z")

</div>

I’m used the deprec gem to set up capistrano, subversion, apache, etc It works great except that my rails app has a file upload feature that doesn’t work due to a permissions error. On a server where apache and mongr…

---

## [Errno::ECONNRESET (Connection reset by peer):](https://www.ruby-forum.com/t/errno-econnreset-connection-reset-by-peer/122449)

<div class="topic-metadata">

**Author:** [@mfaine](https://www.ruby-forum.com/u/mfaine)\
**Replies:** 0\
**Last updated:** [December 7, 2007, 6:13pm UTC](https://www.ruby-forum.com/t/errno-econnreset-connection-reset-by-peer/122449 "2007-12-07T18:13:34Z")

</div>

Seemingly random db connection drop (FastCGI/Apache/PostgreSQL). Kills the app with an ‘Application Error (Rails)’ Any suggestions? production.log as follows: Processing Base#index (for xxx.xxx.xxx.xxx at 2007-12-07 …

---

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

<div class="topic-metadata">

**Author:** [@kevin\_cline](https://www.ruby-forum.com/u/kevin_cline)\
**Replies:** 3\
**Last updated:** [December 7, 2007, 6:12pm UTC](https://www.ruby-forum.com/t/rails-recipe-44-write-tests-for-your-helpers/122441 "2007-12-07T18:12:30Z")

</div>

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

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

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