# Rails

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

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

---

## [Legacy app problem](https://www.ruby-forum.com/t/legacy-app-problem/107916)

<div class="topic-metadata">

**Author:** [@chrisfinne](https://www.ruby-forum.com/u/chrisfinne)\
**Replies:** 2\
**Last updated:** [June 27, 2007, 3:01pm UTC](https://www.ruby-forum.com/t/legacy-app-problem/107916 "2007-06-27T15:01:02Z")

</div>

Got a problem, please help: I am using ActiveRecord to talk to a legacy database. The database has UPPERCASE table names. This is causing Active record to not work because it is looking for lowercase table names. I c…

---

## [Deploying on Nginx and Mongrel--what is http://mongrel?](https://www.ruby-forum.com/t/deploying-on-nginx-and-mongrel-what-is-http-mongrel/171049)

<div class="topic-metadata">

**Author:** [@Matt\_Culbreth](https://www.ruby-forum.com/u/Matt_Culbreth)\
**Replies:** 0\
**Last updated:** [June 27, 2007, 2:27pm UTC](https://www.ruby-forum.com/t/deploying-on-nginx-and-mongrel-what-is-http-mongrel/171049 "2007-06-27T14:27:57Z")

</div>

Hello Group, I’ve got my Rails app deployed as a Mongrel cluster behind an Nginx reverse proxy. It’s working great except for one small issue: if I have code that does a redirect\_to , the browser is redirecting to h…

---

## [Maintaining Multiple Versions of App](https://www.ruby-forum.com/t/maintaining-multiple-versions-of-app/107845)

<div class="topic-metadata">

**Author:** [@scottbrisko](https://www.ruby-forum.com/u/scottbrisko)\
**Replies:** 2\
**Last updated:** [June 27, 2007, 2:16pm UTC](https://www.ruby-forum.com/t/maintaining-multiple-versions-of-app/107845 "2007-06-27T14:16:55Z")

</div>

I’m working on a major Rails project who’s code base continues to grow. The client wants to have two different versions of the software, with some features in common between the two, and some features diverging. I’m …

---

## [Lots of controllers, one page](https://www.ruby-forum.com/t/lots-of-controllers-one-page/107885)

<div class="topic-metadata">

**Author:** [@Jables](https://www.ruby-forum.com/u/Jables)\
**Replies:** 3\
**Last updated:** [June 27, 2007, 1:36pm UTC](https://www.ruby-forum.com/t/lots-of-controllers-one-page/107885 "2007-06-27T13:36:50Z")

</div>

I have a site with a complex database and about 10 models. The main page of the site has around 5 tables/models bringing data in, so conceptually it seems like I should use a controller on each model. Is there a way …

---

## [Related to filemanipulaations in ruby](https://www.ruby-forum.com/t/related-to-filemanipulaations-in-ruby/107914)

<div class="topic-metadata">

**Author:** [@gsswamy](https://www.ruby-forum.com/u/gsswamy)\
**Replies:** 0\
**Last updated:** [June 27, 2007, 12:22pm UTC](https://www.ruby-forum.com/t/related-to-filemanipulaations-in-ruby/107914 "2007-06-27T12:22:42Z")

</div>

where can i find example programs related to file manipulations. i want functions for uploading,downlading,staging of a file.

---

## [Professional opinions on development frameworks](https://www.ruby-forum.com/t/professional-opinions-on-development-frameworks/107829)

<div class="topic-metadata">

**Author:** [@willhardy](https://www.ruby-forum.com/u/willhardy)\
**Replies:** 1\
**Last updated:** [June 27, 2007, 12:12pm UTC](https://www.ruby-forum.com/t/professional-opinions-on-development-frameworks/107829 "2007-06-27T12:12:41Z")

</div>

Dear Rails web developers, I’m currently part of a research team at the Free University of Berlin, looking into the ways in which the major web development platforms differ. In addition to our work with the Plat\_Forms…

---

## [Custom validations in rails: validates\_number\_range](https://www.ruby-forum.com/t/custom-validations-in-rails-validates-number-range/107653)

<div class="topic-metadata">

**Author:** [@Ye\_Dingding](https://www.ruby-forum.com/u/Ye_Dingding)\
**Replies:** 3\
**Last updated:** [June 27, 2007, 11:36am UTC](https://www.ruby-forum.com/t/custom-validations-in-rails-validates-number-range/107653 "2007-06-27T11:36:38Z")

</div>

http://sishen.lifegoo.com/?p=42 I don’t know whether there exists a builtin validation that can check the number range. I think the requirement is normal, but indeed, i can’t find it. So i wrote a custome validatio…

---

## [How to connect to mysql database?](https://www.ruby-forum.com/t/how-to-connect-to-mysql-database/107908)

<div class="topic-metadata">

**Author:** [@shafi](https://www.ruby-forum.com/u/shafi)\
**Replies:** 1\
**Last updated:** [June 27, 2007, 11:31am UTC](https://www.ruby-forum.com/t/how-to-connect-to-mysql-database/107908 "2007-06-27T11:31:37Z")

</div>

hi all this is my first program with ruby on rails and i wanna connect to database in mysql server, put i don’t know how? so please help me. thanks in advanced

---

## [Strange param mixup](https://www.ruby-forum.com/t/strange-param-mixup/107911)

<div class="topic-metadata">

**Author:** [@milo](https://www.ruby-forum.com/u/milo)\
**Replies:** 0\
**Last updated:** [June 27, 2007, 11:30am UTC](https://www.ruby-forum.com/t/strange-param-mixup/107911 "2007-06-27T11:30:10Z")

</div>

I have some code looking like this: \<%= var %\> equals less than greater than less or equals greater or equals not equal to is DEFAULT What I’d expect this to produce for each “var” is: A checkbox with the valu…

---

## [Using autotest with rspec on windows XP](https://www.ruby-forum.com/t/using-autotest-with-rspec-on-windows-xp/107904)

<div class="topic-metadata">

**Author:** [@jmcervera](https://www.ruby-forum.com/u/jmcervera)\
**Replies:** 0\
**Last updated:** [June 27, 2007, 10:36am UTC](https://www.ruby-forum.com/t/using-autotest-with-rspec-on-windows-xp/107904 "2007-06-27T10:36:07Z")

</div>

Hello. I have been trying with RSpec 1.0.5 in Windows XP for learning something about BDD. Then installed zentest 3.6.0 and try to use autotest to run the specification examples, and it seems that they run, each time…

---

## [Can you do autocomplete on a custom data set?](https://www.ruby-forum.com/t/can-you-do-autocomplete-on-a-custom-data-set/107897)

<div class="topic-metadata">

**Author:** [@revanche](https://www.ruby-forum.com/u/revanche)\
**Replies:** 1\
**Last updated:** [June 27, 2007, 9:51am UTC](https://www.ruby-forum.com/t/can-you-do-autocomplete-on-a-custom-data-set/107897 "2007-06-27T09:51:27Z")

</div>

I’ve been researching some of the functionality for the autocompletion function that comes with RoR and is built around Scriptaculous. The only question I have is if this feature can be applied to a custom find reques…

---

## [How to pass an object to the view](https://www.ruby-forum.com/t/how-to-pass-an-object-to-the-view/107901)

<div class="topic-metadata">

**Author:** [@ayyanar](https://www.ruby-forum.com/u/ayyanar)\
**Replies:** 2\
**Last updated:** [June 27, 2007, 8:54am UTC](https://www.ruby-forum.com/t/how-to-pass-an-object-to-the-view/107901 "2007-06-27T08:54:22Z")

</div>

Hi, I created the ArithmeticDisplayBean class ArithmeticDisplayBean attr\_accessor :result end This is the controler class RubyApplicationController \< ApplicationController @arithmeticDisplayBean def arithmetic i…

---

## [Changing the attribute name used by error messages](https://www.ruby-forum.com/t/changing-the-attribute-name-used-by-error-messages/107554)

<div class="topic-metadata">

**Author:** [@nielsene](https://www.ruby-forum.com/u/nielsene)\
**Replies:** 4\
**Last updated:** [June 27, 2007, 8:52am UTC](https://www.ruby-forum.com/t/changing-the-attribute-name-used-by-error-messages/107554 "2007-06-27T08:52:40Z")

</div>

Is it possible to change the attribute name displayed to the user via the error\_messages\_for tag? For example if you wanted to use ‘email’ as an attribute name and db column but ‘e-mail’ as the attribute name displaye…

---

## [Specifying location](https://www.ruby-forum.com/t/specifying-location/107899)

<div class="topic-metadata">

**Author:** [@Tyche](https://www.ruby-forum.com/u/Tyche)\
**Replies:** 0\
**Last updated:** [June 27, 2007, 7:49am UTC](https://www.ruby-forum.com/t/specifying-location/107899 "2007-06-27T07:49:19Z")

</div>

Hi, I want the visitor of my website to specify her address. Most of the fields are text fileds while for country, state and city I want to provide a drop down menu. I can choose to define 3 tables like this: Count…

---

## [Routes question](https://www.ruby-forum.com/t/routes-question/107896)

<div class="topic-metadata">

**Author:** [@johanatan](https://www.ruby-forum.com/u/johanatan)\
**Replies:** 1\
**Last updated:** [June 27, 2007, 7:41am UTC](https://www.ruby-forum.com/t/routes-question/107896 "2007-06-27T07:41:18Z")

</div>

if you have a model that has\_many :comments and also has\_one :note, :class =\> “Comment” how would i route to CRUD the note?

---

## [SslRequirement module](https://www.ruby-forum.com/t/sslrequirement-module/107857)

<div class="topic-metadata">

**Author:** [@dissolved](https://www.ruby-forum.com/u/dissolved)\
**Replies:** 3\
**Last updated:** [June 27, 2007, 7:40am UTC](https://www.ruby-forum.com/t/sslrequirement-module/107857 "2007-06-27T07:40:18Z")

</div>

This is a question is about the SslRequirement rails plugin. However, it’s also about core concepts behind ruby modules. Here’s the code for the plugin. http://pastie.caboo.se/73773 Here’s an example of how you use …

---

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

<div class="topic-metadata">

**Author:** [@brandon](https://www.ruby-forum.com/u/brandon)\
**Replies:** 0\
**Last updated:** [June 27, 2007, 7:26am UTC](https://www.ruby-forum.com/t/rails/107898 "2007-06-27T07:26:17Z")

</div>

Check it out: www.BrandonsMansion.com

---

## [Spell checker](https://www.ruby-forum.com/t/spell-checker/107895)

<div class="topic-metadata">

**Author:** [@mahen1981](https://www.ruby-forum.com/u/mahen1981)\
**Replies:** 0\
**Last updated:** [June 27, 2007, 7:08am UTC](https://www.ruby-forum.com/t/spell-checker/107895 "2007-06-27T07:08:04Z")

</div>

hi everyone, I have user entry forms in html. I want to highlight the wrong spelled words in textarea or text box through ruby . Is it possible?

---

## [Agile web development with Rails - Issue with Depot app](https://www.ruby-forum.com/t/agile-web-development-with-rails-issue-with-depot-app/107882)

<div class="topic-metadata">

**Author:** [@jeannibee](https://www.ruby-forum.com/u/jeannibee)\
**Replies:** 3\
**Last updated:** [June 27, 2007, 6:44am UTC](https://www.ruby-forum.com/t/agile-web-development-with-rails-issue-with-depot-app/107882 "2007-06-27T06:44:11Z")

</div>

Hi I"m trying to run through the sample Depot app while I learn all the little pieces of Rails and I came upon an error I’m intrigued by. I am adding an Ajax hook into a page view and the content is rendered correctl…

---

## [ActiveRecord Type issue -- What am I missing?](https://www.ruby-forum.com/t/activerecord-type-issue-what-am-i-missing/107893)

<div class="topic-metadata">

**Author:** [@DFJosh](https://www.ruby-forum.com/u/DFJosh)\
**Replies:** 0\
**Last updated:** [June 27, 2007, 6:27am UTC](https://www.ruby-forum.com/t/activerecord-type-issue-what-am-i-missing/107893 "2007-06-27T06:27:14Z")

</div>

Hey everyone, First, apologies for the crosspost, I meant to post this to this group, my previous post was a mistake. I’m having a frustrating ActiveRecord issue. Maybe what I’m trying to do will not work, but if tha…

---

## [ANN\] singapore.rb meeting for June 2007](https://www.ruby-forum.com/t/ann-singapore-rb-meeting-for-june-2007/107892)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [June 27, 2007, 6:03am UTC](https://www.ruby-forum.com/t/ann-singapore-rb-meeting-for-june-2007/107892 "2007-06-27T06:03:13Z")

</div>

Hi Rubyists, The next Singapore Ruby Brigade meeting will be held at the Geylang East Community Library (GECL) on the 28th of June 2007. The session will begin from 7pm and finish at 8:30pm. Please proceed to the Alj…

---

## [ActiveResource authorization](https://www.ruby-forum.com/t/activeresource-authorization/107754)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [June 27, 2007, 5:48am UTC](https://www.ruby-forum.com/t/activeresource-authorization/107754 "2007-06-27T05:48:11Z")

</div>

Hi all! I have been using AR to access a restful API. Users are authorized over http to get information that is restricted. Everything has been working until I realized that the request to the API must be a valid URL…

---

## [A question about updating selected columns only](https://www.ruby-forum.com/t/a-question-about-updating-selected-columns-only/107846)

<div class="topic-metadata">

**Author:** [@Adrian\_De\_la\_Cruz](https://www.ruby-forum.com/u/Adrian_De_la_Cruz)\
**Replies:** 1\
**Last updated:** [June 27, 2007, 5:37am UTC](https://www.ruby-forum.com/t/a-question-about-updating-selected-columns-only/107846 "2007-06-27T05:37:05Z")

</div>

Hello guys, Seems like I messed up the first time I tried to send this to the list, so here it is in the Ruby forums :slight\_smile: I have a little problem, I don’t know how to update a few selected columns in my mod…

---

## [Rspec or test/spec?](https://www.ruby-forum.com/t/rspec-or-test-spec/105460)

<div class="topic-metadata">

**Author:** [@anildigital](https://www.ruby-forum.com/u/anildigital)\
**Replies:** 9\
**Last updated:** [June 27, 2007, 5:28am UTC](https://www.ruby-forum.com/t/rspec-or-test-spec/105460 "2007-06-27T05:28:11Z")

</div>

Hi all, I am confused with Rspec and test/spec. I want to know that which is better and which will help me in the long run. I am currently using test/spec for my project. But with the release of Rspec 1.0.4, I am h…

---

## [New to the group and to RoR](https://www.ruby-forum.com/t/new-to-the-group-and-to-ror/107880)

<div class="topic-metadata">

**Author:** [@wemagor](https://www.ruby-forum.com/u/wemagor)\
**Replies:** 8\
**Last updated:** [June 27, 2007, 5:08am UTC](https://www.ruby-forum.com/t/new-to-the-group-and-to-ror/107880 "2007-06-27T05:08:10Z")

</div>

Hello all, just giving a quick introduction before I go back to lurking for now :slight\_smile: I’m a C#/ASP.NET developer who is quickly becoming interested in Ruby/RoR. I’ve bought the book “Agile Web D. with Rails”…

---

## [Active Scaffold controllers created dynamically at runtime?](https://www.ruby-forum.com/t/active-scaffold-controllers-created-dynamically-at-runtime/107883)

<div class="topic-metadata">

**Author:** [@mlopke](https://www.ruby-forum.com/u/mlopke)\
**Replies:** 1\
**Last updated:** [June 27, 2007, 5:08am UTC](https://www.ruby-forum.com/t/active-scaffold-controllers-created-dynamically-at-runtime/107883 "2007-06-27T05:08:09Z")

</div>

Does anyone know how to link Rails’ routes into anonymous controller classes created at runtime (defined with their superclass as ActionController::Base)? I’m trying to create a plugin for all of my projects that dyna…

---

## [Is my rails app using too much memory? (top output)](https://www.ruby-forum.com/t/is-my-rails-app-using-too-much-memory-top-output/107887)

<div class="topic-metadata">

**Author:** [@benjohnson](https://www.ruby-forum.com/u/benjohnson)\
**Replies:** 0\
**Last updated:** [June 27, 2007, 5:06am UTC](https://www.ruby-forum.com/t/is-my-rails-app-using-too-much-memory-top-output/107887 "2007-06-27T05:06:00Z")

</div>

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 22305 root 17 0 893m 854m 2548 R 46 21.7 2:59.71 mongrel\_rails 22302 root 16 0 646m 606m 2632 S 51 15.4 2:24.34 mongrel\_rails …

---

## [Static content location](https://www.ruby-forum.com/t/static-content-location/107876)

<div class="topic-metadata">

**Author:** [@giorgio](https://www.ruby-forum.com/u/giorgio)\
**Replies:** 4\
**Last updated:** [June 27, 2007, 5:00am UTC](https://www.ruby-forum.com/t/static-content-location/107876 "2007-06-27T05:00:09Z")

</div>

I have some staic content (pdf files) that I want to link to. I have created a /pdfs folder below public and it works fine. Can I link to a folder somewhere else as every time I update the app I have to be careful not…

---

## [Cant test 404 pages in webrick](https://www.ruby-forum.com/t/cant-test-404-pages-in-webrick/107649)

<div class="topic-metadata">

**Author:** [@cujigar](https://www.ruby-forum.com/u/cujigar)\
**Replies:** 1\
**Last updated:** [June 27, 2007, 3:33am UTC](https://www.ruby-forum.com/t/cant-test-404-pages-in-webrick/107649 "2007-06-27T03:33:59Z")

</div>

I tried running webrick in production mode with -e production option. I changed development database name so as to make sure webrick was running in production mode. Now I wanted to test my new 404.html page so I typed…

---

## [Check box update](https://www.ruby-forum.com/t/check-box-update/107778)

<div class="topic-metadata">

**Author:** [@dark-omen](https://www.ruby-forum.com/u/dark-omen)\
**Replies:** 4\
**Last updated:** [June 27, 2007, 3:25am UTC](https://www.ruby-forum.com/t/check-box-update/107778 "2007-06-27T03:25:08Z")

</div>

I want to create a check box that will update a field in a database table. How do you link a method in a model to a check box?

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

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