# Rails

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

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

---

## [Firefox and Ajax: problem submitting multiple time](https://www.ruby-forum.com/t/firefox-and-ajax-problem-submitting-multiple-time/90620)

<div class="topic-metadata">

**Author:** [@carminem](https://www.ruby-forum.com/u/carminem)\
**Replies:** 0\
**Last updated:** [March 30, 2007, 1:07pm UTC](https://www.ruby-forum.com/t/firefox-and-ajax-problem-submitting-multiple-time/90620 "2007-03-30T13:07:43Z")

</div>

Hi to everyone, I have a form with the following structure: \<% remote\_form\_for :trace, @trace do |f| %\> … \<%= submit\_tag “Conferma” %\> \<% end %\> This form contains a lot of data the user can change multiple times, …

---

## [Porting a Rails app to Lift - (Interesting)](https://www.ruby-forum.com/t/porting-a-rails-app-to-lift-interesting/90505)

<div class="topic-metadata">

**Author:** [@mark](https://www.ruby-forum.com/u/mark)\
**Replies:** 9\
**Last updated:** [March 30, 2007, 12:15pm UTC](https://www.ruby-forum.com/t/porting-a-rails-app-to-lift-interesting/90505 "2007-03-30T12:15:50Z")

</div>

This is worth a read: http://blog.lostlake.org/index.php?/archives/45-A-real-world-use-of-lift.html Resposes by DPP to questions on LtU http://lambda-the-ultimate.org/node/2147#comment-27065 http://lambda-the-ultimat…

---

## [Best location for a plugin configuration file?](https://www.ruby-forum.com/t/best-location-for-a-plugin-configuration-file/90614)

<div class="topic-metadata">

**Author:** [@Jerome\_Etienne](https://www.ruby-forum.com/u/Jerome_Etienne)\
**Replies:** 0\
**Last updated:** [March 30, 2007, 11:48am UTC](https://www.ruby-forum.com/t/best-location-for-a-plugin-configuration-file/90614 "2007-03-30T11:48:47Z")

</div>

Hello, i got a plugin with got a configuration file, where is the best place to put it ? in the /config ? in the /lib ? elsewhere ? :slight\_smile:

---

## [Deploying on Windows with IIS, ISAPIRewrite, Mongrel, Pen an](https://www.ruby-forum.com/t/deploying-on-windows-with-iis-isapirewrite-mongrel-pen-an/89491)

<div class="topic-metadata">

**Author:** [@andre\_in\_LA](https://www.ruby-forum.com/u/andre_in_LA)\
**Replies:** 2\
**Last updated:** [March 30, 2007, 10:16am UTC](https://www.ruby-forum.com/t/deploying-on-windows-with-iis-isapirewrite-mongrel-pen-an/89491 "2007-03-30T10:16:36Z")

</div>

This is a description of a simple setup based on the “Integrate Rails into an Existing IIS Web infrastructure using Mongrel” PDF at http://www.napcs.com/howto/rails/deploy/index.html I am having trouble with the last …

---

## [ActiveRecord attributes -- strange behavior when adding Arra](https://www.ruby-forum.com/t/activerecord-attributes-strange-behavior-when-adding-arra/90586)

<div class="topic-metadata">

**Author:** [@sjmadsen](https://www.ruby-forum.com/u/sjmadsen)\
**Replies:** 1\
**Last updated:** [March 30, 2007, 10:06am UTC](https://www.ruby-forum.com/t/activerecord-attributes-strange-behavior-when-adding-arra/90586 "2007-03-30T10:06:35Z")

</div>

Hi, I have a database table and associated ActiveRecord model. I was trying to store (temporarily) an array in one of the attribute elements - not to save it, but just so that I can keep some form data in a sensible …

---

## [Link\_to\_remote options to set href value](https://www.ruby-forum.com/t/link-to-remote-options-to-set-href-value/90608)

<div class="topic-metadata">

**Author:** [@senthil](https://www.ruby-forum.com/u/senthil)\
**Replies:** 0\
**Last updated:** [March 30, 2007, 8:24am UTC](https://www.ruby-forum.com/t/link-to-remote-options-to-set-href-value/90608 "2007-03-30T08:24:13Z")

</div>

HI all, i am using link\_to\_remote ajax call.I want to set the href value so that i can use the # to make it as a position tag.Basically i want to change the position after the ajax call. how to do it?? can any one he…

---

## [Migrations with corresponding fixtures?](https://www.ruby-forum.com/t/migrations-with-corresponding-fixtures/90559)

<div class="topic-metadata">

**Author:** [@josh](https://www.ruby-forum.com/u/josh)\
**Replies:** 1\
**Last updated:** [March 30, 2007, 7:52am UTC](https://www.ruby-forum.com/t/migrations-with-corresponding-fixtures/90559 "2007-03-30T07:52:57Z")

</div>

Hi all In my migrations I often like to create some basic model data that will be needed in the application (e.g. a list of common countries). Till now I hard-coded them directly into the migration scripts: Country.c…

---

## [Eager load for 1:N across natural key join](https://www.ruby-forum.com/t/eager-load-for-1-n-across-natural-key-join/90146)

<div class="topic-metadata">

**Author:** [@matthew](https://www.ruby-forum.com/u/matthew)\
**Replies:** 4\
**Last updated:** [March 30, 2007, 6:05am UTC](https://www.ruby-forum.com/t/eager-load-for-1-n-across-natural-key-join/90146 "2007-03-30T06:05:48Z")

</div>

Hi List I have a natural key association between Release and Track (so no id foreign key relationship). I figured out how to get ActiveRecord to correctly populate the nested collections by declaring a :finder\_sql on…

---

## [Highlight search terms](https://www.ruby-forum.com/t/highlight-search-terms/90599)

<div class="topic-metadata">

**Author:** [@matthew](https://www.ruby-forum.com/u/matthew)\
**Replies:** 0\
**Last updated:** [March 30, 2007, 6:00am UTC](https://www.ruby-forum.com/t/highlight-search-terms/90599 "2007-03-30T06:00:48Z")

</div>

Hi I can’t seem to find a configurable Ruby search term highlighter out there - can’t believe there isn’t one ? I’ve reviewed TextHelper.highlight but it’s to simple for my requirements. I need to be able to exclude …

---

## [View this page "Are You In Christ, and Prayer Language"](https://www.ruby-forum.com/t/view-this-page-are-you-in-christ-and-prayer-language/90597)

<div class="topic-metadata">

**Author:** [@micen](https://www.ruby-forum.com/u/micen)\
**Replies:** 0\
**Last updated:** [March 30, 2007, 5:57am UTC](https://www.ruby-forum.com/t/view-this-page-are-you-in-christ-and-prayer-language/90597 "2007-03-30T05:57:47Z")

</div>

Click on http://groups.google.com/group/rubyonrails-talk/web/are-you-in-christ-and-prayer-language or copy & paste it into your browser’s address bar if that doesn’t work.

---

## [Are You In Christ, and Prayer Language](https://www.ruby-forum.com/t/are-you-in-christ-and-prayer-language/90598)

<div class="topic-metadata">

**Author:** [@micen](https://www.ruby-forum.com/u/micen)\
**Replies:** 0\
**Last updated:** [March 30, 2007, 5:56am UTC](https://www.ruby-forum.com/t/are-you-in-christ-and-prayer-language/90598 "2007-03-30T05:56:47Z")

</div>

Are You In Christ, and Prayer Language There may be some controversy in mel gibson’s movie the passion of christ, but one thing is not a controversy and that is being IN Christ. If you are you would know it. Its like …

---

## [Dynamically setting the image directory used by attachment\_f](https://www.ruby-forum.com/t/dynamically-setting-the-image-directory-used-by-attachment-f/87634)

<div class="topic-metadata">

**Author:** [@nielsene](https://www.ruby-forum.com/u/nielsene)\
**Replies:** 3\
**Last updated:** [March 30, 2007, 5:14am UTC](https://www.ruby-forum.com/t/dynamically-setting-the-image-directory-used-by-attachment-f/87634 "2007-03-30T05:14:44Z")

</div>

It took me a while to figure this out and I don’t see any wiki pages for attachment\_fu so I figure I would just post this here. I didn’t like the way attachment\_fu by default creates directories under a given director…

---

## ["Bad file descriptor - connect(2)" = Unable to connect to DB](https://www.ruby-forum.com/t/bad-file-descriptor-connect-2-unable-to-connect-to-db/90590)

<div class="topic-metadata">

**Author:** [@jamesarobertson](https://www.ruby-forum.com/u/jamesarobertson)\
**Replies:** 0\
**Last updated:** [March 30, 2007, 4:44am UTC](https://www.ruby-forum.com/t/bad-file-descriptor-connect-2-unable-to-connect-to-db/90590 "2007-03-30T04:44:42Z")

</div>

When developing a Rails project I occasionally get the error message: ‘Bad file descriptor - connect(2)’ The first time this happened, it took me a while to work out that the problem was that I have forgotten to start…

---

## [Obscenity Filter plugin?](https://www.ruby-forum.com/t/obscenity-filter-plugin/90542)

<div class="topic-metadata">

**Author:** [@SMJ](https://www.ruby-forum.com/u/SMJ)\
**Replies:** 3\
**Last updated:** [March 30, 2007, 4:18am UTC](https://www.ruby-forum.com/t/obscenity-filter-plugin/90542 "2007-03-30T04:18:36Z")

</div>

Has anyone built anything along these lines? Something to keep people from adding naughty tags or comments?

---

## [Ssl\_requirement redirecting to http from an https screen](https://www.ruby-forum.com/t/ssl-requirement-redirecting-to-http-from-an-https-screen/90582)

<div class="topic-metadata">

**Author:** [@Noah](https://www.ruby-forum.com/u/Noah)\
**Replies:** 2\
**Last updated:** [March 30, 2007, 4:07am UTC](https://www.ruby-forum.com/t/ssl-requirement-redirecting-to-http-from-an-https-screen/90582 "2007-03-30T04:07:55Z")

</div>

I installed the ssl\_requirement plugin & got it working w/my server (lighty scgi) without too much difficulty. I have some pages that require ssl (login for example) and some pages that do not. My problem is that onc…

---

## [Production Hosting](https://www.ruby-forum.com/t/production-hosting/90342)

<div class="topic-metadata">

**Author:** [@barrysfarm](https://www.ruby-forum.com/u/barrysfarm)\
**Replies:** 6\
**Last updated:** [March 30, 2007, 2:53am UTC](https://www.ruby-forum.com/t/production-hosting/90342 "2007-03-30T02:53:34Z")

</div>

So, I’m having trouble with finding a decent hosting provider. I’ve tried dreamhost and i’ve got everything set up, but it’s just too slow. It takes about 20-25 seconds to load the site inititally, but takes another 1…

---

## ['ruby' is not recognized as an internal or external command](https://www.ruby-forum.com/t/ruby-is-not-recognized-as-an-internal-or-external-command/89891)

<div class="topic-metadata">

**Author:** [@bill](https://www.ruby-forum.com/u/bill)\
**Replies:** 3\
**Last updated:** [March 30, 2007, 2:50am UTC](https://www.ruby-forum.com/t/ruby-is-not-recognized-as-an-internal-or-external-command/89891 "2007-03-30T02:50:52Z")

</div>

That’s the error I receive when trying to run “ruby script/server” within one of my application directories. Here’s my setup info: Windows XP SP2 Ruby 1.8.5 Gems .92 Installed to c:\\ruby I checked my path in my en…

---

## [Big Rails Sites with numbers](https://www.ruby-forum.com/t/big-rails-sites-with-numbers/90571)

<div class="topic-metadata">

**Author:** [@blinking\_bear](https://www.ruby-forum.com/u/blinking_bear)\
**Replies:** 2\
**Last updated:** [March 30, 2007, 2:05am UTC](https://www.ruby-forum.com/t/big-rails-sites-with-numbers/90571 "2007-03-30T02:05:31Z")

</div>

It would be awesome to have some sort of recent data on the big gun rails sites. I have to include some examples in a statement of work to get RoR approval for the project. The client is concerned with scaling issu…

---

## [Extending the to\_s method](https://www.ruby-forum.com/t/extending-the-to-s-method/90583)

<div class="topic-metadata">

**Author:** [@leonb](https://www.ruby-forum.com/u/leonb)\
**Replies:** 1\
**Last updated:** [March 30, 2007, 1:45am UTC](https://www.ruby-forum.com/t/extending-the-to-s-method/90583 "2007-03-30T01:45:30Z")

</div>

Hi! I’m developing an localization plugin (just for my own purposes) and I wanted to extend the to\_s method for the Time class. What I want to do: when someone does date.to\_s(:short) that a localized version of the …

---

## [Related collection selects eliminating prior selections](https://www.ruby-forum.com/t/related-collection-selects-eliminating-prior-selections/90580)

<div class="topic-metadata">

**Author:** [@Philly\_Cheez](https://www.ruby-forum.com/u/Philly_Cheez)\
**Replies:** 0\
**Last updated:** [March 30, 2007, 1:07am UTC](https://www.ruby-forum.com/t/related-collection-selects-eliminating-prior-selections/90580 "2007-03-30T01:07:34Z")

</div>

I have seen the plugin for related collection selects and I don’t it can help with this one. Here is the example: In table “painting” I have among others, 3 fields called colorID1, colorID2, colorID3… There is anothe…

---

## [Rails, REST and JSON](https://www.ruby-forum.com/t/rails-rest-and-json/90454)

<div class="topic-metadata">

**Author:** [@seeah](https://www.ruby-forum.com/u/seeah)\
**Replies:** 7\
**Last updated:** [March 30, 2007, 1:05am UTC](https://www.ruby-forum.com/t/rails-rest-and-json/90454 "2007-03-30T01:05:26Z")

</div>

Hi everyone, I’m writing a lightweight AJAX application using Rails on the server side as a RESTful web service provider. I need the web service to support both JSON and XML I/O. Outputting data in XML and JSON is …

---

## [Scaffold table name confusion](https://www.ruby-forum.com/t/scaffold-table-name-confusion/90576)

<div class="topic-metadata">

**Author:** [@jah4711](https://www.ruby-forum.com/u/jah4711)\
**Replies:** 0\
**Last updated:** [March 30, 2007, 12:38am UTC](https://www.ruby-forum.com/t/scaffold-table-name-confusion/90576 "2007-03-30T00:38:25Z")

</div>

Hi folks, I am a Rails/Ruby newbie and this is my first post in this group, so please be patient. I have an application which uses tables like “countries” and “languages”. I installed yesterday globalize which also c…

---

## [Agile ROR Reached Ch. 11, book skips two pieces I need, what](https://www.ruby-forum.com/t/agile-ror-reached-ch-11-book-skips-two-pieces-i-need-what/90461)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 5\
**Last updated:** [March 30, 2007, 12:37am UTC](https://www.ruby-forum.com/t/agile-ror-reached-ch-11-book-skips-two-pieces-i-need-what/90461 "2007-03-30T00:37:25Z")

</div>

I just got to chapter 11, and I’m informed that we’ll be skipping the step where we would fufill the order by pulling up the customer orders that were entered into the database. Perhaps I’m jumping too far ahead (I w…

---

## [Need help with select tags and AJAX](https://www.ruby-forum.com/t/need-help-with-select-tags-and-ajax/102727)

<div class="topic-metadata">

**Author:** [@mephtik](https://www.ruby-forum.com/u/mephtik)\
**Replies:** 1\
**Last updated:** [March 30, 2007, 12:33am UTC](https://www.ruby-forum.com/t/need-help-with-select-tags-and-ajax/102727 "2007-03-30T00:33:00Z")

</div>

Here’s my situation. I’ve got a select form that I’m populating with a list of colors. I then have a database with a list of products, and each product has a specific color. Some colors have multiple products (ie. the…

---

## [Validates\_length\_of not working with :if?](https://www.ruby-forum.com/t/validates-length-of-not-working-with-if/90500)

<div class="topic-metadata">

**Author:** [@jamal](https://www.ruby-forum.com/u/jamal)\
**Replies:** 4\
**Last updated:** [March 30, 2007, 12:27am UTC](https://www.ruby-forum.com/t/validates-length-of-not-working-with-if/90500 "2007-03-30T00:27:24Z")

</div>

Hello, I’m trying to cut down the errors if the guy already getting the empty nickname, so he doesn’t get anything about the nickname is short. validates\_presence\_of :nickname This below is not working ? validates\_l…

---

## [Call ActionController's verify() in a module?](https://www.ruby-forum.com/t/call-actioncontrollers-verify-in-a-module/90570)

<div class="topic-metadata">

**Author:** [@josh](https://www.ruby-forum.com/u/josh)\
**Replies:** 0\
**Last updated:** [March 29, 2007, 11:45pm UTC](https://www.ruby-forum.com/t/call-actioncontrollers-verify-in-a-module/90570 "2007-03-29T23:45:24Z")

</div>

Hi all I’m working on a module that an application controller can include. Within that module I specify some action methods. I want to secure them from invalid parameters, so I’d like to use ApplicationController’s v…

---

## [How-to: one form, two submit button, two validates-presence\_](https://www.ruby-forum.com/t/how-to-one-form-two-submit-button-two-validates-presence/88944)

<div class="topic-metadata">

**Author:** [@zhiyong](https://www.ruby-forum.com/u/zhiyong)\
**Replies:** 7\
**Last updated:** [March 29, 2007, 11:40pm UTC](https://www.ruby-forum.com/t/how-to-one-form-two-submit-button-two-validates-presence/88944 "2007-03-29T23:40:40Z")

</div>

Hi, everybody; The following question blocked my way for a couple days. I appreciate any help in advance. I have one form that adds text entry to the database. There are two ways to add the entry: User fills all t…

---

## [Intimate dating](https://www.ruby-forum.com/t/intimate-dating/90567)

<div class="topic-metadata">

**Author:** [@maniSSSS](https://www.ruby-forum.com/u/maniSSSS)\
**Replies:** 0\
**Last updated:** [March 29, 2007, 11:15pm UTC](https://www.ruby-forum.com/t/intimate-dating/90567 "2007-03-29T23:15:10Z")

</div>

Search Profiles - FREE! Intimate Dating. Start Chatting within seconds http://surl.in/HLMAT238206SVRAKSX-google

---

## [Auto\_complete\_for function](https://www.ruby-forum.com/t/auto-complete-for-function/90474)

<div class="topic-metadata">

**Author:** [@jney](https://www.ruby-forum.com/u/jney)\
**Replies:** 3\
**Last updated:** [March 29, 2007, 11:10pm UTC](https://www.ruby-forum.com/t/auto-complete-for-function/90474 "2007-03-29T23:10:08Z")

</div>

hello, i’ve a problem by using text\_field\_with\_autocomplete. when i use parameters in the header of my function in works : auto\_complete\_for :user :login but i use the function “auto\_complete\_for\_user\_login” it doesn…

---

## [Strange 'string modified' error!](https://www.ruby-forum.com/t/strange-string-modified-error/90543)

<div class="topic-metadata">

**Author:** [@mdaoust](https://www.ruby-forum.com/u/mdaoust)\
**Replies:** 1\
**Last updated:** [March 29, 2007, 11:07pm UTC](https://www.ruby-forum.com/t/strange-string-modified-error/90543 "2007-03-29T23:07:59Z")

</div>

Hi, Got this strange error message coming from the second instance of the ‘scan’ method (line 39) on the text string. Any clues. Really stumped me… It was working fine, then suddenly - boom it stopped. ... text.scan…

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

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