# Rails

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

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

---

## [Atom feed bad dates in google reader?](https://www.ruby-forum.com/t/atom-feed-bad-dates-in-google-reader/147912)

<div class="topic-metadata">

**Author:** [@andy](https://www.ruby-forum.com/u/andy)\
**Replies:** 2\
**Last updated:** [September 17, 2008, 7:12am UTC](https://www.ruby-forum.com/t/atom-feed-bad-dates-in-google-reader/147912 "2008-09-17T07:12:42Z")

</div>

My atom feed validates \[1\] and shows in various browsers fine (the published date). I’m using the atom\_feed\_helper \[2\] very minimally modified and am on Rails 2.1. I am also using Feedbuner as the xml +rss alternate…

---

## [Memory leak? shows up in mongrel, not webrick](https://www.ruby-forum.com/t/memory-leak-shows-up-in-mongrel-not-webrick/148793)

<div class="topic-metadata">

**Author:** [@danblaker](https://www.ruby-forum.com/u/danblaker)\
**Replies:** 0\
**Last updated:** [September 17, 2008, 5:33am UTC](https://www.ruby-forum.com/t/memory-leak-shows-up-in-mongrel-not-webrick/148793 "2008-09-17T05:33:52Z")

</div>

I’ve got an app that iterates through an array of 1000+ ActiveRecords in order to support quick AJAX filtering. When the app is running on mongrel(s), this process makes the RAM usage go through the roof (i.e., addin…

---

## [Turning off cookies for RESTful service connected to Mule](https://www.ruby-forum.com/t/turning-off-cookies-for-restful-service-connected-to-mule/148791)

<div class="topic-metadata">

**Author:** [@Kevin\_Peterson](https://www.ruby-forum.com/u/Kevin_Peterson)\
**Replies:** 0\
**Last updated:** [September 17, 2008, 5:33am UTC](https://www.ruby-forum.com/t/turning-off-cookies-for-restful-service-connected-to-mule/148791 "2008-09-17T05:33:16Z")

</div>

I’m trying to get Rails 2.1 to talk to Mule 2.0. Mule is complaining “Invalid cookie state: domain not specified”. I think I can fix this by telling Rails not to use cookies (I don’t need any session information). But…

---

## [Problem with has\_many and belongs\_to: NameError: uninitialized constant User::Recipy](https://www.ruby-forum.com/t/problem-with-has-many-and-belongs-to-nameerror-uninitialized-constant-user-recipy/143471)

<div class="topic-metadata">

**Author:** [@lz-coelho](https://www.ruby-forum.com/u/lz-coelho)\
**Replies:** 3\
**Last updated:** [September 17, 2008, 5:20am UTC](https://www.ruby-forum.com/t/problem-with-has-many-and-belongs-to-nameerror-uninitialized-constant-user-recipy/143471 "2008-09-17T05:20:28Z")

</div>

Hello, I’m learning to use ORM system. I read a lot of content but i can’t get it to work. class CreateUsers \< ActiveRecord::Migration def self.up create\_table :users do |t| t.column :email, :string t.column :nom…

---

## [Send\_file problem with IE7. Save Image as untitled.bmp](https://www.ruby-forum.com/t/send-file-problem-with-ie7-save-image-as-untitled-bmp/148751)

<div class="topic-metadata">

**Author:** [@noelw](https://www.ruby-forum.com/u/noelw)\
**Replies:** 4\
**Last updated:** [September 17, 2008, 1:51am UTC](https://www.ruby-forum.com/t/send-file-problem-with-ie7-save-image-as-untitled-bmp/148751 "2008-09-17T01:51:42Z")

</div>

Platform = Linux and Mongrel I’m using send\_file to send images from a controller. like this: send\_file( @content.location, :disposition =\> ‘inline’, :type =\> File.mime\_type?(@content.location)) # mime\_type? courtesy …

---

## [Is it required that user provides his password to update?](https://www.ruby-forum.com/t/is-it-required-that-user-provides-his-password-to-update/148763)

<div class="topic-metadata">

**Author:** [@fipa](https://www.ruby-forum.com/u/fipa)\
**Replies:** 3\
**Last updated:** [September 17, 2008, 1:40am UTC](https://www.ruby-forum.com/t/is-it-required-that-user-provides-his-password-to-update/148763 "2008-09-17T01:40:29Z")

</div>

Hi, I am working with restful\_authentication plugin fresh install from today. In the users\_controller one can read the following: There’s no page here to update or destroy a user. If you add those, be smart – make s…

---

## [Close browser](https://www.ruby-forum.com/t/close-browser/148755)

<div class="topic-metadata">

**Author:** [@snantz](https://www.ruby-forum.com/u/snantz)\
**Replies:** 1\
**Last updated:** [September 17, 2008, 12:56am UTC](https://www.ruby-forum.com/t/close-browser/148755 "2008-09-17T00:56:00Z")

</div>

Right now I have people login through a login page and then hit a logout button in order to loggout. Is there a way to close a browser window when a user logs out? Can that even be done in rails or JavaScript? Sorry i…

---

## [Acts as taggable on installation problem](https://www.ruby-forum.com/t/acts-as-taggable-on-installation-problem/148539)

<div class="topic-metadata">

**Author:** [@tashfeen.ekram](https://www.ruby-forum.com/u/tashfeen.ekram)\
**Replies:** 5\
**Last updated:** [September 17, 2008, 12:03am UTC](https://www.ruby-forum.com/t/acts-as-taggable-on-installation-problem/148539 "2008-09-17T00:03:56Z")

</div>

i am trying to install the following plugin: http://agilewebdevelopment.com/plugins/acts\_as\_taggable\_on it recommends doing by the new gemplugin for ror by adding the following in environment: config.gem “mbleigh-acs…

---

## [Passing an array into controller](https://www.ruby-forum.com/t/passing-an-array-into-controller/148659)

<div class="topic-metadata">

**Author:** [@will](https://www.ruby-forum.com/u/will)\
**Replies:** 2\
**Last updated:** [September 16, 2008, 11:53pm UTC](https://www.ruby-forum.com/t/passing-an-array-into-controller/148659 "2008-09-16T23:53:25Z")

</div>

I am trying to pass and array from an AJAX Javascript function to a controller. The parameter is being read as a single string and not an array. The Javascript function: function sendtolist(formName){ var form = $(…

---

## [Spam check and rails, do you think is it possible?](https://www.ruby-forum.com/t/spam-check-and-rails-do-you-think-is-it-possible/148735)

<div class="topic-metadata">

**Author:** [@xdmx](https://www.ruby-forum.com/u/xdmx)\
**Replies:** 2\
**Last updated:** [September 16, 2008, 11:53pm UTC](https://www.ruby-forum.com/t/spam-check-and-rails-do-you-think-is-it-possible/148735 "2008-09-16T23:53:09Z")

</div>

Hi, do you think is it possible to check the score a given text/email would have? For example, I’ve a newsletter, and before send all the emails i’d like to know (automatically) how much score should have that email o…

---

## [Creating a Daemon (win32-service) and Accessing ActionMailer](https://www.ruby-forum.com/t/creating-a-daemon-win32-service-and-accessing-actionmailer/148738)

<div class="topic-metadata">

**Author:** [@tabassman](https://www.ruby-forum.com/u/tabassman)\
**Replies:** 6\
**Last updated:** [September 16, 2008, 11:14pm UTC](https://www.ruby-forum.com/t/creating-a-daemon-win32-service-and-accessing-actionmailer/148738 "2008-09-16T23:14:30Z")

</div>

I’m trying to create a win32-service (ruby script with Rails environment) utilizing the Daemon class and it currently prematurely exits when it encounters a method of mine that calls a delivery via ActionMailer. Here…

---

## [Sanitize params hash?](https://www.ruby-forum.com/t/sanitize-params-hash/136478)

<div class="topic-metadata">

**Author:** [@wickie](https://www.ruby-forum.com/u/wickie)\
**Replies:** 2\
**Last updated:** [September 16, 2008, 11:11pm UTC](https://www.ruby-forum.com/t/sanitize-params-hash/136478 "2008-09-16T23:11:39Z")

</div>

Rails has always had ways to sanitize the display of data and since 2.x there is even white-listing included. However, I think most of the time it gets the wrong end of things when user-provided data is sanitized on d…

---

## [Can I delete the Restful Authentication files in vendor after generation](https://www.ruby-forum.com/t/can-i-delete-the-restful-authentication-files-in-vendor-after-generation/139743)

<div class="topic-metadata">

**Author:** [@rubyfreak](https://www.ruby-forum.com/u/rubyfreak)\
**Replies:** 6\
**Last updated:** [September 16, 2008, 10:20pm UTC](https://www.ruby-forum.com/t/can-i-delete-the-restful-authentication-files-in-vendor-after-generation/139743 "2008-09-16T22:20:33Z")

</div>

I built the “Bells and whistles” RA project and now I am wondering if I still need the files in vendor. I don’t think I do, but someone knows this for certain. Thanks in advance.

---

## [Fields for grouping problem](https://www.ruby-forum.com/t/fields-for-grouping-problem/148745)

<div class="topic-metadata">

**Author:** [@Nathan\_R](https://www.ruby-forum.com/u/Nathan_R)\
**Replies:** 3\
**Last updated:** [September 16, 2008, 9:45pm UTC](https://www.ruby-forum.com/t/fields-for-grouping-problem/148745 "2008-09-16T21:45:15Z")

</div>

So I am having a weird issue that I hope someone else has run into and knows how to fix. Basically, I have a partial which includes a fields\_for call that renders a form for a specific type of object. This partial ca…

---

## [Error: No plugin called](https://www.ruby-forum.com/t/error-no-plugin-called/148759)

<div class="topic-metadata">

**Author:** [@ivan\_trajkovic](https://www.ruby-forum.com/u/ivan_trajkovic)\
**Replies:** 0\
**Last updated:** [September 16, 2008, 9:43pm UTC](https://www.ruby-forum.com/t/error-no-plugin-called/148759 "2008-09-16T21:43:26Z")

</div>

Hi everyone, I’m desperatelly trying to install the “datetime\_toolbocks” plugin, and for a 2nd day now I can’t figure out what I’m doing wrong. I have InstantRails with Rails 2.1.1 and Engines 2.1.0. The datetime\_too…

---

## [Config Rails .htaccess](https://www.ruby-forum.com/t/config-rails-htaccess/123896)

<div class="topic-metadata">

**Author:** [@cindy](https://www.ruby-forum.com/u/cindy)\
**Replies:** 2\
**Last updated:** [September 16, 2008, 8:27pm UTC](https://www.ruby-forum.com/t/config-rails-htaccess/123896 "2008-09-16T20:27:43Z")

</div>

Hello, newbie here please help I have developed my Rails site under www.mydomain.com/home Now I want to map it to use www.mydomain.com, what should i change to this .htaccess file =============== Content of my .hta…

---

## [Mysterious spaces in output](https://www.ruby-forum.com/t/mysterious-spaces-in-output/148397)

<div class="topic-metadata">

**Author:** [@yachtman](https://www.ruby-forum.com/u/yachtman)\
**Replies:** 6\
**Last updated:** [September 16, 2008, 8:23pm UTC](https://www.ruby-forum.com/t/mysterious-spaces-in-output/148397 "2008-09-16T20:23:17Z")

</div>

Here is a probably an easy output formatting problem. I am trying to output a sentence that uses commas between each item (retailer) and a period once there are no more items. The problem is, I can’t remove the space …

---

## [Need help to Configure Radiant with Apache-PhusionPassenger](https://www.ruby-forum.com/t/need-help-to-configure-radiant-with-apache-phusionpassenger/148749)

<div class="topic-metadata">

**Author:** [@Shrikant\_Patil](https://www.ruby-forum.com/u/Shrikant_Patil)\
**Replies:** 0\
**Last updated:** [September 16, 2008, 8:22pm UTC](https://www.ruby-forum.com/t/need-help-to-configure-radiant-with-apache-phusionpassenger/148749 "2008-09-16T20:22:42Z")

</div>

Someone please help me to configure Apache-Phusion Passenger to deploy Radiant CMS application. regards, Shrikant

---

## [Can't get script/server (or any script to work) in beginning ROR installation](https://www.ruby-forum.com/t/cant-get-script-server-or-any-script-to-work-in-beginning-ror-installation/148613)

<div class="topic-metadata">

**Author:** [@DCDCDC](https://www.ruby-forum.com/u/DCDCDC)\
**Replies:** 2\
**Last updated:** [September 16, 2008, 7:46pm UTC](https://www.ruby-forum.com/t/cant-get-script-server-or-any-script-to-work-in-beginning-ror-installation/148613 "2008-09-16T19:46:08Z")

</div>

I have been following the instructions found in Apple’s Developer Guide to developing ROR with Leopard found here: http://developer.apple.com/tools/developonrailsleopard.html I’ve gotten to the point where I’m suppose…

---

## [Country and cities... + Rails plugin](https://www.ruby-forum.com/t/country-and-cities-rails-plugin/148746)

<div class="topic-metadata">

**Author:** [@Abhishek\_shukla](https://www.ruby-forum.com/u/Abhishek_shukla)\
**Replies:** 0\
**Last updated:** [September 16, 2008, 7:40pm UTC](https://www.ruby-forum.com/t/country-and-cities-rails-plugin/148746 "2008-09-16T19:40:50Z")

</div>

Hello friends, Just wanted to know if there is any plugin, which gives u a cities drop down once a country is selected. Like if i select india from the drop down list, in the next drop down it should display cities …

---

## [Rails 2.1.1 Bug?](https://www.ruby-forum.com/t/rails-2-1-1-bug/148744)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [September 16, 2008, 7:35pm UTC](https://www.ruby-forum.com/t/rails-2-1-1-bug/148744 "2008-09-16T19:35:32Z")

</div>

Rails 2.1.1 worked find in my development environment, but I was unable to start the mongrel cluster in production. I received the following error: /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.1/lib/active\_support/ …

---

## [RoR skills assessment - anybody know these guys?](https://www.ruby-forum.com/t/ror-skills-assessment-anybody-know-these-guys/148712)

<div class="topic-metadata">

**Author:** [@wpwood](https://www.ruby-forum.com/u/wpwood)\
**Replies:** 2\
**Last updated:** [September 16, 2008, 7:34pm UTC](https://www.ruby-forum.com/t/ror-skills-assessment-anybody-know-these-guys/148712 "2008-09-16T19:34:21Z")

</div>

I’ve been approached about a RoR position and asked to take a skills assessment at https://quizzes.sporkapps.com/search?string=evaluation The site throws mismatched credentials alerts, the Terms and Conditions link d…

---

## [Has\_one :through eager-loading problem](https://www.ruby-forum.com/t/has-one-through-eager-loading-problem/196809)

<div class="topic-metadata">

**Author:** [@wurdalag](https://www.ruby-forum.com/u/wurdalag)\
**Replies:** 2\
**Last updated:** [September 16, 2008, 7:06pm UTC](https://www.ruby-forum.com/t/has-one-through-eager-loading-problem/196809 "2008-09-16T19:06:07Z")

</div>

I have a problem with the :include option in find for my has\_one :through association. I have Users, Profiles and Customers, all connected to each other with a has\_one :through =\> :membership association like this: c…

---

## [Config.gem vs require 'somegem'](https://www.ruby-forum.com/t/config-gem-vs-require-somegem/148682)

<div class="topic-metadata">

**Author:** [@giorgio](https://www.ruby-forum.com/u/giorgio)\
**Replies:** 1\
**Last updated:** [September 16, 2008, 6:55pm UTC](https://www.ruby-forum.com/t/config-gem-vs-require-somegem/148682 "2008-09-16T18:55:20Z")

</div>

I am very confused by the config.gem statement in 2.1 If I put config.gem ‘pdf-writer’ in my environment.rb I get the following error when I try to instanciate a PDF object in my controller with the statement pdf = PD…

---

## [Has\_one :through eager-loading problem](https://www.ruby-forum.com/t/has-one-through-eager-loading-problem/148736)

<div class="topic-metadata">

**Author:** [@wurdalag](https://www.ruby-forum.com/u/wurdalag)\
**Replies:** 0\
**Last updated:** [September 16, 2008, 6:45pm UTC](https://www.ruby-forum.com/t/has-one-through-eager-loading-problem/148736 "2008-09-16T18:45:33Z")

</div>

I have a problem with the :include option in find for my has\_one :through association. I have Users, Profiles and Customers, all connected to each other with a has\_one :through =\> :membership association like this: c…

---

## [Authorization header using ActiveResouce](https://www.ruby-forum.com/t/authorization-header-using-activeresouce/148733)

<div class="topic-metadata">

**Author:** [@ben.koski](https://www.ruby-forum.com/u/ben.koski)\
**Replies:** 0\
**Last updated:** [September 16, 2008, 6:15pm UTC](https://www.ruby-forum.com/t/authorization-header-using-activeresouce/148733 "2008-09-16T18:15:27Z")

</div>

I’m trying to use ActiveResource in a ruby script to consume a web service that requires simple HTTP authentication. From the docs, this seems like it should be trivial: require ‘rubygems’ require ‘activeresource’ #…

---

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

<div class="topic-metadata">

**Author:** [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Replies:** 14\
**Last updated:** [September 16, 2008, 5:59pm UTC](https://www.ruby-forum.com/t/rails-bottleneck/136234 "2008-09-16T17:59:21Z")

</div>

I’ve casually glanced through rails’ code and it seems pretty legit. Not too inefficient. Does what it should. So…my question is…why is it still somewhat slow? Blame it on Ruby, I suppose, however, there have been r…

---

## [Don't use 'type' as a DB column name](https://www.ruby-forum.com/t/dont-use-type-as-a-db-column-name/148721)

<div class="topic-metadata">

**Author:** [@Commander\_J](https://www.ruby-forum.com/u/Commander_J)\
**Replies:** 2\
**Last updated:** [September 16, 2008, 5:31pm UTC](https://www.ruby-forum.com/t/dont-use-type-as-a-db-column-name/148721 "2008-09-16T17:31:41Z")

</div>

Hi, I’m creating a simple Migration that adds test data to my database. A Form has many Elements and every Element belongs to a Form. An element has the mandatory columns name, type and value. class AddTestData \< A…

---

## [@from in emailer.rb not working with rails + gmail](https://www.ruby-forum.com/t/from-in-emailer-rb-not-working-with-rails-gmail/148710)

<div class="topic-metadata">

**Author:** [@vmvipin](https://www.ruby-forum.com/u/vmvipin)\
**Replies:** 1\
**Last updated:** [September 16, 2008, 4:39pm UTC](https://www.ruby-forum.com/t/from-in-emailer-rb-not-working-with-rails-gmail/148710 "2008-09-16T16:39:23Z")

</div>

Hi All, Am trying to send email through gmail in rails. Its working fine. My issue is @from is not working. I have assigned @from = ‘removed\_email\_address@domain.invalid’ in my emailer.rb and :user\_name =\> “removed\_e…

---

## [Text\_field\_with\_auto\_complete](https://www.ruby-forum.com/t/text-field-with-auto-complete/148716)

<div class="topic-metadata">

**Author:** [@palani](https://www.ruby-forum.com/u/palani)\
**Replies:** 2\
**Last updated:** [September 16, 2008, 3:59pm UTC](https://www.ruby-forum.com/t/text-field-with-auto-complete/148716 "2008-09-16T15:59:59Z")

</div>

Hi, Any one please help to me solve the problem in text\_field\_with\_auto\_complete. I want to call the auto\_complete AJAX function only after i enter 4 characters. To do this i have included the “min\_chars” option. M…

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

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