# Rails

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

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

---

## [Google Latitude in Ruby on Rails](https://www.ruby-forum.com/t/google-latitude-in-ruby-on-rails/163100)

<div class="topic-metadata">

**Author:** [@angaps](https://www.ruby-forum.com/u/angaps)\
**Replies:** 4\
**Last updated:** [March 20, 2009, 6:10pm UTC](https://www.ruby-forum.com/t/google-latitude-in-ruby-on-rails/163100 "2009-03-20T18:10:36Z")

</div>

Hai All I tried with the google maps in ruby on rails, i got better ideas from the forum. thanks. I wish to include google latitude in my rails application, how it would be ? kindly tell me the process and better lin…

---

## [Display XML as text](https://www.ruby-forum.com/t/display-xml-as-text/163457)

<div class="topic-metadata">

**Author:** [@sudhi](https://www.ruby-forum.com/u/sudhi)\
**Replies:** 3\
**Last updated:** [March 20, 2009, 5:40pm UTC](https://www.ruby-forum.com/t/display-xml-as-text/163457 "2009-03-20T17:40:07Z")

</div>

I have question regarding render :text … I read the conten of XML file and display it using render :text … but the content only is shown and not the entire xml file … How do I get the xml file display as xml file in t…

---

## [Rfm working in localhost but not in production enviromen](https://www.ruby-forum.com/t/rfm-working-in-localhost-but-not-in-production-enviromen/163465)

<div class="topic-metadata">

**Author:** [@elioncho](https://www.ruby-forum.com/u/elioncho)\
**Replies:** 0\
**Last updated:** [March 20, 2009, 5:06pm UTC](https://www.ruby-forum.com/t/rfm-working-in-localhost-but-not-in-production-enviromen/163465 "2009-03-20T17:06:42Z")

</div>

Hi Guys, We’ve been using RFM to sync to a FMP server. As we were deploying the app to the production server, we encountered a small problem in this part of the code: In enviroment.rb: SERVER\_CONFIG = { :host =\> “m…

---

## [Compact forms](https://www.ruby-forum.com/t/compact-forms/163450)

<div class="topic-metadata">

**Author:** [@giga](https://www.ruby-forum.com/u/giga)\
**Replies:** 1\
**Last updated:** [March 20, 2009, 4:39pm UTC](https://www.ruby-forum.com/t/compact-forms/163450 "2009-03-20T16:39:41Z")

</div>

Is there some plugin or helper to do something like this:

---

## [Form Validation Question, and a GeoKit Question](https://www.ruby-forum.com/t/form-validation-question-and-a-geokit-question/142409)

<div class="topic-metadata">

**Author:** [@Jeff.Corcoran](https://www.ruby-forum.com/u/Jeff.Corcoran)\
**Replies:** 4\
**Last updated:** [March 20, 2009, 4:38pm UTC](https://www.ruby-forum.com/t/form-validation-question-and-a-geokit-question/142409 "2009-03-20T16:38:12Z")

</div>

Yes - this is a re-post, and my last post to this question - but I was just taking one last attempt at getting help. Any answers on how to do either would be greatly appreciated. I am new to rails and have been scouri…

---

## [Drake vs the standard Rails Rakefile](https://www.ruby-forum.com/t/drake-vs-the-standard-rails-rakefile/163459)

<div class="topic-metadata">

**Author:** [@Phlip](https://www.ruby-forum.com/u/Phlip)\
**Replies:** 0\
**Last updated:** [March 20, 2009, 4:33pm UTC](https://www.ruby-forum.com/t/drake-vs-the-standard-rails-rakefile/163459 "2009-03-20T16:33:14Z")

</div>

Railsters: I tried to stop them, but my colleagues have added way too many unit tests to our projects. Because we are underusing our multi-core CPUs, I would like to speed the test run up by soaking the unit tests …

---

## [Initializers and I18n](https://www.ruby-forum.com/t/initializers-and-i18n/163415)

<div class="topic-metadata">

**Author:** [@liberte](https://www.ruby-forum.com/u/liberte)\
**Replies:** 1\
**Last updated:** [March 20, 2009, 4:08pm UTC](https://www.ruby-forum.com/t/initializers-and-i18n/163415 "2009-03-20T16:08:35Z")

</div>

Hello, My project have strange behavior diferent than I expected. If I place a line like below after the Rails::Initializer block from my enviroment file it will work fine: PROJECT\_NAME = I18n.t(“settings.name”) But…

---

## [Sending emails on user specific scheduled times](https://www.ruby-forum.com/t/sending-emails-on-user-specific-scheduled-times/163445)

<div class="topic-metadata">

**Author:** [@intern\_ruby](https://www.ruby-forum.com/u/intern_ruby)\
**Replies:** 2\
**Last updated:** [March 20, 2009, 2:41pm UTC](https://www.ruby-forum.com/t/sending-emails-on-user-specific-scheduled-times/163445 "2009-03-20T14:41:03Z")

</div>

Hello, I am building an application in which I have to send recurring emails and I am using actionmailer to send one time emails and it is working fine. Now, I need to set up user specific dates/time and mails should …

---

## [Converting Array to String in a model using before filters](https://www.ruby-forum.com/t/converting-array-to-string-in-a-model-using-before-filters/163348)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 5\
**Last updated:** [March 20, 2009, 2:22pm UTC](https://www.ruby-forum.com/t/converting-array-to-string-in-a-model-using-before-filters/163348 "2009-03-20T14:22:55Z")

</div>

Hi, I have a list coming in a field like :selected\_lists =\> \[1,2,3,4\] from a form while storing it in a database i need to join this list into a string so then in my model class, Added a filter before\_sa…

---

## [Hosting with aptana - opinions?](https://www.ruby-forum.com/t/hosting-with-aptana-opinions/163446)

<div class="topic-metadata">

**Author:** [@prichard](https://www.ruby-forum.com/u/prichard)\
**Replies:** 0\
**Last updated:** [March 20, 2009, 1:40pm UTC](https://www.ruby-forum.com/t/hosting-with-aptana-opinions/163446 "2009-03-20T13:40:25Z")

</div>

Has anyone tried hosting with aptana? How good is their service? Is it really that easy to deploy from the IDE? I just wanted to get some opinions before I tried it out. Thnx :slight\_smile:

---

## [Acceptance test parameters](https://www.ruby-forum.com/t/acceptance-test-parameters/163436)

<div class="topic-metadata">

**Author:** [@lune9](https://www.ruby-forum.com/u/lune9)\
**Replies:** 2\
**Last updated:** [March 20, 2009, 1:38pm UTC](https://www.ruby-forum.com/t/acceptance-test-parameters/163436 "2009-03-20T13:38:30Z")

</div>

Hi, I wrote an acceptance test (using selenium) to test a specific product. But I would like to specify to my test the id of the product to test. I run my test with the command rake test:acceptance my\_test.rsel I tri…

---

## [Redirecting to another controller, with a POST method](https://www.ruby-forum.com/t/redirecting-to-another-controller-with-a-post-method/163244)

<div class="topic-metadata">

**Author:** [@vahagn](https://www.ruby-forum.com/u/vahagn)\
**Replies:** 6\
**Last updated:** [March 20, 2009, 12:08pm UTC](https://www.ruby-forum.com/t/redirecting-to-another-controller-with-a-post-method/163244 "2009-03-20T12:08:53Z")

</div>

Hi. How do I call a method in controller B from controller A and ensure it is treated as a POST method? I have a method in my account\_controller: #CONTROLLER: ACCOUNT def logout if request.post? #isn’t reached when…

---

## [Installed ruby ver 1.9 but not working with rails 2.3.2](https://www.ruby-forum.com/t/installed-ruby-ver-1-9-but-not-working-with-rails-2-3-2/163051)

<div class="topic-metadata">

**Author:** [@VSVSVS](https://www.ruby-forum.com/u/VSVSVS)\
**Replies:** 21\
**Last updated:** [March 20, 2009, 10:51am UTC](https://www.ruby-forum.com/t/installed-ruby-ver-1-9-but-not-working-with-rails-2-3-2/163051 "2009-03-20T10:51:26Z")

</div>

Hello, I’m using OS X leopard and Rails 2.3.2 I’ve installed ruby by downloading the source and compiling it. Now, I have ruby -v 1.8.6 ruby19 -v 1.9 How can I get ruby19 to replace ruby ? Also, when I do ruby1…

---

## [Losing session in rails 2.3.2 app using subdomain](https://www.ruby-forum.com/t/losing-session-in-rails-2-3-2-app-using-subdomain/163432)

<div class="topic-metadata">

**Author:** [@homestarrunner](https://www.ruby-forum.com/u/homestarrunner)\
**Replies:** 0\
**Last updated:** [March 20, 2009, 10:40am UTC](https://www.ruby-forum.com/t/losing-session-in-rails-2-3-2-app-using-subdomain/163432 "2009-03-20T10:40:52Z")

</div>

hi i have a 2.2.3 app which i upgraded to 2.3.2 it’s a multi-site (using subdomain) that creates one top level session for all sites. this is how i change the domain for the session in production.rb: ActionControlle…

---

## [Session data and 304 Not Modified HTTP code](https://www.ruby-forum.com/t/session-data-and-304-not-modified-http-code/163430)

<div class="topic-metadata">

**Author:** [@Jeff\_Kize](https://www.ruby-forum.com/u/Jeff_Kize)\
**Replies:** 0\
**Last updated:** [March 20, 2009, 10:32am UTC](https://www.ruby-forum.com/t/session-data-and-304-not-modified-http-code/163430 "2009-03-20T10:32:05Z")

</div>

I am storing an id in the session data. An action causes the id to change, however, the rendered action has not changed. The server returns a 304 Not Modified code and doesn’t return the cookie. With Rails 2.2.2, I…

---

## [Find\_by\_sql and xml\_serializer problems](https://www.ruby-forum.com/t/find-by-sql-and-xml-serializer-problems/147050)

<div class="topic-metadata">

**Author:** [@cinderedmonkey](https://www.ruby-forum.com/u/cinderedmonkey)\
**Replies:** 11\
**Last updated:** [March 20, 2009, 9:56am UTC](https://www.ruby-forum.com/t/find-by-sql-and-xml-serializer-problems/147050 "2009-03-20T09:56:51Z")

</div>

Hi, I’m doing a find\_by\_sql and am getting an odd error when trying to render the result to xml. The find is: children\_list = find\_by\_sql(“SELECT components.componentid, components.logicalname, versions.level, versi…

---

## [New page in Export Word (.doc)](https://www.ruby-forum.com/t/new-page-in-export-word-doc/163420)

<div class="topic-metadata">

**Author:** [@vasan\_cec](https://www.ruby-forum.com/u/vasan_cec)\
**Replies:** 1\
**Last updated:** [March 20, 2009, 8:47am UTC](https://www.ruby-forum.com/t/new-page-in-export-word-doc/163420 "2009-03-20T08:47:05Z")

</div>

Hello Everyone, I have nearly 13 reports in my application, the user can select whichever report(s) he wants to view/export to DOC file. So whenever the user selects more than 1 report, I am supposed to give a page-b…

---

## [Factory Girl Associations Issue with Uniqueness Validations](https://www.ruby-forum.com/t/factory-girl-associations-issue-with-uniqueness-validations/162888)

<div class="topic-metadata">

**Author:** [@redii](https://www.ruby-forum.com/u/redii)\
**Replies:** 2\
**Last updated:** [March 20, 2009, 8:25am UTC](https://www.ruby-forum.com/t/factory-girl-associations-issue-with-uniqueness-validations/162888 "2009-03-20T08:25:04Z")

</div>

Greetings, Does anybody have a workaround/solution for Factory Girl’s insistence on creating a new record for each association it creates? As far as I can tell, this makes using Factory Girl unusable when you have un…

---

## [Settings for CDN, GZip, Header Expires for BEtter Yslow](https://www.ruby-forum.com/t/settings-for-cdn-gzip-header-expires-for-better-yslow/163320)

<div class="topic-metadata">

**Author:** [@ankitparekh](https://www.ruby-forum.com/u/ankitparekh)\
**Replies:** 3\
**Last updated:** [March 20, 2009, 8:09am UTC](https://www.ruby-forum.com/t/settings-for-cdn-gzip-header-expires-for-better-yslow/163320 "2009-03-20T08:09:35Z")

</div>

Hi On my website i m getting B Grade with 87 points. Now i want to make it A and there is a scope to do that. I have added Google Analytics code which is y my gzip component and header expire grade goes to B from A. …

---

## [How to pass javascript variable value to a Session Variable in javascript](https://www.ruby-forum.com/t/how-to-pass-javascript-variable-value-to-a-session-variable-in-javascript/163344)

<div class="topic-metadata">

**Author:** [@Shripad](https://www.ruby-forum.com/u/Shripad)\
**Replies:** 3\
**Last updated:** [March 20, 2009, 7:44am UTC](https://www.ruby-forum.com/t/how-to-pass-javascript-variable-value-to-a-session-variable-in-javascript/163344 "2009-03-20T07:44:42Z")

</div>

Hi all, Can any one tell me, how can I Pass a javascript variable value to a ROR session variale in javascript. Please help me out Thanks, Shripad

---

## [Getting Started](https://www.ruby-forum.com/t/getting-started/163421)

<div class="topic-metadata">

**Author:** [@elegant](https://www.ruby-forum.com/u/elegant)\
**Replies:** 1\
**Last updated:** [March 20, 2009, 7:18am UTC](https://www.ruby-forum.com/t/getting-started/163421 "2009-03-20T07:18:58Z")

</div>

Experienced developer here just attacking Ruby on Rails. So, I bought myself a book (Beginning Ruby on Rails - Holzner) and proceeded to follow the tutorial for the first project. I start up Webrick which seems to b…

---

## [Extracting just the text of an ActionMailer receive e-mail](https://www.ruby-forum.com/t/extracting-just-the-text-of-an-actionmailer-receive-e-mail/163265)

<div class="topic-metadata">

**Author:** [@david](https://www.ruby-forum.com/u/david)\
**Replies:** 4\
**Last updated:** [March 20, 2009, 3:44am UTC](https://www.ruby-forum.com/t/extracting-just-the-text-of-an-actionmailer-receive-e-mail/163265 "2009-03-20T03:44:55Z")

</div>

Unfortunately my Googling skills have failed me. I’m looking for something that will help me quickly parse through the body of a message received by my ActionMailer based code. Here’s the issue: If someone sends an e-…

---

## [Would Ruby on Rails consider including the followign Ruby project: Debugger for Ruby 1.9?](https://www.ruby-forum.com/t/would-ruby-on-rails-consider-including-the-followign-ruby-project-debugger-for-ruby-1-9/163413)

<div class="topic-metadata">

**Author:** [@rocky](https://www.ruby-forum.com/u/rocky)\
**Replies:** 1\
**Last updated:** [March 20, 2009, 3:41am UTC](https://www.ruby-forum.com/t/would-ruby-on-rails-consider-including-the-followign-ruby-project-debugger-for-ruby-1-9/163413 "2009-03-20T03:41:23Z")

</div>

Hi - I notice in the list of mentoring organizations for Google Summer of Code 2009 there is no organization representing Ruby. Last year, I had a student who was interested in debugging support in Ruby 1.9 but due t…

---

## [What does the find method return](https://www.ruby-forum.com/t/what-does-the-find-method-return/163376)

<div class="topic-metadata">

**Author:** [@farfignugen](https://www.ruby-forum.com/u/farfignugen)\
**Replies:** 2\
**Last updated:** [March 20, 2009, 2:32am UTC](https://www.ruby-forum.com/t/what-does-the-find-method-return/163376 "2009-03-20T02:32:54Z")

</div>

does it return an array or a hash and can someone give me an example?

---

## [Using functionality in /lib in initializers](https://www.ruby-forum.com/t/using-functionality-in-lib-in-initializers/163399)

<div class="topic-metadata">

**Author:** [@tekwiz](https://www.ruby-forum.com/u/tekwiz)\
**Replies:** 2\
**Last updated:** [March 20, 2009, 1:40am UTC](https://www.ruby-forum.com/t/using-functionality-in-lib-in-initializers/163399 "2009-03-20T01:40:51Z")

</div>

I need to use some functionality that I’ve added to the Hash class in an initializer. I’ve written the functionality into /lib/hash.rb; however, rails apparently loads the files in /lib after the initializers as the …

---

## [Restful\_authentication issues in production](https://www.ruby-forum.com/t/restful-authentication-issues-in-production/161734)

<div class="topic-metadata">

**Author:** [@gaveeno](https://www.ruby-forum.com/u/gaveeno)\
**Replies:** 4\
**Last updated:** [March 20, 2009, 1:25am UTC](https://www.ruby-forum.com/t/restful-authentication-issues-in-production/161734 "2009-03-20T01:25:39Z")

</div>

I’m not sure what’s going on here, but password resets with restful\_authentication aren’t working in production. However, they are working in development and staging. The request to the passwords controller’s create …

---

## [How can I validate a text\_field\_tag?](https://www.ruby-forum.com/t/how-can-i-validate-a-text-field-tag/163144)

<div class="topic-metadata">

**Author:** [@cojones](https://www.ruby-forum.com/u/cojones)\
**Replies:** 9\
**Last updated:** [March 20, 2009, 1:22am UTC](https://www.ruby-forum.com/t/how-can-i-validate-a-text-field-tag/163144 "2009-03-20T01:22:43Z")

</div>

Hey people, I was wondering whether it’s possible to validate a text\_field\_tag which has nothing to do with the actual object being created? Thanks

---

## [Rails Version](https://www.ruby-forum.com/t/rails-version/163317)

<div class="topic-metadata">

**Author:** [@NARAYANAN\_CJ](https://www.ruby-forum.com/u/NARAYANAN_CJ)\
**Replies:** 4\
**Last updated:** [March 20, 2009, 12:05am UTC](https://www.ruby-forum.com/t/rails-version/163317 "2009-03-20T00:05:30Z")

</div>

hi there, Can i have two version of rails 2.2.2 and 1.2.3 on the same executable location. Is that possible regards, Narayanan.cj.

---

## [Is there a way to run a obj.each loop in the script/console?](https://www.ruby-forum.com/t/is-there-a-way-to-run-a-obj-each-loop-in-the-script-console/163386)

<div class="topic-metadata">

**Author:** [@farfignugen](https://www.ruby-forum.com/u/farfignugen)\
**Replies:** 3\
**Last updated:** [March 19, 2009, 11:26pm UTC](https://www.ruby-forum.com/t/is-there-a-way-to-run-a-obj-each-loop-in-the-script-console/163386 "2009-03-19T23:26:53Z")

</div>

is there a way to run a obj.each loop in the script/console?

---

## [Launch many daemons from script/xxx](https://www.ruby-forum.com/t/launch-many-daemons-from-script-xxx/159265)

<div class="topic-metadata">

**Author:** [@joserwan](https://www.ruby-forum.com/u/joserwan)\
**Replies:** 1\
**Last updated:** [March 19, 2009, 11:24pm UTC](https://www.ruby-forum.com/t/launch-many-daemons-from-script-xxx/159265 "2009-03-19T23:24:32Z")

</div>

Hello, I try to launch many daemons from a script written in the script/repository. One daemon is launched per site (AR model “Site”). I want to load Rails environment just once. Each time a daemon is launched, scrip…

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

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