# Rails

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

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

---

## [Validates\_format\_of problem with REGEX](https://www.ruby-forum.com/t/validates-format-of-problem-with-regex/112020)

<div class="topic-metadata">

**Author:** [@le\_colibri](https://www.ruby-forum.com/u/le_colibri)\
**Replies:** 2\
**Last updated:** [August 14, 2007, 3:38pm UTC](https://www.ruby-forum.com/t/validates-format-of-problem-with-regex/112020 "2007-08-14T15:38:13Z")

</div>

Dear Railers, I’m having trouble with the following code: validates\_format\_of :class, :with =\> /^PL\[DTV\]\\d{1}\[a-z\]{1}/, :message =\> ‘blah blah:’ The class should start with PL and be followed by D, T or V, followed …

---

## [Rendering partial from different controller doesn't cascade?](https://www.ruby-forum.com/t/rendering-partial-from-different-controller-doesnt-cascade/112035)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [August 14, 2007, 3:12pm UTC](https://www.ruby-forum.com/t/rendering-partial-from-different-controller-doesnt-cascade/112035 "2007-08-14T15:12:05Z")

</div>

Hi all, I’m trying to render a partial from a different controller, sparked from an update\_html in an AJAX rjs response. The code calls it this way: page\[“menu\_#{menu.name}”\].replace\_html(:partial =\> “visitor/ menu”…

---

## [\[ADV\] New Rails and Ruby Studios](https://www.ruby-forum.com/t/adv-new-rails-and-ruby-studios/112032)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [August 14, 2007, 2:54pm UTC](https://www.ruby-forum.com/t/adv-new-rails-and-ruby-studios/112032 "2007-08-14T14:54:59Z")

</div>

Hi Folks, Apologies for the commercial, but in the event you’re trying to plan Rails and/or Ruby training this year, here’s The Pragmatic Studio’s schedule through the end of the year. RUBY ON RAILS Sept 12-14 in R…

---

## [Is validates\_uniqueness\_of transaction safe?](https://www.ruby-forum.com/t/is-validates-uniqueness-of-transaction-safe/111913)

<div class="topic-metadata">

**Author:** [@dparkmit](https://www.ruby-forum.com/u/dparkmit)\
**Replies:** 1\
**Last updated:** [August 14, 2007, 1:49pm UTC](https://www.ruby-forum.com/t/is-validates-uniqueness-of-transaction-safe/111913 "2007-08-14T13:49:49Z")

</div>

Hi All, I’ve recently starting programming in RoR. Here’s a question re: the ActiveRecord validation methods. Are they transaction safe? It seems that saving an instance of a model with validation methods could req…

---

## [Feeling empty, depressed, irritable when not at the computer](https://www.ruby-forum.com/t/feeling-empty-depressed-irritable-when-not-at-the-computer/112030)

<div class="topic-metadata">

**Author:** [@SSSSSS\_FreE\_InFoz\_S](https://www.ruby-forum.com/u/SSSSSS_FreE_InFoz_S)\
**Replies:** 0\
**Last updated:** [August 14, 2007, 1:37pm UTC](https://www.ruby-forum.com/t/feeling-empty-depressed-irritable-when-not-at-the-computer/112030 "2007-08-14T13:37:47Z")

</div>

Do you know anyone who plays computer all the time? Perhaps their personal relationships, work and social life are suffering due to their desire to constantly play computer? If this is the case, this person you know m…

---

## [Storing email in the database and then sending out email usi](https://www.ruby-forum.com/t/storing-email-in-the-database-and-then-sending-out-email-usi/111995)

<div class="topic-metadata">

**Author:** [@dorelal](https://www.ruby-forum.com/u/dorelal)\
**Replies:** 1\
**Last updated:** [August 14, 2007, 1:37pm UTC](https://www.ruby-forum.com/t/storing-email-in-the-database-and-then-sending-out-email-usi/111995 "2007-08-14T13:37:47Z")

</div>

Hi, Sending notifications to various people when a new comment is posted takes a lot of time if done during the run time. I want to store all the information in database and then send out email using a background p…

---

## [What's the good way to cache reference data?](https://www.ruby-forum.com/t/whats-the-good-way-to-cache-reference-data/112016)

<div class="topic-metadata">

**Author:** [@alexeyv](https://www.ruby-forum.com/u/alexeyv)\
**Replies:** 1\
**Last updated:** [August 14, 2007, 1:34pm UTC](https://www.ruby-forum.com/t/whats-the-good-way-to-cache-reference-data/112016 "2007-08-14T13:34:46Z")

</div>

I’m looking at an application that has 30+ lookup tables. By that I mean your typical (id, description, created\_on) affairs that contain locations, zip codes, contract types and what not. Things that rarely change, an…

---

## [Finding a models asscoations](https://www.ruby-forum.com/t/finding-a-models-asscoations/112017)

<div class="topic-metadata">

**Author:** [@johnnybutler7](https://www.ruby-forum.com/u/johnnybutler7)\
**Replies:** 2\
**Last updated:** [August 14, 2007, 1:07pm UTC](https://www.ruby-forum.com/t/finding-a-models-asscoations/112017 "2007-08-14T13:07:28Z")

</div>

Hi, I cant seem to find the answer to this anywhere so any help/advice is appreciated. Each project has one risk and a risk has a number of has/one belongs to assocations. So what i want to do is in my code loop thr…

---

## [What is the difference between new\_article\_path vs. new\_arti](https://www.ruby-forum.com/t/what-is-the-difference-between-new-article-path-vs-new-arti/112028)

<div class="topic-metadata">

**Author:** [@dparkmit](https://www.ruby-forum.com/u/dparkmit)\
**Replies:** 1\
**Last updated:** [August 14, 2007, 12:47pm UTC](https://www.ruby-forum.com/t/what-is-the-difference-between-new-article-path-vs-new-arti/112028 "2007-08-14T12:47:32Z")

</div>

hi all, i’ve recently begun using RESTful routing techniques in my RoR app. as i’m using it, though, i find that i use the \_path and the \_url methods interchangebly. what’s the difference between these types of meth…

---

## [Add an item dynamically to a select box](https://www.ruby-forum.com/t/add-an-item-dynamically-to-a-select-box/112027)

<div class="topic-metadata">

**Author:** [@Denis\_Jacquemin](https://www.ruby-forum.com/u/Denis_Jacquemin)\
**Replies:** 0\
**Last updated:** [August 14, 2007, 12:34pm UTC](https://www.ruby-forum.com/t/add-an-item-dynamically-to-a-select-box/112027 "2007-08-14T12:34:30Z")

</div>

Hi there, Anyone knows how to implement the same feature as the ‘category’ field in the ‘basecamp \> messages’ screen. Click to the last option (‘add a new category’) and then you just have to enter the new category l…

---

## [Lighttpd deployment issues](https://www.ruby-forum.com/t/lighttpd-deployment-issues/112021)

<div class="topic-metadata">

**Author:** [@crucoba](https://www.ruby-forum.com/u/crucoba)\
**Replies:** 0\
**Last updated:** [August 14, 2007, 11:26am UTC](https://www.ruby-forum.com/t/lighttpd-deployment-issues/112021 "2007-08-14T11:26:33Z")

</div>

Hello all, I am quite new to Rails. I’ve been programming in PHP most of the time, and have been playing around with Ruby on Rails for a week now. I’m having some trouble configuring my lighttpd + fastcgi daemon to w…

---

## [Assert\_select\_email on attachments](https://www.ruby-forum.com/t/assert-select-email-on-attachments/112009)

<div class="topic-metadata">

**Author:** [@awarberg](https://www.ruby-forum.com/u/awarberg)\
**Replies:** 0\
**Last updated:** [August 14, 2007, 9:22am UTC](https://www.ruby-forum.com/t/assert-select-email-on-attachments/112009 "2007-08-14T09:22:06Z")

</div>

Hey. Does anyone know how to test if an email has attachments using assert\_select\_email or something similar? – by(e) Andreas W. http://pdfmates.de - einfach, online, drucken http://rubyblog.de | http://activerail…

---

## [Handling changes in models in migrations](https://www.ruby-forum.com/t/handling-changes-in-models-in-migrations/112008)

<div class="topic-metadata">

**Author:** [@helpy](https://www.ruby-forum.com/u/helpy)\
**Replies:** 1\
**Last updated:** [August 14, 2007, 9:05am UTC](https://www.ruby-forum.com/t/handling-changes-in-models-in-migrations/112008 "2007-08-14T09:05:05Z")

</div>

Hello Rails list, I had a question regarding dealing with changes to models and migrations. When a model has its name changed or is deleted in a newer migration this has the possibility of breaking an earlier migrat…

---

## [New Rails App - Web Based SSH](https://www.ruby-forum.com/t/new-rails-app-web-based-ssh/111989)

<div class="topic-metadata">

**Author:** [@dnstevenson](https://www.ruby-forum.com/u/dnstevenson)\
**Replies:** 2\
**Last updated:** [August 14, 2007, 8:49am UTC](https://www.ruby-forum.com/t/new-rails-app-web-based-ssh/111989 "2007-08-14T08:49:02Z")

</div>

Hey All - I’ve just put up a new rails app you might find interesting. It’s called GotoSSH.com. Its basically a web based SSH client. We use Rails to run the whole thing along with modifications to the ajaxterm js…

---

## [Ruby on Rails Executive Summary?](https://www.ruby-forum.com/t/ruby-on-rails-executive-summary/111992)

<div class="topic-metadata">

**Author:** [@rails\_in\_dc](https://www.ruby-forum.com/u/rails_in_dc)\
**Replies:** 4\
**Last updated:** [August 14, 2007, 8:45am UTC](https://www.ruby-forum.com/t/ruby-on-rails-executive-summary/111992 "2007-08-14T08:45:01Z")

</div>

A friend of mine is looking to convince some executives to sign off on ruby. He’s looking for a good white paper executive summary of Rails. Not surprisingly, a simple google search doesn’t turn up much in this regard…

---

## [Reg :import from excel](https://www.ruby-forum.com/t/reg-import-from-excel/112007)

<div class="topic-metadata">

**Author:** [@shiva](https://www.ruby-forum.com/u/shiva)\
**Replies:** 0\
**Last updated:** [August 14, 2007, 8:09am UTC](https://www.ruby-forum.com/t/reg-import-from-excel/112007 "2007-08-14T08:09:55Z")

</div>

Hi, Any one knows how to import excel file.my scenoria is i want to capture data from excel and insert into database…if any one knows help me with regards shiva

---

## [Data migrations coupled to the model code](https://www.ruby-forum.com/t/data-migrations-coupled-to-the-model-code/112004)

<div class="topic-metadata">

**Author:** [@quik77](https://www.ruby-forum.com/u/quik77)\
**Replies:** 0\
**Last updated:** [August 14, 2007, 6:30am UTC](https://www.ruby-forum.com/t/data-migrations-coupled-to-the-model-code/112004 "2007-08-14T06:30:49Z")

</div>

It seems to me that data migrations have a serious flaw when refactoring models and the database schema – they are coupled to the model class relationships. If I’m trying to get rid of old relationships in favor of ne…

---

## [Html\_escape method](https://www.ruby-forum.com/t/html-escape-method/111919)

<div class="topic-metadata">

**Author:** [@vishvanathan](https://www.ruby-forum.com/u/vishvanathan)\
**Replies:** 2\
**Last updated:** [August 14, 2007, 5:12am UTC](https://www.ruby-forum.com/t/html-escape-method/111919 "2007-08-14T05:12:47Z")

</div>

Hi, I need to use the html\_escape function in my project.And I had tired the html\_escape or h function in the view. example: \<%= h “\< Hello \>” %\> Result: \< Hello \> But I am not get any html escaped characters for \< …

---

## [\[ANN\] memcache-client 1.5.0 Released](https://www.ruby-forum.com/t/ann-memcache-client-1-5-0-released/112000)

<div class="topic-metadata">

**Author:** [@miracleofmagick](https://www.ruby-forum.com/u/miracleofmagick)\
**Replies:** 0\
**Last updated:** [August 14, 2007, 4:52am UTC](https://www.ruby-forum.com/t/ann-memcache-client-1-5-0-released/112000 "2007-08-14T04:52:46Z")

</div>

memcache-client version 1.5.0 has been released! http://seattlerb.org/memcache-client memcache-client is a client for Danga Interactive’s memcached. Changes: 1.5.0 Add MemCache#flush\_all command. Patch #13019 an…

---

## [The 3 databases question](https://www.ruby-forum.com/t/the-3-databases-question/111997)

<div class="topic-metadata">

**Author:** [@eggie5](https://www.ruby-forum.com/u/eggie5)\
**Replies:** 1\
**Last updated:** [August 14, 2007, 4:44am UTC](https://www.ruby-forum.com/t/the-3-databases-question/111997 "2007-08-14T04:44:45Z")

</div>

So when you create a new ROR app, it wants to use 3 databases: development, testing and production. I understand the place of dev and testing on the localhost, but I don’t understand why you need a production database…

---

## [Options\_for\_select and sorting](https://www.ruby-forum.com/t/options-for-select-and-sorting/111957)

<div class="topic-metadata">

**Author:** [@Scott\_Parks](https://www.ruby-forum.com/u/Scott_Parks)\
**Replies:** 2\
**Last updated:** [August 14, 2007, 3:42am UTC](https://www.ruby-forum.com/t/options-for-select-and-sorting/111957 "2007-08-14T03:42:41Z")

</div>

I have several select options on a form and was planning on using options\_for\_select. If I use the code below the options do not appear in order on the form, I am not really sure of the order they are appearing since…

---

## [ActiveRecord and attributes returned](https://www.ruby-forum.com/t/activerecord-and-attributes-returned/111994)

<div class="topic-metadata">

**Author:** [@Scott\_Parks](https://www.ruby-forum.com/u/Scott_Parks)\
**Replies:** 0\
**Last updated:** [August 14, 2007, 3:41am UTC](https://www.ruby-forum.com/t/activerecord-and-attributes-returned/111994 "2007-08-14T03:41:41Z")

</div>

I am working with a couple of queries where I need to get the latitude and longitude from a table based on the zip code I pass to it. @geoLatitude = Geodemog.find\_by\_sql\[“select latitude from geodemogs where post\_cod…

---

## [Restful\_authentication not working with \<%= error\_messages\_f](https://www.ruby-forum.com/t/restful-authentication-not-working-with-error-messages-f/111804)

<div class="topic-metadata">

**Author:** [@riles01](https://www.ruby-forum.com/u/riles01)\
**Replies:** 1\
**Last updated:** [August 14, 2007, 3:29am UTC](https://www.ruby-forum.com/t/restful-authentication-not-working-with-error-messages-f/111804 "2007-08-14T03:29:37Z")

</div>

I’ve got restful\_authentication installed and working, but only if I remove \<%= error\_messages\_for :user %\> from the new.html.erb view in app/views/users/. I’m puzzled as to why this isn’t working as I can’t find anyo…

---

## [Advice needed on RoR, Media Temple, Plesk, hosting](https://www.ruby-forum.com/t/advice-needed-on-ror-media-temple-plesk-hosting/111809)

<div class="topic-metadata">

**Author:** [@Acroterra](https://www.ruby-forum.com/u/Acroterra)\
**Replies:** 1\
**Last updated:** [August 14, 2007, 3:20am UTC](https://www.ruby-forum.com/t/advice-needed-on-ror-media-temple-plesk-hosting/111809 "2007-08-14T03:20:37Z")

</div>

Does anyone have any advice on hosting a RoR app on Media Temple DV3 server running plesk. Pros or Cons. This is my first deployment of a RoR app so I am a newb and am a bit nervous getting a RoR app running on the sa…

---

## [Faceted tag search](https://www.ruby-forum.com/t/faceted-tag-search/111988)

<div class="topic-metadata">

**Author:** [@glasswing](https://www.ruby-forum.com/u/glasswing)\
**Replies:** 0\
**Last updated:** [August 14, 2007, 2:58am UTC](https://www.ruby-forum.com/t/faceted-tag-search/111988 "2007-08-14T02:58:36Z")

</div>

Hello, Anyone have any good pointers to faceted search examples and plugins. Flare seems to be defunct. acts\_as\_solr looks promising but I havent anything real in terms of features in examples on the web other than w…

---

## [Scheduled tasks on rails](https://www.ruby-forum.com/t/scheduled-tasks-on-rails/111790)

<div class="topic-metadata">

**Author:** [@dark-omen](https://www.ruby-forum.com/u/dark-omen)\
**Replies:** 4\
**Last updated:** [August 14, 2007, 2:58am UTC](https://www.ruby-forum.com/t/scheduled-tasks-on-rails/111790 "2007-08-14T02:58:36Z")

</div>

How do you set up automated tasks on rails. Say I wanted to send an update mailing every night at midnight to my users, or every night connect to a external database to update information on my database?

---

## [Bug in multiple map.resources :has\_many?](https://www.ruby-forum.com/t/bug-in-multiple-map-resources-has-many/111979)

<div class="topic-metadata">

**Author:** [@linojon](https://www.ruby-forum.com/u/linojon)\
**Replies:** 3\
**Last updated:** [August 14, 2007, 1:50am UTC](https://www.ruby-forum.com/t/bug-in-multiple-map-resources-has-many/111979 "2007-08-14T01:50:32Z")

</div>

Hi, does map.resources accept more than one :has\_many ? there seems to be a path helper only for the last one (eg abc\_bar\_path) map.resources :abc, :has\_one =\> :user, :has\_many =\> :foo, :has\_many =\> :bar if so, is…

---

## [First JRuby App on GlassFish Screencast & Blog](https://www.ruby-forum.com/t/first-jruby-app-on-glassfish-screencast-blog/196430)

<div class="topic-metadata">

**Author:** [@arun](https://www.ruby-forum.com/u/arun)\
**Replies:** 0\
**Last updated:** [August 14, 2007, 1:30am UTC](https://www.ruby-forum.com/t/first-jruby-app-on-glassfish-screencast-blog/196430 "2007-08-14T01:30:32Z")

</div>

This screencast shows how to develop and deploy your first JRuby app using NetBeans Ruby IDE and deploy it on GlassFish. Enjoy it at: http://blogs.sun.com/arungupta/entry/screencast\_web6\_first\_jruby\_app This screencas…

---

## [ActiveSupport and XML conversions help needed](https://www.ruby-forum.com/t/activesupport-and-xml-conversions-help-needed/111984)

<div class="topic-metadata">

**Author:** [@supasta](https://www.ruby-forum.com/u/supasta)\
**Replies:** 0\
**Last updated:** [August 14, 2007, 1:29am UTC](https://www.ruby-forum.com/t/activesupport-and-xml-conversions-help-needed/111984 "2007-08-14T01:29:50Z")

</div>

I am using the to\_xml method on my AR object. The type for one of my fields is timestamp and the XML looks like the following. Thu Aug 09 02:23:14 UTC 2007 I want the format to be the xmlschema format. I am looking …

---

## [Persisting an array from 1 action to another](https://www.ruby-forum.com/t/persisting-an-array-from-1-action-to-another/111876)

<div class="topic-metadata">

**Author:** [@mike](https://www.ruby-forum.com/u/mike)\
**Replies:** 9\
**Last updated:** [August 14, 2007, 12:45am UTC](https://www.ruby-forum.com/t/persisting-an-array-from-1-action-to-another/111876 "2007-08-14T00:45:28Z")

</div>

If I have 2 actions in a controller, one is search, the other index: def index end def search @items = Object.find(:all) redirect\_to action:=\> :index end How do I persist the @items array so that the view index.rh…

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

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