# Rails

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

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

---

## [Sending radio button value through auto\_complete](https://www.ruby-forum.com/t/sending-radio-button-value-through-auto-complete/87795)

<div class="topic-metadata">

**Author:** [@jney](https://www.ruby-forum.com/u/jney)\
**Replies:** 0\
**Last updated:** [March 6, 2007, 1:27am UTC](https://www.ruby-forum.com/t/sending-radio-button-value-through-auto-complete/87795 "2007-03-06T01:27:22Z")

</div>

I’ve got an autocomplete field text\_field\_with\_auto\_complete(:query, :text, {}, :skip\_style =\> true, :tokens =\> “,”) and some radio buttons in the same form : radio\_button\_tag(:domain, “product”, :checked =\> true) …

---

## [Any capistrano email recipes?](https://www.ruby-forum.com/t/any-capistrano-email-recipes/87666)

<div class="topic-metadata">

**Author:** [@pergesu](https://www.ruby-forum.com/u/pergesu)\
**Replies:** 2\
**Last updated:** [March 6, 2007, 1:01am UTC](https://www.ruby-forum.com/t/any-capistrano-email-recipes/87666 "2007-03-06T01:01:18Z")

</div>

I’d like to set up capistrano to send an email whenever we do a deployment. Just start an SMTP session with localhost and shoot off the email. I have all the code to do that actually, I just don’t know how to run so…

---

## [\[ANN\] PDF::HTMLDoc 0.1.0](https://www.ruby-forum.com/t/ann-pdf-htmldoc-0-1-0/87788)

<div class="topic-metadata">

**Author:** [@Ronaldo\_Ferraz](https://www.ruby-forum.com/u/Ronaldo_Ferraz)\
**Replies:** 0\
**Last updated:** [March 6, 2007, 12:36am UTC](https://www.ruby-forum.com/t/ann-pdf-htmldoc-0-1-0/87788 "2007-03-06T00:36:17Z")

</div>

In previous Rails projects, I’ve used HTMLDOC1 to generate PDF and PostScript output out of HTML sources. After seeing a couple of requests for similar functionality in a couple of Rails-related mailing lists, I decid…

---

## [Using before\_save to update a record only once](https://www.ruby-forum.com/t/using-before-save-to-update-a-record-only-once/87188)

<div class="topic-metadata">

**Author:** [@mendake](https://www.ruby-forum.com/u/mendake)\
**Replies:** 11\
**Last updated:** [March 6, 2007, 12:14am UTC](https://www.ruby-forum.com/t/using-before-save-to-update-a-record-only-once/87188 "2007-03-06T00:14:34Z")

</div>

I’d like to use before\_save to perform an action (I won’t get into the details), but only the first time the record is changed from 0 to 1. Here’s the code I have so far in my model: def before\_save if completed == 1 …

---

## [Simple Navigation of Array](https://www.ruby-forum.com/t/simple-navigation-of-array/87375)

<div class="topic-metadata">

**Author:** [@Rian](https://www.ruby-forum.com/u/Rian)\
**Replies:** 4\
**Last updated:** [March 6, 2007, 12:11am UTC](https://www.ruby-forum.com/t/simple-navigation-of-array/87375 "2007-03-06T00:11:16Z")

</div>

Goal: Browse a specific set of database records (the array @features) as a list. Select an item from list (item\[3\]) to view. On item page (i.e. ./show/3 ) navigate to previous / next item page using generated links. T…

---

## [Tests problems](https://www.ruby-forum.com/t/tests-problems/87646)

<div class="topic-metadata">

**Author:** [@Pierre-Alexandre\_M](https://www.ruby-forum.com/u/Pierre-Alexandre_M)\
**Replies:** 15\
**Last updated:** [March 6, 2007, 12:02am UTC](https://www.ruby-forum.com/t/tests-problems/87646 "2007-03-06T00:02:14Z")

</div>

Hi, I use fixtures to upload entries in my db. Actually, I have some fixed informations I need to use in my application, so I have done a migration\_file for this. To upload it in my test\_db, I use a script to copy en…

---

## [Displaying Binary Image](https://www.ruby-forum.com/t/displaying-binary-image/87751)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [March 5, 2007, 11:40pm UTC](https://www.ruby-forum.com/t/displaying-binary-image/87751 "2007-03-05T23:40:10Z")

</div>

Hi There, hopefully this is the right group to solve my Problem: I Need to display an image in a PDF Document. The image is created via another webseite for example: The Image to display is a barcode and its type is…

---

## [Mongrel cluster died only in production environment](https://www.ruby-forum.com/t/mongrel-cluster-died-only-in-production-environment/87776)

<div class="topic-metadata">

**Author:** [@pkulak](https://www.ruby-forum.com/u/pkulak)\
**Replies:** 1\
**Last updated:** [March 5, 2007, 11:34pm UTC](https://www.ruby-forum.com/t/mongrel-cluster-died-only-in-production-environment/87776 "2007-03-05T23:34:15Z")

</div>

I’m new to setting up a production server with Rails, so I tried to do what seems to be the standard setup right now: a couple mongrel servers behind Apache 2.2. I’ve got a test page that refreshes itself every couple…

---

## [Engines 1.2 and performance](https://www.ruby-forum.com/t/engines-1-2-and-performance/87728)

<div class="topic-metadata">

**Author:** [@henry](https://www.ruby-forum.com/u/henry)\
**Replies:** 4\
**Last updated:** [March 5, 2007, 11:18pm UTC](https://www.ruby-forum.com/t/engines-1-2-and-performance/87728 "2007-03-05T23:18:08Z")

</div>

Greetings, We’re running into some performance issues with an app and I’m hoping to eliminate Engines as the cause before really taking things apart. Since we updated the app to Rails v1.2 and upgraded three of the En…

---

## [Verify if an URL exist](https://www.ruby-forum.com/t/verify-if-an-url-exist/87779)

<div class="topic-metadata">

**Author:** [@j-merrill](https://www.ruby-forum.com/u/j-merrill)\
**Replies:** 2\
**Last updated:** [March 5, 2007, 11:11pm UTC](https://www.ruby-forum.com/t/verify-if-an-url-exist/87779 "2007-03-05T23:11:36Z")

</div>

Hi all, How can I know if an givel URL really exists? My users add URLs, but I have to validade that they exists, like a ping to the URL. Thanks

---

## [Rails Recipes #31 Authenticating Users](https://www.ruby-forum.com/t/rails-recipes-31-authenticating-users/87771)

<div class="topic-metadata">

**Author:** [@chris](https://www.ruby-forum.com/u/chris)\
**Replies:** 1\
**Last updated:** [March 5, 2007, 11:09pm UTC](https://www.ruby-forum.com/t/rails-recipes-31-authenticating-users/87771 "2007-03-05T23:09:06Z")

</div>

I have figured out everything except for how to add a new user to the database. The book gives an example of adding a user through the command line, and that works fine. I can login using a user created that way. I…

---

## [Allison](https://www.ruby-forum.com/t/allison/87778)

<div class="topic-metadata">

**Author:** [@technodolt](https://www.ruby-forum.com/u/technodolt)\
**Replies:** 0\
**Last updated:** [March 5, 2007, 10:45pm UTC](https://www.ruby-forum.com/t/allison/87778 "2007-03-05T22:45:02Z")

</div>

Is there any way to tempt Rails core to change their rdoc template to be Allison? Look here And over here for a demo Seriously: the filters that you can do on the lists of class names, files, etc… they’re pretty …

---

## [Help with rjb](https://www.ruby-forum.com/t/help-with-rjb/87773)

<div class="topic-metadata">

**Author:** [@msojka](https://www.ruby-forum.com/u/msojka)\
**Replies:** 2\
**Last updated:** [March 5, 2007, 10:37pm UTC](https://www.ruby-forum.com/t/help-with-rjb/87773 "2007-03-05T22:37:01Z")

</div>

I am trying to do file i/o with rails and rjb and can’t figure out a way to make this work. Here’s what I am trying to do: a user uploads an image to the server via a standard html form: \<%= file\_field(“blog”, “attac…

---

## [File I/O with rjb](https://www.ruby-forum.com/t/file-i-o-with-rjb/87775)

<div class="topic-metadata">

**Author:** [@msojka](https://www.ruby-forum.com/u/msojka)\
**Replies:** 0\
**Last updated:** [March 5, 2007, 10:34pm UTC](https://www.ruby-forum.com/t/file-i-o-with-rjb/87775 "2007-03-05T22:34:01Z")

</div>

I am trying to do file i/o with rails and rjb and can’t figure out a way to make this work. Here’s what I am trying to do: a user uploads an image to the server via a standard html form: \<%= file\_field(“blog”, “attac…

---

## [Application-specific e-mail template engine](https://www.ruby-forum.com/t/application-specific-e-mail-template-engine/87768)

<div class="topic-metadata">

**Author:** [@rubylover](https://www.ruby-forum.com/u/rubylover)\
**Replies:** 2\
**Last updated:** [March 5, 2007, 10:07pm UTC](https://www.ruby-forum.com/t/application-specific-e-mail-template-engine/87768 "2007-03-05T22:07:57Z")

</div>

Does anyone have any experience with creating a templating system for e-mails sent via Rails? Here is what I’d like to do: User selects “Create message” from my application User selects a predefined template from dro…

---

## [Returning a code chunk from an action](https://www.ruby-forum.com/t/returning-a-code-chunk-from-an-action/87591)

<div class="topic-metadata">

**Author:** [@doug](https://www.ruby-forum.com/u/doug)\
**Replies:** 3\
**Last updated:** [March 5, 2007, 10:00pm UTC](https://www.ruby-forum.com/t/returning-a-code-chunk-from-an-action/87591 "2007-03-05T22:00:56Z")

</div>

Hi – I’m very new to Rails. I’m using a simple project to get acquainted. In this project what it seems to me that I want to do is to have an action return a chunk of dynamically-generated html code complete with dy…

---

## [\[ANN\] Favorite Rails plugins](https://www.ruby-forum.com/t/ann-favorite-rails-plugins/87766)

<div class="topic-metadata">

**Author:** [@Benjamin\_C](https://www.ruby-forum.com/u/Benjamin_C)\
**Replies:** 0\
**Last updated:** [March 5, 2007, 9:08pm UTC](https://www.ruby-forum.com/t/ann-favorite-rails-plugins/87766 "2007-03-05T21:08:48Z")

</div>

Over the weekend I added the ability to add plugins to your own list of favorite plugins at the Rails plugin directory (http:// agilewebdevelopment.com/plugins). As an added bonus, you don’t even have to create yet a…

---

## [Memcached fails to retrieve object in a different controller](https://www.ruby-forum.com/t/memcached-fails-to-retrieve-object-in-a-different-controller/87760)

<div class="topic-metadata">

**Author:** [@weyus](https://www.ruby-forum.com/u/weyus)\
**Replies:** 3\
**Last updated:** [March 5, 2007, 8:56pm UTC](https://www.ruby-forum.com/t/memcached-fails-to-retrieve-object-in-a-different-controller/87760 "2007-03-05T20:56:25Z")

</div>

All, I’ve successfully set up memcache client in my Rails app. However, when I put something into the cache in one controller, and then attempt to retrieve it in another controller, I get an error. More detail: In …

---

## [RSpec on Windows](https://www.ruby-forum.com/t/rspec-on-windows/87761)

<div class="topic-metadata">

**Author:** [@johnnybutler7](https://www.ruby-forum.com/u/johnnybutler7)\
**Replies:** 0\
**Last updated:** [March 5, 2007, 8:29pm UTC](https://www.ruby-forum.com/t/rspec-on-windows/87761 "2007-03-05T20:29:02Z")

</div>

Hi I am trying to use RSPEC on windows and i keep getting the following error “You must gem install win32console to use colour on Windows” I have installed this Gem but i am still getting the same error. The file th…

---

## [Evaluating Web Development Frameworks: Rails and Django](https://www.ruby-forum.com/t/evaluating-web-development-frameworks-rails-and-django/86766)

<div class="topic-metadata">

**Author:** [@johanatan](https://www.ruby-forum.com/u/johanatan)\
**Replies:** 6\
**Last updated:** [March 5, 2007, 8:14pm UTC](https://www.ruby-forum.com/t/evaluating-web-development-frameworks-rails-and-django/86766 "2007-03-05T20:14:37Z")

</div>

hi y’all, fyi i’ve posted the first in a series of blog articles, Evaluating Web D. Frameworks: Rails and Django at http://www.vaporbase.com/postings/91 :slight\_smile:

---

## [Counter\_cache doesn't work for me](https://www.ruby-forum.com/t/counter-cache-doesnt-work-for-me/85586)

<div class="topic-metadata">

**Author:** [@kadoudal](https://www.ruby-forum.com/u/kadoudal)\
**Replies:** 1\
**Last updated:** [March 5, 2007, 8:09pm UTC](https://www.ruby-forum.com/t/counter-cache-doesnt-work-for-me/85586 "2007-03-05T20:09:36Z")

</div>

I am trying to use the counter\_cache but it’s not updated… class Proposal \< ActiveRecord::Base has\_many :ratings, :dependent =\> :destroy (I have defined a ratings\_count column (default value 0) in my proposals table) …

---

## [Problems with counter cache on trunk (rev: 5788)](https://www.ruby-forum.com/t/problems-with-counter-cache-on-trunk-rev-5788/80832)

<div class="topic-metadata">

**Author:** [@Abdur-Rahman](https://www.ruby-forum.com/u/Abdur-Rahman)\
**Replies:** 1\
**Last updated:** [March 5, 2007, 7:57pm UTC](https://www.ruby-forum.com/t/problems-with-counter-cache-on-trunk-rev-5788/80832 "2007-03-05T19:57:35Z")

</div>

Hi guys, I have a problem with counter cache on the rails trunk version. I have the following test case (tried to post on core mailing list but looks like it isn’t accepting my mail): doc = Document.new assert doc.b…

---

## [Question about running memcached on multiple servers](https://www.ruby-forum.com/t/question-about-running-memcached-on-multiple-servers/87740)

<div class="topic-metadata">

**Author:** [@weyus](https://www.ruby-forum.com/u/weyus)\
**Replies:** 2\
**Last updated:** [March 5, 2007, 7:27pm UTC](https://www.ruby-forum.com/t/question-about-running-memcached-on-multiple-servers/87740 "2007-03-05T19:27:25Z")

</div>

All, I have memcached running on two boxes and memcache-client installed and am ready to integrate into my Rails app. I see lots of references to running the memcached server daemon process on several servers. This …

---

## [Oracle Date problem with legacy schema](https://www.ruby-forum.com/t/oracle-date-problem-with-legacy-schema/87724)

<div class="topic-metadata">

**Author:** [@CRichards](https://www.ruby-forum.com/u/CRichards)\
**Replies:** 1\
**Last updated:** [March 5, 2007, 7:10pm UTC](https://www.ruby-forum.com/t/oracle-date-problem-with-legacy-schema/87724 "2007-03-05T19:10:28Z")

</div>

Hi One of my columns, acqon, stores the date and time of an event. RoR automatically converts it into a Date object and not a time object. So i am loosing some information. I am at a loss how to correct this without…

---

## [How to migrate to sqlite3 memory tests?](https://www.ruby-forum.com/t/how-to-migrate-to-sqlite3-memory-tests/87660)

<div class="topic-metadata">

**Author:** [@Phlip](https://www.ruby-forum.com/u/Phlip)\
**Replies:** 1\
**Last updated:** [March 5, 2007, 6:59pm UTC](https://www.ruby-forum.com/t/how-to-migrate-to-sqlite3-memory-tests/87660 "2007-03-05T18:59:26Z")

</div>

Railzoids: I tried to follow these directions… http://nubyonrails.com/articles/2006/06/01/san-francisco-sqlite3-memory-tests-asteroids …but my ‘rake test:recent’ command gets nothing but a billion ‘table not found’ …

---

## [\[ANN\] Plugin: Find Resource 0.2 - Incompatible Changes!](https://www.ruby-forum.com/t/ann-plugin-find-resource-0-2-incompatible-changes/87750)

<div class="topic-metadata">

**Author:** [@turnip](https://www.ruby-forum.com/u/turnip)\
**Replies:** 0\
**Last updated:** [March 5, 2007, 6:52pm UTC](https://www.ruby-forum.com/t/ann-plugin-find-resource-0-2-incompatible-changes/87750 "2007-03-05T18:52:50Z")

</div>

Following the suggestion of Alex W. (http://beautifulpixel.com), I have decided to make it so that this plugin only takes effect when the create\_resource\_finder method is explicitly called. Previously, if the plugin w…

---

## [Rake db:migrate "no such option: controller action" problem](https://www.ruby-forum.com/t/rake-db-migrate-no-such-option-controller-action-problem/87476)

<div class="topic-metadata">

**Author:** [@jordelver](https://www.ruby-forum.com/u/jordelver)\
**Replies:** 8\
**Last updated:** [March 5, 2007, 6:32pm UTC](https://www.ruby-forum.com/t/rake-db-migrate-no-such-option-controller-action-problem/87476 "2007-03-05T18:32:22Z")

</div>

Hi, I’ve getting weirdness when running rake db:migrate. This rails project was originally created on windows. I don’t know if that makes a difference? This is the output from a --trace. \*\* Invoke db:migrate (first\_…

---

## [Capistrano put](https://www.ruby-forum.com/t/capistrano-put/87694)

<div class="topic-metadata">

**Author:** [@stemey](https://www.ruby-forum.com/u/stemey)\
**Replies:** 2\
**Last updated:** [March 5, 2007, 6:24pm UTC](https://www.ruby-forum.com/t/capistrano-put/87694 "2007-03-05T18:24:20Z")

</div>

Hi, I have tried to use “put” in my capistrano task to upload a zip file. Unfortunately it gets corrupted. This is the code: put(File.read(“releases/current/source.zip”), “/home//releases/current/source.zip”, :mode …

---

## [Class Table Inheritance](https://www.ruby-forum.com/t/class-table-inheritance/86624)

<div class="topic-metadata">

**Author:** [@rickm](https://www.ruby-forum.com/u/rickm)\
**Replies:** 2\
**Last updated:** [March 5, 2007, 6:23pm UTC](https://www.ruby-forum.com/t/class-table-inheritance/86624 "2007-03-05T18:23:20Z")

</div>

I’m trying to find a solution to this modeling problem I’m having in Rails, mainly because of the lack of support for ClassTI in Rails. I’m building a highly complex CMS which will be handling different types of conte…

---

## [Displaying find.all from another view](https://www.ruby-forum.com/t/displaying-find-all-from-another-view/87720)

<div class="topic-metadata">

**Author:** [@stevep](https://www.ruby-forum.com/u/stevep)\
**Replies:** 4\
**Last updated:** [March 5, 2007, 6:02pm UTC](https://www.ruby-forum.com/t/displaying-find-all-from-another-view/87720 "2007-03-05T18:02:15Z")

</div>

I’ve got 2 controllers - user and club I want to display all the clubs in a user view, how would i go about it? All i seem to get is NoMethodError

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

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