# Rails

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

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

---

## [How to change class of an STI object?](https://www.ruby-forum.com/t/how-to-change-class-of-an-sti-object/90277)

<div class="topic-metadata">

**Author:** [@bbebop](https://www.ruby-forum.com/u/bbebop)\
**Replies:** 2\
**Last updated:** [March 27, 2007, 7:24pm UTC](https://www.ruby-forum.com/t/how-to-change-class-of-an-sti-object/90277 "2007-03-27T19:24:23Z")

</div>

I have some models which use the same table via single table inheritance. I (think I) need to change objects from one class to another and not sure how to go about that. Consider these models: class Project \< ActiveR…

---

## [USPS AMS API anyone?](https://www.ruby-forum.com/t/usps-ams-api-anyone/90314)

<div class="topic-metadata">

**Author:** [@cvcomp](https://www.ruby-forum.com/u/cvcomp)\
**Replies:** 0\
**Last updated:** [March 27, 2007, 7:23pm UTC](https://www.ruby-forum.com/t/usps-ams-api-anyone/90314 "2007-03-27T19:23:22Z")

</div>

Has anybody worked with the USPS AMS API (Address Matching System Application Programming Interface) before? My objective is to verify addresses using the USPS DB and although there are existing ruby libs for that I h…

---

## [Problems when freezing gems (rails 1.2.1)](https://www.ruby-forum.com/t/problems-when-freezing-gems-rails-1-2-1/82733)

<div class="topic-metadata">

**Author:** [@starmaerker](https://www.ruby-forum.com/u/starmaerker)\
**Replies:** 2\
**Last updated:** [March 27, 2007, 7:07pm UTC](https://www.ruby-forum.com/t/problems-when-freezing-gems-rails-1-2-1/82733 "2007-03-27T19:07:20Z")

</div>

Hi All, Here is a brief summary of the problem: iMac:/Users/askegg root# rails -v Rails 1.2.1 iMac:/Users/askegg root# rails hack create create app/controllers create log/test.log iMac:/Users/askegg root# cd …

---

## [How call model for the name](https://www.ruby-forum.com/t/how-call-model-for-the-name/90311)

<div class="topic-metadata">

**Author:** [@mr\_brownstone](https://www.ruby-forum.com/u/mr_brownstone)\
**Replies:** 1\
**Last updated:** [March 27, 2007, 6:43pm UTC](https://www.ruby-forum.com/t/how-call-model-for-the-name/90311 "2007-03-27T18:43:15Z")

</div>

How call model for the name, for example: def my\_action(model) model.find :all end \<%= my\_action :Client %\> ps.: That has to be in String, however I call for a URL

---

## [How call model for the name](https://www.ruby-forum.com/t/how-call-model-for-the-name/90312)

<div class="topic-metadata">

**Author:** [@mr\_brownstone](https://www.ruby-forum.com/u/mr_brownstone)\
**Replies:** 0\
**Last updated:** [March 27, 2007, 6:33pm UTC](https://www.ruby-forum.com/t/how-call-model-for-the-name/90312 "2007-03-27T18:33:02Z")

</div>

How call model for the name, for example: def my\_action(model) model.find :all end \<%= my\_action :Client %\> ps.: That has to be in String, therefore I call for a URL

---

## [Why test Rails, itself?](https://www.ruby-forum.com/t/why-test-rails-itself/89132)

<div class="topic-metadata">

**Author:** [@identry](https://www.ruby-forum.com/u/identry)\
**Replies:** 12\
**Last updated:** [March 27, 2007, 5:55pm UTC](https://www.ruby-forum.com/t/why-test-rails-itself/89132 "2007-03-27T17:55:08Z")

</div>

I’m trying to learn the habit of writing tests, but now that I’m getting into it, I’m starting to realize that many potential tests – including some described in Agile Web D. w/Rails – don’t test the application. Inst…

---

## [File permissions for Rails app - how much can I lock it down](https://www.ruby-forum.com/t/file-permissions-for-rails-app-how-much-can-i-lock-it-down/90186)

<div class="topic-metadata">

**Author:** [@wpwood](https://www.ruby-forum.com/u/wpwood)\
**Replies:** 4\
**Last updated:** [March 27, 2007, 5:54pm UTC](https://www.ruby-forum.com/t/file-permissions-for-rails-app-how-much-can-i-lock-it-down/90186 "2007-03-27T17:54:07Z")

</div>

I want to lock down my site as much as possible and would like to set the file permissions as restrictively as possible. Is there any reason that any file used by my app but not in the /public directory needs or shoul…

---

## [MasterView Template Engine](https://www.ruby-forum.com/t/masterview-template-engine/90278)

<div class="topic-metadata">

**Author:** [@Mrityunjay\_I](https://www.ruby-forum.com/u/Mrityunjay_I)\
**Replies:** 1\
**Last updated:** [March 27, 2007, 5:28pm UTC](https://www.ruby-forum.com/t/masterview-template-engine/90278 "2007-03-27T17:28:03Z")

</div>

Hey guys, I’m considering migrating to masterview as the template engine for my rails app. Though the advantage of being able to edit the views using standard wysiwyg tools is great, is it a good idea to convert exi…

---

## [Trying to get Mongrel installed](https://www.ruby-forum.com/t/trying-to-get-mongrel-installed/90305)

<div class="topic-metadata">

**Author:** [@northband](https://www.ruby-forum.com/u/northband)\
**Replies:** 2\
**Last updated:** [March 27, 2007, 5:19pm UTC](https://www.ruby-forum.com/t/trying-to-get-mongrel-installed/90305 "2007-03-27T17:19:40Z")

</div>

Hi all - I am trying to get Mongrel installed on an old box but am having troubles. The box is running Ubuntu and I have installed the latest ruby, rails, and gems as far as I can tell. This is what I am getting: m…

---

## [On Ruby March blogging contest,. final call](https://www.ruby-forum.com/t/on-ruby-march-blogging-contest-final-call/90301)

<div class="topic-metadata">

**Author:** [@pate](https://www.ruby-forum.com/u/pate)\
**Replies:** 0\
**Last updated:** [March 27, 2007, 4:28pm UTC](https://www.ruby-forum.com/t/on-ruby-march-blogging-contest-final-call/90301 "2007-03-27T16:28:36Z")

</div>

This is your last week to participate in the March blogging contest sponsored by Apress. The winner will receive three Apress books of their choice. This month’s contest is to blog about what Rails could learn from …

---

## [\[ADV\] Ruby on Rails course by Ruby Power and Light](https://www.ruby-forum.com/t/adv-ruby-on-rails-course-by-ruby-power-and-light/90302)

<div class="topic-metadata">

**Author:** [@David\_ASBlack](https://www.ruby-forum.com/u/David_ASBlack)\
**Replies:** 0\
**Last updated:** [March 27, 2007, 4:22pm UTC](https://www.ruby-forum.com/t/adv-ruby-on-rails-course-by-ruby-power-and-light/90302 "2007-03-27T16:22:36Z")

</div>

Hi everyone – I’m happy to announce that Ruby Power and Light, LLC is offering a four-day course: Ruby on Rails: Intro to Intermediate May 8-11, 2007 Edison, New Jersey, USA The course will be held at the new, …

---

## [Problem with pound + mongrel](https://www.ruby-forum.com/t/problem-with-pound-mongrel/90271)

<div class="topic-metadata">

**Author:** [@andreas](https://www.ruby-forum.com/u/andreas)\
**Replies:** 1\
**Last updated:** [March 27, 2007, 4:11pm UTC](https://www.ruby-forum.com/t/problem-with-pound-mongrel/90271 "2007-03-27T16:11:34Z")

</div>

I’m deploying my first Rails app on a Debian server. For this I have chosen a Mongrel cluster to serve my app, and Pound to balance it. My problem is I can’t get it to work. I keep getting an “503 Service Unavailable”…

---

## [Active Record vs Data Mapper](https://www.ruby-forum.com/t/active-record-vs-data-mapper/90226)

<div class="topic-metadata">

**Author:** [@timperrett](https://www.ruby-forum.com/u/timperrett)\
**Replies:** 5\
**Last updated:** [March 27, 2007, 3:52pm UTC](https://www.ruby-forum.com/t/active-record-vs-data-mapper/90226 "2007-03-27T15:52:31Z")

</div>

Hey guys Ive been doing some backgronud reading on the whole ORM scenario as i was intersted in where AR actually came from and i can obviously see what it was that AR has developed in the way that it has: ease of u…

---

## [Activerecord failed?](https://www.ruby-forum.com/t/activerecord-failed/90295)

<div class="topic-metadata">

**Author:** [@Kevin\_Yang](https://www.ruby-forum.com/u/Kevin_Yang)\
**Replies:** 2\
**Last updated:** [March 27, 2007, 3:45pm UTC](https://www.ruby-forum.com/t/activerecord-failed/90295 "2007-03-27T15:45:46Z")

</div>

Hello all, i found something wrong (or maybe i was wrong?) this looks like a rectiverecord bug , can anyone help me to point out what’s going on? ------------------migration create\_table :books do |t| t.column :nam…

---

## [IE6 problem with link\_to -\> send\_file](https://www.ruby-forum.com/t/ie6-problem-with-link-to-send-file/90297)

<div class="topic-metadata">

**Author:** [@wpwood](https://www.ruby-forum.com/u/wpwood)\
**Replies:** 0\
**Last updated:** [March 27, 2007, 3:44pm UTC](https://www.ruby-forum.com/t/ie6-problem-with-link-to-send-file/90297 "2007-03-27T15:44:29Z")

</div>

I’m having a problem with send\_file on IE6. I’ve got a page that has a set of 3 links (link\_to(image\_tag(…)), each of which invokes the same method, but with different params. On that same page is a form with 3 radio…

---

## [Can this work? Apache/FastCGI special case (?)](https://www.ruby-forum.com/t/can-this-work-apache-fastcgi-special-case/90198)

<div class="topic-metadata">

**Author:** [@mamad](https://www.ruby-forum.com/u/mamad)\
**Replies:** 2\
**Last updated:** [March 27, 2007, 3:24pm UTC](https://www.ruby-forum.com/t/can-this-work-apache-fastcgi-special-case/90198 "2007-03-27T15:24:40Z")

</div>

Hi everyone, I have a website running, but would like to add a rails app to be accessed as at a specific path of the application e.g.: www.example.com/myrailsapp/ So I have apache configured (using virtualhost to red…

---

## [Updating files in project along with rails](https://www.ruby-forum.com/t/updating-files-in-project-along-with-rails/90196)

<div class="topic-metadata">

**Author:** [@spacechurro](https://www.ruby-forum.com/u/spacechurro)\
**Replies:** 1\
**Last updated:** [March 27, 2007, 1:56pm UTC](https://www.ruby-forum.com/t/updating-files-in-project-along-with-rails/90196 "2007-03-27T13:56:08Z")

</div>

i am reading the second edition of the agile development with rails book, and i left it at home today… i was wondering if anyone can recall how to do the following: in the book, it talks about updating rails to the mo…

---

## [How to have default param if loading page the first time](https://www.ruby-forum.com/t/how-to-have-default-param-if-loading-page-the-first-time/90221)

<div class="topic-metadata">

**Author:** [@nephish](https://www.ruby-forum.com/u/nephish)\
**Replies:** 4\
**Last updated:** [March 27, 2007, 12:14pm UTC](https://www.ruby-forum.com/t/how-to-have-default-param-if-loading-page-the-first-time/90221 "2007-03-27T12:14:14Z")

</div>

lo there, i have a page with a date\_select on it. When the date is passed, i need it to pass back to the same action (reloading the page with a new date). Now, i want the default date to be yesterday. This is for the …

---

## [Timeout on windows](https://www.ruby-forum.com/t/timeout-on-windows/90282)

<div class="topic-metadata">

**Author:** [@jamie](https://www.ruby-forum.com/u/jamie)\
**Replies:** 0\
**Last updated:** [March 27, 2007, 11:39am UTC](https://www.ruby-forum.com/t/timeout-on-windows/90282 "2007-03-27T11:39:11Z")

</div>

Hello, I am using windows, which is probably the source of the problem. I have a pipe that executes an external Ruby program, and i want to have a timeout on the pipe. The problem is that when the time is up the pipe …

---

## [Delete message inbox](https://www.ruby-forum.com/t/delete-message-inbox/90280)

<div class="topic-metadata">

**Author:** [@guest](https://www.ruby-forum.com/u/guest)\
**Replies:** 0\
**Last updated:** [March 27, 2007, 11:24am UTC](https://www.ruby-forum.com/t/delete-message-inbox/90280 "2007-03-27T11:24:16Z")

</div>

hi please help me how i can delete by using checkbox such as delete some messages from the inbox in messaging system Thanks for all

---

## [Database ER Digram \<=\> Rails Migrations Files : Does such a](https://www.ruby-forum.com/t/database-er-digram-rails-migrations-files-does-such-a/89847)

<div class="topic-metadata">

**Author:** [@greg](https://www.ruby-forum.com/u/greg)\
**Replies:** 6\
**Last updated:** [March 27, 2007, 10:40am UTC](https://www.ruby-forum.com/t/database-er-digram-rails-migrations-files-does-such-a/89847 "2007-03-27T10:40:46Z")

</div>

Hi all, Does anyone know if there is a round-tripping tool for “Database ER Digram” \<=\> “Rails Migrations Files” available? That is to: Visually plan your database (UML ER diagram) =\> export Rails Migrations Fil…

---

## [How to Access XML files in Ruby](https://www.ruby-forum.com/t/how-to-access-xml-files-in-ruby/90268)

<div class="topic-metadata">

**Author:** [@ramakrishna](https://www.ruby-forum.com/u/ramakrishna)\
**Replies:** 1\
**Last updated:** [March 27, 2007, 10:00am UTC](https://www.ruby-forum.com/t/how-to-access-xml-files-in-ruby/90268 "2007-03-27T10:00:42Z")

</div>

Hello, I face one problem in ruby +XML , can u tell me what is the configuration and how to access xml data in ruby programming. Thanks Ramakrishna

---

## [Problem: segfault in ruby with fastcgi](https://www.ruby-forum.com/t/problem-segfault-in-ruby-with-fastcgi/90274)

<div class="topic-metadata">

**Author:** [@cornelius](https://www.ruby-forum.com/u/cornelius)\
**Replies:** 0\
**Last updated:** [March 27, 2007, 9:58am UTC](https://www.ruby-forum.com/t/problem-segfault-in-ruby-with-fastcgi/90274 "2007-03-27T09:58:42Z")

</div>

i’m trying to get fastcgi to work on solaris. my rails application works fine with normal cgi, but with fastcgi i always get a segmentationfault. the app runs normally with fastcgi under linux but that doesnt really h…

---

## [Filter through an object list](https://www.ruby-forum.com/t/filter-through-an-object-list/90269)

<div class="topic-metadata">

**Author:** [@jko170](https://www.ruby-forum.com/u/jko170)\
**Replies:** 0\
**Last updated:** [March 27, 2007, 9:28am UTC](https://www.ruby-forum.com/t/filter-through-an-object-list/90269 "2007-03-27T09:28:40Z")

</div>

I would like to filter my object list based on conditions using select helpers. For example, get all the reciepts for user1 between jan and mar of 2007. Or, just get all the reciepts for user1. Is there a plugin or tu…

---

## [Tutorials "How to develop plugins?"](https://www.ruby-forum.com/t/tutorials-how-to-develop-plugins/90148)

<div class="topic-metadata">

**Author:** [@jamal](https://www.ruby-forum.com/u/jamal)\
**Replies:** 10\
**Last updated:** [March 27, 2007, 9:12am UTC](https://www.ruby-forum.com/t/tutorials-how-to-develop-plugins/90148 "2007-03-27T09:12:16Z")

</div>

I have been searching the WHOLE internet for a guide “How to develop plugin” for rails web application? but there was NONE??? I’m trying to do develop this kind of plugins, I hope someone out there can point me on the…

---

## [How to pass"page" parameter to xxx\_path or xxx\_url](https://www.ruby-forum.com/t/how-to-pass-page-parameter-to-xxx-path-or-xxx-url/90155)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 4\
**Last updated:** [March 27, 2007, 8:50am UTC](https://www.ruby-forum.com/t/how-to-pass-page-parameter-to-xxx-path-or-xxx-url/90155 "2007-03-27T08:50:54Z")

</div>

Dear all, In my app, i uses named route to point to a list page. This is a paginated list. I try to go to a specific page by passing the “page” parameter to the xxx\_path method in link\_to call, but this method doesn’…

---

## [How do form data get into ActiveRecord object?](https://www.ruby-forum.com/t/how-do-form-data-get-into-activerecord-object/90167)

<div class="topic-metadata">

**Author:** [@alex](https://www.ruby-forum.com/u/alex)\
**Replies:** 3\
**Last updated:** [March 27, 2007, 8:09am UTC](https://www.ruby-forum.com/t/how-do-form-data-get-into-activerecord-object/90167 "2007-03-27T08:09:51Z")

</div>

Hi I’m quite new to rails and I think until now I didn’t get all of ActiveRecord :slight\_smile: So, here is what I want to do: I have a form where a user can input a date. The logic behind the date field should be a…

---

## [App vs Engine - raise error message](https://www.ruby-forum.com/t/app-vs-engine-raise-error-message/90270)

<div class="topic-metadata">

**Author:** [@Wes\_Hays](https://www.ruby-forum.com/u/Wes_Hays)\
**Replies:** 0\
**Last updated:** [March 27, 2007, 8:05am UTC](https://www.ruby-forum.com/t/app-vs-engine-raise-error-message/90270 "2007-03-27T08:05:47Z")

</div>

I have some code that I was duplicating across applications so I made it an engine. The engine works fine but the only problem is when I raise an error in the before\_destroy method in my model (the model is not in the …

---

## [On Enterprise Ruby](https://www.ruby-forum.com/t/on-enterprise-ruby/90267)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [March 27, 2007, 7:57am UTC](https://www.ruby-forum.com/t/on-enterprise-ruby/90267 "2007-03-27T07:57:47Z")

</div>

Q: What the hell is “Enterprise Ruby” anyway? A: Yet another ‘stack’ of crap so complex that any salesperson can use Steak and Strippers to easily sell it to management thanks to the bikeshedding effect. – Zed S. (au…

---

## [Is there such a thing as button\_to\_remote?](https://www.ruby-forum.com/t/is-there-such-a-thing-as-button-to-remote/89927)

<div class="topic-metadata">

**Author:** [@jeff](https://www.ruby-forum.com/u/jeff)\
**Replies:** 11\
**Last updated:** [March 27, 2007, 7:06am UTC](https://www.ruby-forum.com/t/is-there-such-a-thing-as-button-to-remote/89927 "2007-03-27T07:06:44Z")

</div>

I’ve changed my destructive link\_to statements in favor of button\_to. But what if I want to make an .rjs call with that button? Seems like we need something equivalent to link\_to\_remote, so that the button can make an…

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

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