# Rails

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

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

---

## [Deployment problem](https://www.ruby-forum.com/t/deployment-problem/158305)

<div class="topic-metadata">

**Author:** [@mahmoud\_cs](https://www.ruby-forum.com/u/mahmoud_cs)\
**Replies:** 2\
**Last updated:** [January 22, 2009, 9:25pm UTC](https://www.ruby-forum.com/t/deployment-problem/158305 "2009-01-22T21:25:21Z")

</div>

can I deploy ruby site with glassfish? if yes how?

---

## [Script/process/spawner fails silently](https://www.ruby-forum.com/t/script-process-spawner-fails-silently/158388)

<div class="topic-metadata">

**Author:** [@aawilson](https://www.ruby-forum.com/u/aawilson)\
**Replies:** 0\
**Last updated:** [January 22, 2009, 8:40pm UTC](https://www.ruby-forum.com/t/script-process-spawner-fails-silently/158388 "2009-01-22T20:40:18Z")

</div>

Hello. I am moving an application that uses script/process/spawner in rails 2.0.2 to a new server. After setting up all I can find that needs setting up on the new box, I go to run script/process/spawner to check th…

---

## [Problem altering mongrel\_cluster\_ctl](https://www.ruby-forum.com/t/problem-altering-mongrel-cluster-ctl/158390)

<div class="topic-metadata">

**Author:** [@eblatt](https://www.ruby-forum.com/u/eblatt)\
**Replies:** 0\
**Last updated:** [January 22, 2009, 8:27pm UTC](https://www.ruby-forum.com/t/problem-altering-mongrel-cluster-ctl/158390 "2009-01-22T20:27:11Z")

</div>

I’ve hit snag and was hoping someone might be able to give me some clues. I’m trying to implement the changes to the mongrel\_cluster\_ctl script as put forth in the following post. I’m using Ubuntu. http://blog.carl…

---

## [One week - same problem - no idea :S](https://www.ruby-forum.com/t/one-week-same-problem-no-idea-s/158375)

<div class="topic-metadata">

**Author:** [@gavin](https://www.ruby-forum.com/u/gavin)\
**Replies:** 4\
**Last updated:** [January 22, 2009, 7:42pm UTC](https://www.ruby-forum.com/t/one-week-same-problem-no-idea-s/158375 "2009-01-22T19:42:26Z")

</div>

Hey guys - I’ve been struggling for over a week to get my action mailer working - I’ve built a second application and I get the same problems. I’m pretty sure the problem must be with my smtp settings - according to …

---

## [Undefined method \`each' "ERROR" when using AJAX](https://www.ruby-forum.com/t/undefined-method-each-error-when-using-ajax/158380)

<div class="topic-metadata">

**Author:** [@staypufd](https://www.ruby-forum.com/u/staypufd)\
**Replies:** 1\
**Last updated:** [January 22, 2009, 6:24pm UTC](https://www.ruby-forum.com/t/undefined-method-each-error-when-using-ajax/158380 "2009-01-22T18:24:22Z")

</div>

I’m trying to update a set of comments in my app. I’m trying to use ajax to do so and I’m running into problems. I’m getting the error below undefined method \`each’ for #Ratecomment:0x267ac80 Extracted source (around …

---

## [CGI::Session](https://www.ruby-forum.com/t/cgi-session/158378)

<div class="topic-metadata">

**Author:** [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Replies:** 0\
**Last updated:** [January 22, 2009, 6:02pm UTC](https://www.ruby-forum.com/t/cgi-session/158378 "2009-01-22T18:02:05Z")

</div>

I would like to be told the technique one uses to discover what keys are present in a particular instance of a Session pseudo-hash. Can anyone provide me with this information?

---

## [HTTP Basic Authentication permitting wrong passwords through](https://www.ruby-forum.com/t/http-basic-authentication-permitting-wrong-passwords-through/158034)

<div class="topic-metadata">

**Author:** [@jimmyether](https://www.ruby-forum.com/u/jimmyether)\
**Replies:** 3\
**Last updated:** [January 22, 2009, 5:52pm UTC](https://www.ruby-forum.com/t/http-basic-authentication-permitting-wrong-passwords-through/158034 "2009-01-22T17:52:50Z")

</div>

I’ve run into a strange problem with HTTP Basic authentication. I’ve observed this behavior on my dev box (connecting directly to mongrel) and on an Apache+Passenger setup on my deployment machine. I’m doing the stan…

---

## [ActiveLdap belongs\_to and has\_many associations](https://www.ruby-forum.com/t/activeldap-belongs-to-and-has-many-associations/158376)

<div class="topic-metadata">

**Author:** [@aebel](https://www.ruby-forum.com/u/aebel)\
**Replies:** 0\
**Last updated:** [January 22, 2009, 5:41pm UTC](https://www.ruby-forum.com/t/activeldap-belongs-to-and-has-many-associations/158376 "2009-01-22T17:41:25Z")

</div>

Hi, I am trying to use ActiveLdap for authentication in my rails app. But I am running into a problem with the “belongs\_to” and “has\_many” associations. Here ist how my models look like. class Person \< ActiveLdap::B…

---

## [How to connect SQLserver in rails](https://www.ruby-forum.com/t/how-to-connect-sqlserver-in-rails/158360)

<div class="topic-metadata">

**Author:** [@angaps](https://www.ruby-forum.com/u/angaps)\
**Replies:** 6\
**Last updated:** [January 22, 2009, 4:56pm UTC](https://www.ruby-forum.com/t/how-to-connect-sqlserver-in-rails/158360 "2009-01-22T16:56:13Z")

</div>

Hai All I am newbie for the rails environment. I want to know how to connect the Sqlserver 2005 to the rails application. I have tried from the link http://wiki.rubyonrails.org/rails/pages/HowtoConnectToMicrosoftSQL…

---

## [Rendering layout when using rescue\_from](https://www.ruby-forum.com/t/rendering-layout-when-using-rescue-from/158341)

<div class="topic-metadata">

**Author:** [@Dowker](https://www.ruby-forum.com/u/Dowker)\
**Replies:** 5\
**Last updated:** [January 22, 2009, 4:07pm UTC](https://www.ruby-forum.com/t/rendering-layout-when-using-rescue-from/158341 "2009-01-22T16:07:27Z")

</div>

The following exception handlers work fine. It displays a simple page with the text “Page Not Found.”. But I would like to render the message within the application layout. class ApplicationController \< ActionControll…

---

## [Custom login page](https://www.ruby-forum.com/t/custom-login-page/158364)

<div class="topic-metadata">

**Author:** [@alamodey](https://www.ruby-forum.com/u/alamodey)\
**Replies:** 2\
**Last updated:** [January 22, 2009, 3:53pm UTC](https://www.ruby-forum.com/t/custom-login-page/158364 "2009-01-22T15:53:19Z")

</div>

Hi, I’m new to Rails. I’d like to have a customized login page for each user. Just like Twitter how you go to www.twitter.com/username and you can login from there. How do I do that? Thanks.

---

## [Rails plugin for directions from Google Maps?](https://www.ruby-forum.com/t/rails-plugin-for-directions-from-google-maps/158311)

<div class="topic-metadata">

**Author:** [@adambeazley](https://www.ruby-forum.com/u/adambeazley)\
**Replies:** 2\
**Last updated:** [January 22, 2009, 3:02pm UTC](https://www.ruby-forum.com/t/rails-plugin-for-directions-from-google-maps/158311 "2009-01-22T15:02:37Z")

</div>

Does such a thing exist? YM4R only seems to do markers.

---

## [Geocoding recipe: locations not showing on Google Maps](https://www.ruby-forum.com/t/geocoding-recipe-locations-not-showing-on-google-maps/158362)

<div class="topic-metadata">

**Author:** [@vahagn](https://www.ruby-forum.com/u/vahagn)\
**Replies:** 0\
**Last updated:** [January 22, 2009, 1:41pm UTC](https://www.ruby-forum.com/t/geocoding-recipe-locations-not-showing-on-google-maps/158362 "2009-01-22T13:41:18Z")

</div>

Hi, can someone helpe me out with a Google Maps issue: I’ve incorporated one of the recipes in Advanced Rails Recipes book (the GeoCoding one). Although everything is done exactly as in the recipe, the locations do no…

---

## [Routing through parent](https://www.ruby-forum.com/t/routing-through-parent/158357)

<div class="topic-metadata">

**Author:** [@rmac217](https://www.ruby-forum.com/u/rmac217)\
**Replies:** 1\
**Last updated:** [January 22, 2009, 1:02pm UTC](https://www.ruby-forum.com/t/routing-through-parent/158357 "2009-01-22T13:02:26Z")

</div>

Hello, At the moment I have the following route in my routes.rb file map.resources :categories do |categories| categories.resources :products end Simple relationship… product belongs\_to a category a category has\_m…

---

## [Dynamically add includes to an association?](https://www.ruby-forum.com/t/dynamically-add-includes-to-an-association/158349)

<div class="topic-metadata">

**Author:** [@cmaxvv](https://www.ruby-forum.com/u/cmaxvv)\
**Replies:** 5\
**Last updated:** [January 22, 2009, 12:58pm UTC](https://www.ruby-forum.com/t/dynamically-add-includes-to-an-association/158349 "2009-01-22T12:58:48Z")

</div>

I have an association user.lessons. Sometimes i just want the lessons, other times i want the lessons to eager-load one of their own associations, ‘assets’. Theres a couple of ways i can see to deal with this and i’…

---

## [How to read and write files?](https://www.ruby-forum.com/t/how-to-read-and-write-files/158331)

<div class="topic-metadata">

**Author:** [@martin\_mercy2001](https://www.ruby-forum.com/u/martin_mercy2001)\
**Replies:** 3\
**Last updated:** [January 22, 2009, 12:07pm UTC](https://www.ruby-forum.com/t/how-to-read-and-write-files/158331 "2009-01-22T12:07:18Z")

</div>

Dear all, I have uploaded gif images and stored in folder called banner list. I have successfully read and written the uploaded gif files even animated gif files. But when i read the same gif file from the the bannerl…

---

## [Simple Drag & Drop working Example Needed](https://www.ruby-forum.com/t/simple-drag-drop-working-example-needed/158347)

<div class="topic-metadata">

**Author:** [@tnyplz](https://www.ruby-forum.com/u/tnyplz)\
**Replies:** 0\
**Last updated:** [January 22, 2009, 10:58am UTC](https://www.ruby-forum.com/t/simple-drag-drop-working-example-needed/158347 "2009-01-22T10:58:10Z")

</div>

Hi all, Being a beginner in Ruby on Rails, I face issues with Drag & Drop. Would you please give a simple working complete example for Drag and Drop (with 2 lists)? Or please find the below snippet and please help me…

---

## [\[ANN\] WiceGrid Plugin version 0.3](https://www.ruby-forum.com/t/ann-wicegrid-plugin-version-0-3/158345)

<div class="topic-metadata">

**Author:** [@yuleven](https://www.ruby-forum.com/u/yuleven)\
**Replies:** 0\
**Last updated:** [January 22, 2009, 10:55am UTC](https://www.ruby-forum.com/t/ann-wicegrid-plugin-version-0-3/158345 "2009-01-22T10:55:45Z")

</div>

Hello all, WiceGrid Plugin version 0.3 is released. WiceGrid is a Rails plugin which does all dummy work for you when you need to render a table with: paging sortable columns filtering by multiple columns CSV expor…

---

## [Symmetric associations](https://www.ruby-forum.com/t/symmetric-associations/158344)

<div class="topic-metadata">

**Author:** [@gamafranco](https://www.ruby-forum.com/u/gamafranco)\
**Replies:** 0\
**Last updated:** [January 22, 2009, 10:51am UTC](https://www.ruby-forum.com/t/symmetric-associations/158344 "2009-01-22T10:51:03Z")

</div>

Hello, This is probably a common question, but I haven’t found an answer after searching within this group. What is the recommended way to implement symmetric associations (e.g. brother, friend, etc)? I’m using rails…

---

## [ANNOUNCEMENT: ModBox - Open Platform as a Service](https://www.ruby-forum.com/t/announcement-modbox-open-platform-as-a-service/158343)

<div class="topic-metadata">

**Author:** [@ModBox](https://www.ruby-forum.com/u/ModBox)\
**Replies:** 0\
**Last updated:** [January 22, 2009, 10:26am UTC](https://www.ruby-forum.com/t/announcement-modbox-open-platform-as-a-service/158343 "2009-01-22T10:26:59Z")

</div>

ModBox an “Open Platform as a Service” (OPaaS). Ok, what the #@#$ is OPaaS? OPaaS is PaaS, but open. Think Custom Application Development Software for Business - Salesforce.com App Engine/ Amazon EC2 - but open. Really…

---

## [Named\_scopes - any reason why you should not alway use a named scope (c.f. a custom method to return](https://www.ruby-forum.com/t/named-scopes-any-reason-why-you-should-not-alway-use-a-named-scope-c-f-a-custom-method-to-return/158171)

<div class="topic-metadata">

**Author:** [@greg](https://www.ruby-forum.com/u/greg)\
**Replies:** 5\
**Last updated:** [January 22, 2009, 10:02am UTC](https://www.ruby-forum.com/t/named-scopes-any-reason-why-you-should-not-alway-use-a-named-scope-c-f-a-custom-method-to-return/158171 "2009-01-22T10:02:22Z")

</div>

Hi, I’ve just discovered the “named\_scope” method which seems great. I’m wondering there is any reason why you wouldn’t always use a named scope (to get the advantages), over a custom method on your model to return …

---

## [How to link\_to a file out side rails application](https://www.ruby-forum.com/t/how-to-link-to-a-file-out-side-rails-application/158323)

<div class="topic-metadata">

**Author:** [@youhaodeyi](https://www.ruby-forum.com/u/youhaodeyi)\
**Replies:** 8\
**Last updated:** [January 22, 2009, 9:45am UTC](https://www.ruby-forum.com/t/how-to-link-to-a-file-out-side-rails-application/158323 "2009-01-22T09:45:19Z")

</div>

I want to link to a file outside rails application. It is a text file stored in rails server disk. When user click this link, the file will be open. How can I do this? thanks.

---

## [How to make a soundex method in](https://www.ruby-forum.com/t/how-to-make-a-soundex-method-in/158332)

<div class="topic-metadata">

**Author:** [@timdunn2](https://www.ruby-forum.com/u/timdunn2)\
**Replies:** 2\
**Last updated:** [January 22, 2009, 9:12am UTC](https://www.ruby-forum.com/t/how-to-make-a-soundex-method-in/158332 "2009-01-22T09:12:28Z")

</div>

I am working with a table in my database where I am looking through every record to see if it matches with every other record in that same table to see if its a soundex match or not I want to define a method where I c…

---

## [Is there a plugin that can autofill(ajax) during user input?](https://www.ruby-forum.com/t/is-there-a-plugin-that-can-autofill-ajax-during-user-input/158334)

<div class="topic-metadata">

**Author:** [@pood](https://www.ruby-forum.com/u/pood)\
**Replies:** 4\
**Last updated:** [January 22, 2009, 7:31am UTC](https://www.ruby-forum.com/t/is-there-a-plugin-that-can-autofill-ajax-during-user-input/158334 "2009-01-22T07:31:28Z")

</div>

I haven’t done rails in a year, but can someone tell me if there is a plugin or how much work is it to add an auto fill function like google’s front page? Would you just use an observer on the form or is there already…

---

## [How to access the given url with parameters in your rails ap](https://www.ruby-forum.com/t/how-to-access-the-given-url-with-parameters-in-your-rails-ap/158179)

<div class="topic-metadata">

**Author:** [@sauravsuman012](https://www.ruby-forum.com/u/sauravsuman012)\
**Replies:** 1\
**Last updated:** [January 22, 2009, 7:15am UTC](https://www.ruby-forum.com/t/how-to-access-the-given-url-with-parameters-in-your-rails-ap/158179 "2009-01-22T07:15:14Z")

</div>

Hi All, I have a problem. How can i use my rails created URL in my application. I Explain it briefly with an Example what i have to do . First please see the website (www.rails2u.com/bgmaker). I have to make the Imag…

---

## [Noob question about development mode](https://www.ruby-forum.com/t/noob-question-about-development-mode/158178)

<div class="topic-metadata">

**Author:** [@expozen](https://www.ruby-forum.com/u/expozen)\
**Replies:** 7\
**Last updated:** [January 22, 2009, 5:46am UTC](https://www.ruby-forum.com/t/noob-question-about-development-mode/158178 "2009-01-22T05:46:20Z")

</div>

I’m new to Ruby and have just installed Rails. I wondering if there is a way to add an ip address to be used for development mode, it seems to default to localhost. I would like to view the Rails applications I develo…

---

## [How can I set attributes in the intermediate table for a many-to-many situation? (e.g. when tryin](https://www.ruby-forum.com/t/how-can-i-set-attributes-in-the-intermediate-table-for-a-many-to-many-situation-e-g-when-tryin/158328)

<div class="topic-metadata">

**Author:** [@greg](https://www.ruby-forum.com/u/greg)\
**Replies:** 0\
**Last updated:** [January 22, 2009, 4:32am UTC](https://www.ruby-forum.com/t/how-can-i-set-attributes-in-the-intermediate-table-for-a-many-to-many-situation-e-g-when-tryin/158328 "2009-01-22T04:32:41Z")

</div>

Hi, It seems for the model scenario I have below if there was NO “amount” field on AiAllocation I could go: .business\_items \<\< QUESTION: What’s the easiest way to allocate an account item to a business item in th…

---

## [Newbie](https://www.ruby-forum.com/t/newbie/158100)

<div class="topic-metadata">

**Author:** [@eduardopa](https://www.ruby-forum.com/u/eduardopa)\
**Replies:** 8\
**Last updated:** [January 22, 2009, 3:28am UTC](https://www.ruby-forum.com/t/newbie/158100 "2009-01-22T03:28:13Z")

</div>

Hi, I am a Newbie to Mac and Rails. I have some rails apps made using instantrails in windows, and have been trying to setup a mac as a developing machine. And the transition has not been as smooth as I thought. I a…

---

## [PostgreSQL specific data types in migrations](https://www.ruby-forum.com/t/postgresql-specific-data-types-in-migrations/158280)

<div class="topic-metadata">

**Author:** [@mgreenly](https://www.ruby-forum.com/u/mgreenly)\
**Replies:** 2\
**Last updated:** [January 22, 2009, 3:01am UTC](https://www.ruby-forum.com/t/postgresql-specific-data-types-in-migrations/158280 "2009-01-22T03:01:16Z")

</div>

I am willing to give up the common denominator in database compatibility and dive into using some PostgreSQL specific types. In particular, I need bigint (int8) id columns and ‘cidr’ data type. I know I can fake it w…

---

## [Tricky issue - AJAX + form text fields + sortable\_list](https://www.ruby-forum.com/t/tricky-issue-ajax-form-text-fields-sortable-list/158256)

<div class="topic-metadata">

**Author:** [@taylorstrait](https://www.ruby-forum.com/u/taylorstrait)\
**Replies:** 2\
**Last updated:** [January 22, 2009, 2:20am UTC](https://www.ruby-forum.com/t/tricky-issue-ajax-form-text-fields-sortable-list/158256 "2009-01-22T02:20:36Z")

</div>

I have a custom form builder that has a question type of “rank order.” That is where you rank the choices in order from 1-5, or whatever. So I have the answer choices set up as a sortable list that has a text field w…

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

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