# Rails

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

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

---

## [Validates\_format\_of](https://www.ruby-forum.com/t/validates-format-of/92659)

<div class="topic-metadata">

**Author:** [@Afroz](https://www.ruby-forum.com/u/Afroz)\
**Replies:** 1\
**Last updated:** [April 22, 2007, 10:08pm UTC](https://www.ruby-forum.com/t/validates-format-of/92659 "2007-04-22T22:08:41Z")

</div>

Hi everyone! I’m new to rails and have been playing around a bit. Unfortunately, I seem to be a bit stuck at the moment. Since I’m just playing around, I’m using a dynamic scaffold. In my model file (which is tied to …

---

## [Design & Relationships Question](https://www.ruby-forum.com/t/design-relationships-question/92661)

<div class="topic-metadata">

**Author:** [@mohits](https://www.ruby-forum.com/u/mohits)\
**Replies:** 2\
**Last updated:** [April 22, 2007, 8:05pm UTC](https://www.ruby-forum.com/t/design-relationships-question/92661 "2007-04-22T20:05:30Z")

</div>

Hi, I have a design question that I’d like to get some inputs on. For internal use, I am creating a site for listing manuals. It’s going to have API documentation with the ability to let people add comments to the AP…

---

## [Struct search](https://www.ruby-forum.com/t/struct-search/92601)

<div class="topic-metadata">

**Author:** [@mick](https://www.ruby-forum.com/u/mick)\
**Replies:** 2\
**Last updated:** [April 22, 2007, 6:57pm UTC](https://www.ruby-forum.com/t/struct-search/92601 "2007-04-22T18:57:25Z")

</div>

Hi guys, another question: I have a struct, which contains records returned from a query. I then perform a loop which runs another query which adds more records to the struct, but I would like to check whether the rec…

---

## [Tables with only an id](https://www.ruby-forum.com/t/tables-with-only-an-id/92614)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 2\
**Last updated:** [April 22, 2007, 6:45pm UTC](https://www.ruby-forum.com/t/tables-with-only-an-id/92614 "2007-04-22T18:45:25Z")

</div>

Hello, I have several tables in my design which have nothing but an id, and I can’t help thinking that makes them a little superfluous. I’m keeping track of versions on a lot of my models, and so I have a venues tabl…

---

## [Make form have an id](https://www.ruby-forum.com/t/make-form-have-an-id/92657)

<div class="topic-metadata">

**Author:** [@damian](https://www.ruby-forum.com/u/damian)\
**Replies:** 1\
**Last updated:** [April 22, 2007, 6:06pm UTC](https://www.ruby-forum.com/t/make-form-have-an-id/92657 "2007-04-22T18:06:21Z")

</div>

Hello all! I need to make a form with an id. How do I supply HTML attributes to form\_remote\_tag? Yours sincerely, Damian/Three-eyed Fish

---

## [An unknown number of elements](https://www.ruby-forum.com/t/an-unknown-number-of-elements/92613)

<div class="topic-metadata">

**Author:** [@chriscole](https://www.ruby-forum.com/u/chriscole)\
**Replies:** 1\
**Last updated:** [April 22, 2007, 5:39pm UTC](https://www.ruby-forum.com/t/an-unknown-number-of-elements/92613 "2007-04-22T17:39:20Z")

</div>

Hi all! I have a model (Show) than can have an unknown number of dates. And a date can have an unknown number of shows. Making a Date model seems icky, espicially since I would have to probably write a lot of glue c…

---

## [Sanitizing and stripping some html?](https://www.ruby-forum.com/t/sanitizing-and-stripping-some-html/92656)

<div class="topic-metadata">

**Author:** [@thomasmaas](https://www.ruby-forum.com/u/thomasmaas)\
**Replies:** 0\
**Last updated:** [April 22, 2007, 5:33pm UTC](https://www.ruby-forum.com/t/sanitizing-and-stripping-some-html/92656 "2007-04-22T17:33:19Z")

</div>

I have an application that manages a list of feeds. In a scheduled BackgrounDRb worker, I parse each of these feeds and post the content to the same site. Some of these feeds contain HTML in the description of each it…

---

## [AR Sessions Only work in Dev](https://www.ruby-forum.com/t/ar-sessions-only-work-in-dev/92650)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 2\
**Last updated:** [April 22, 2007, 5:02pm UTC](https://www.ruby-forum.com/t/ar-sessions-only-work-in-dev/92650 "2007-04-22T17:02:15Z")

</div>

Hey, For some reason whenever I enable config.action\_controller.session\_store = :active\_record\_store in environment.rb, it only works in development and not production. Nothing in environments/production.rb that woul…

---

## [OT: Make an outgoing phonecall](https://www.ruby-forum.com/t/ot-make-an-outgoing-phonecall/92568)

<div class="topic-metadata">

**Author:** [@n1c](https://www.ruby-forum.com/u/n1c)\
**Replies:** 3\
**Last updated:** [April 22, 2007, 1:06pm UTC](https://www.ruby-forum.com/t/ot-make-an-outgoing-phonecall/92568 "2007-04-22T13:06:55Z")

</div>

We’re starting a project where we need to make outgoing phonecalls that will play a pre-recorded message to the logged-in user. The only service I can find to do this is jaduka.com, however they don’t allow calls outs…

---

## [Question about ActiveRecord auto-magic](https://www.ruby-forum.com/t/question-about-activerecord-auto-magic/92638)

<div class="topic-metadata">

**Author:** [@thelorax](https://www.ruby-forum.com/u/thelorax)\
**Replies:** 11\
**Last updated:** [April 22, 2007, 9:15am UTC](https://www.ruby-forum.com/t/question-about-activerecord-auto-magic/92638 "2007-04-22T09:15:33Z")

</div>

Hello. When I create a new model instance using Model.new, Rails seems to automatically retrieve table meta data (specifically, column names). In order to do this, does Rails perform a query in the form of ‘show colu…

---

## [Emacs or vim?](https://www.ruby-forum.com/t/emacs-or-vim/92640)

<div class="topic-metadata">

**Author:** [@foto](https://www.ruby-forum.com/u/foto)\
**Replies:** 0\
**Last updated:** [April 22, 2007, 7:05am UTC](https://www.ruby-forum.com/t/emacs-or-vim/92640 "2007-04-22T07:05:28Z")

</div>

Emacs or vim? http://editor.teenwag.com/poll?n=1587

---

## [Mysql and Auto\_Increment woes](https://www.ruby-forum.com/t/mysql-and-auto-increment-woes/92567)

<div class="topic-metadata">

**Author:** [@jruyle](https://www.ruby-forum.com/u/jruyle)\
**Replies:** 1\
**Last updated:** [April 22, 2007, 6:31am UTC](https://www.ruby-forum.com/t/mysql-and-auto-increment-woes/92567 "2007-04-22T06:31:23Z")

</div>

I’ve had to deal with this from the beginning of my work with Rails and Mysql, but now it’s really putting me on full stop. I’ve started using Selenium and Selenium IDE to do system testing of my rails site (highly re…

---

## [Need syntax to submit a new form entry](https://www.ruby-forum.com/t/need-syntax-to-submit-a-new-form-entry/92610)

<div class="topic-metadata">

**Author:** [@merc](https://www.ruby-forum.com/u/merc)\
**Replies:** 1\
**Last updated:** [April 22, 2007, 6:14am UTC](https://www.ruby-forum.com/t/need-syntax-to-submit-a-new-form-entry/92610 "2007-04-22T06:14:22Z")

</div>

I am trying to define my own new view, but having trouble with the syntax to submit a new record via html form. This is what I’m doing (and its wrong): This results in: Routing Error no route found to match “/…

---

## [Polymorph without extra tables?](https://www.ruby-forum.com/t/polymorph-without-extra-tables/92637)

<div class="topic-metadata">

**Author:** [@Tyler\_MacDonald](https://www.ruby-forum.com/u/Tyler_MacDonald)\
**Replies:** 0\
**Last updated:** [April 22, 2007, 1:22am UTC](https://www.ruby-forum.com/t/polymorph-without-extra-tables/92637 "2007-04-22T01:22:08Z")

</div>

Here’s what I want, and the answer isn’t obvious to me :frowning: Widget.Find(id) - if the found widget is a "Hammer", I want the model object returned to be a Widget::Hammer - if the found widget is a "Nail", I wan…

---

## [Rails, Oracle and Legacy Schemas](https://www.ruby-forum.com/t/rails-oracle-and-legacy-schemas/92542)

<div class="topic-metadata">

**Author:** [@mfaine](https://www.ruby-forum.com/u/mfaine)\
**Replies:** 1\
**Last updated:** [April 21, 2007, 11:51pm UTC](https://www.ruby-forum.com/t/rails-oracle-and-legacy-schemas/92542 "2007-04-21T23:51:01Z")

</div>

I’m very new to Rails and I’m trying, if only for a proof of concept, to develop a quick Rails application to display data from a database. The application will be read only (SELECT statements only) and will simply l…

---

## [Issues with Functional Tests](https://www.ruby-forum.com/t/issues-with-functional-tests/92633)

<div class="topic-metadata">

**Author:** [@stickstone](https://www.ruby-forum.com/u/stickstone)\
**Replies:** 0\
**Last updated:** [April 21, 2007, 11:08pm UTC](https://www.ruby-forum.com/t/issues-with-functional-tests/92633 "2007-04-21T23:08:57Z")

</div>

I’m running rails-1.2.3 under Ubuntu 6.06, and I’ve come across a few issues I’d like to raise. (1) If a controller sets flash.now\[:notice\] = “message”, then in a functional test I don’t seem to be able to match it. …

---

## [Update\_attributes workaround needed?](https://www.ruby-forum.com/t/update-attributes-workaround-needed/92486)

<div class="topic-metadata">

**Author:** [@ehudros](https://www.ruby-forum.com/u/ehudros)\
**Replies:** 7\
**Last updated:** [April 21, 2007, 10:23pm UTC](https://www.ruby-forum.com/t/update-attributes-workaround-needed/92486 "2007-04-21T22:23:20Z")

</div>

Hi everyone, I’m doing white list validations on the controller side so that malformed data would not get to the database. However, this seems to be tricky when updating an entity since I can’t find a way to seperate …

---

## [A simple photosharing application written in Ruby on rails](https://www.ruby-forum.com/t/a-simple-photosharing-application-written-in-ruby-on-rails/92630)

<div class="topic-metadata">

**Author:** [@foto](https://www.ruby-forum.com/u/foto)\
**Replies:** 0\
**Last updated:** [April 21, 2007, 9:36pm UTC](https://www.ruby-forum.com/t/a-simple-photosharing-application-written-in-ruby-on-rails/92630 "2007-04-21T21:36:52Z")

</div>

I d like to show you http://www.morecute.com It has been awesome runs on Fedora I wanted to share it early on so there is litte load on the server and the early adopter crowd can try it out thanks Jerry

---

## [Who is in charge of manuals.rubyonrails.com?](https://www.ruby-forum.com/t/who-is-in-charge-of-manuals-rubyonrails-com/92627)

<div class="topic-metadata">

**Author:** [@tshim](https://www.ruby-forum.com/u/tshim)\
**Replies:** 0\
**Last updated:** [April 21, 2007, 8:43pm UTC](https://www.ruby-forum.com/t/who-is-in-charge-of-manuals-rubyonrails-com/92627 "2007-04-21T20:43:46Z")

</div>

Hi, also related to my previous wiki post – who is in charge of the manuals site? Anyone know why it’s often down? Is it obsolete? (no, methinks) Cheers Trey S

---

## [Who is in charge of wiki.rubyonrails.com?](https://www.ruby-forum.com/t/who-is-in-charge-of-wiki-rubyonrails-com/92622)

<div class="topic-metadata">

**Author:** [@tshim](https://www.ruby-forum.com/u/tshim)\
**Replies:** 0\
**Last updated:** [April 21, 2007, 7:19pm UTC](https://www.ruby-forum.com/t/who-is-in-charge-of-wiki-rubyonrails-com/92622 "2007-04-21T19:19:37Z")

</div>

Hi, I notice lots of “Service Unavailable” responses to requests for particular articles at wiki.rubyonrails.com. Is this normal? Why are some articles viewable and others not? Am I a noob? Who is in charge of sysopi…

---

## [RESTful parameters - Why input parameters are so "webish"?](https://www.ruby-forum.com/t/restful-parameters-why-input-parameters-are-so-webish/92616)

<div class="topic-metadata">

**Author:** [@jetienne](https://www.ruby-forum.com/u/jetienne)\
**Replies:** 2\
**Last updated:** [April 21, 2007, 7:16pm UTC](https://www.ruby-forum.com/t/restful-parameters-why-input-parameters-are-so-webish/92616 "2007-04-21T19:16:33Z")

</div>

Hi, Using Rails 1.2.3, I would like to know if it is possible to set the format of parameters for a POST call. Like you have: GET /assets/# def show @asset = Asset.find(params\[:asset\]) respond\_to |format| format.h…

---

## [Using modules as namespaces within an engine](https://www.ruby-forum.com/t/using-modules-as-namespaces-within-an-engine/66645)

<div class="topic-metadata">

**Author:** [@caddleman](https://www.ruby-forum.com/u/caddleman)\
**Replies:** 3\
**Last updated:** [April 21, 2007, 6:44pm UTC](https://www.ruby-forum.com/t/using-modules-as-namespaces-within-an-engine/66645 "2007-04-21T18:44:13Z")

</div>

Hi folks, In writing an engine, it seems to me that I’d want to put all my model and controller classes within a namespace, to avoid name clashes with similarly named classes in the base application, or other engines.…

---

## [Changing an attribute value](https://www.ruby-forum.com/t/changing-an-attribute-value/92580)

<div class="topic-metadata">

**Author:** [@Andrew\_Mansfield](https://www.ruby-forum.com/u/Andrew_Mansfield)\
**Replies:** 3\
**Last updated:** [April 21, 2007, 4:02pm UTC](https://www.ruby-forum.com/t/changing-an-attribute-value/92580 "2007-04-21T16:02:13Z")

</div>

I have a situation where I’m uploading a certain kind of file with an arbitrary name e.g. “op10.out”. I’m validating the file extension and then loading into a BLOB field in my database. These are small text files co…

---

## [Caching of database values](https://www.ruby-forum.com/t/caching-of-database-values/92579)

<div class="topic-metadata">

**Author:** [@plambert](https://www.ruby-forum.com/u/plambert)\
**Replies:** 2\
**Last updated:** [April 21, 2007, 4:02pm UTC](https://www.ruby-forum.com/t/caching-of-database-values/92579 "2007-04-21T16:02:13Z")

</div>

If do something like this: dbObj = MyTable.find\_by\_id(5) a = dbObj.name b = dbObj.name How many times will an SQL call be made to get the value of MyTable.name for id 5? In other words, are the values for dbObj ca…

---

## [Find out whether page is cashed from view](https://www.ruby-forum.com/t/find-out-whether-page-is-cashed-from-view/92611)

<div class="topic-metadata">

**Author:** [@ingoweiss](https://www.ruby-forum.com/u/ingoweiss)\
**Replies:** 0\
**Last updated:** [April 21, 2007, 3:43pm UTC](https://www.ruby-forum.com/t/find-out-whether-page-is-cashed-from-view/92611 "2007-04-21T15:43:50Z")

</div>

Hi, I am wondering whether there is a way to find out whether page cashing is turned on for the currently rendered page, either from the controller of from a view. I would like to render things differently depending o…

---

## [New plugin idea - prototype requires test - please complete](https://www.ruby-forum.com/t/new-plugin-idea-prototype-requires-test-please-complete/92608)

<div class="topic-metadata">

**Author:** [@jon](https://www.ruby-forum.com/u/jon)\
**Replies:** 0\
**Last updated:** [April 21, 2007, 3:13pm UTC](https://www.ruby-forum.com/t/new-plugin-idea-prototype-requires-test-please-complete/92608 "2007-04-21T15:13:55Z")

</div>

Hi, As an idea for a new plugin I have put together a simple test, please could you take 10 sec’s to submit the following form. http://www.railslodge.com/implicit/ thanks

---

## [New plugin idea - prototype requires test - please complete](https://www.ruby-forum.com/t/new-plugin-idea-prototype-requires-test-please-complete/92605)

<div class="topic-metadata">

**Author:** [@jon](https://www.ruby-forum.com/u/jon)\
**Replies:** 0\
**Last updated:** [April 21, 2007, 3:12pm UTC](https://www.ruby-forum.com/t/new-plugin-idea-prototype-requires-test-please-complete/92605 "2007-04-21T15:12:56Z")

</div>

http://www.railslodge.com/implicit/

---

## [Building a Ruby on Rails Tech Team](https://www.ruby-forum.com/t/building-a-ruby-on-rails-tech-team/92607)

<div class="topic-metadata">

**Author:** [@vaibhav](https://www.ruby-forum.com/u/vaibhav)\
**Replies:** 0\
**Last updated:** [April 21, 2007, 2:51pm UTC](https://www.ruby-forum.com/t/building-a-ruby-on-rails-tech-team/92607 "2007-04-21T14:51:08Z")

</div>

Hi All, We are starting a web 2.0 venture in India. It is a very creative idea and has been well recieved in the entrepreneurial circles. The name of the company is “flypsyd”. We are currently hiring Technical Archit…

---

## [Rails VERY slow on XP, snappy on linux?](https://www.ruby-forum.com/t/rails-very-slow-on-xp-snappy-on-linux/92541)

<div class="topic-metadata">

**Author:** [@ewildgoose](https://www.ruby-forum.com/u/ewildgoose)\
**Replies:** 10\
**Last updated:** [April 21, 2007, 1:55pm UTC](https://www.ruby-forum.com/t/rails-very-slow-on-xp-snappy-on-linux/92541 "2007-04-21T13:55:05Z")

</div>

Since some time back (I think since I upgraded to rails 1.2, but not sure?) I am finding that Rails performance is dreadful on my 2 XP machines. However, everything is quite snappy on my linux machine? Same environme…

---

## [What to do if you can't use monit or similar](https://www.ruby-forum.com/t/what-to-do-if-you-cant-use-monit-or-similar/92264)

<div class="topic-metadata">

**Author:** [@ol1barn3s](https://www.ruby-forum.com/u/ol1barn3s)\
**Replies:** 1\
**Last updated:** [April 21, 2007, 1:46pm UTC](https://www.ruby-forum.com/t/what-to-do-if-you-cant-use-monit-or-similar/92264 "2007-04-21T13:46:04Z")

</div>

Hello, I need to get monitoring and automatic restart of my mongrel instances at Rails Playground, but they don’t let me install monit on my account at this point. can anyone point me to a simple shell script that co…

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

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