# Rails

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

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

---

## [Email client](https://www.ruby-forum.com/t/email-client/172963)

<div class="topic-metadata">

**Author:** [@simonsaid](https://www.ruby-forum.com/u/simonsaid)\
**Replies:** 0\
**Last updated:** [July 30, 2009, 4:18pm UTC](https://www.ruby-forum.com/t/email-client/172963 "2009-07-30T16:18:56Z")

</div>

I have setup a mail server on my server that uses IMAP/POP3 with virtual users with MySQL. I’m trying to find a very basic ruby/flex email client to work with this setup. I’m using Flex on Rails. I’m not too sure how …

---

## [How can I change member action names on routes?](https://www.ruby-forum.com/t/how-can-i-change-member-action-names-on-routes/172955)

<div class="topic-metadata">

**Author:** [@captaffy](https://www.ruby-forum.com/u/captaffy)\
**Replies:** 6\
**Last updated:** [July 30, 2009, 3:53pm UTC](https://www.ruby-forum.com/t/how-can-i-change-member-action-names-on-routes/172955 "2009-07-30T15:53:41Z")

</div>

I have some controllers with member/collection actions. I want to change the name of those actions on the routes, so I can translate the action “/search” to German, for example. How can I do it? I will appreciate any …

---

## [How to print data with out rendring page?](https://www.ruby-forum.com/t/how-to-print-data-with-out-rendring-page/172960)

<div class="topic-metadata">

**Author:** [@vikas](https://www.ruby-forum.com/u/vikas)\
**Replies:** 0\
**Last updated:** [July 30, 2009, 3:51pm UTC](https://www.ruby-forum.com/t/how-to-print-data-with-out-rendring-page/172960 "2009-07-30T15:51:08Z")

</div>

Hi all, I have following code in haml form that print current webpage I call this page from another page like user profile page like =link\_to ‘Print’, print\_user\_path(@user) this calls “print.html.haml” print.html.…

---

## [How to use yaml files in the view](https://www.ruby-forum.com/t/how-to-use-yaml-files-in-the-view/172957)

<div class="topic-metadata">

**Author:** [@Lakshmi\_N](https://www.ruby-forum.com/u/Lakshmi_N)\
**Replies:** 0\
**Last updated:** [July 30, 2009, 3:25pm UTC](https://www.ruby-forum.com/t/how-to-use-yaml-files-in-the-view/172957 "2009-07-30T15:25:04Z")

</div>

hi all, I am having a client request in this way… there will be a wizard in which a set of questions comes in each stage… but these questions come from yaml file, where the client should be frequently making changes… …

---

## [Problems with Redbox](https://www.ruby-forum.com/t/problems-with-redbox/172953)

<div class="topic-metadata">

**Author:** [@rafaelrosafu](https://www.ruby-forum.com/u/rafaelrosafu)\
**Replies:** 0\
**Last updated:** [July 30, 2009, 2:58pm UTC](https://www.ruby-forum.com/t/problems-with-redbox/172953 "2009-07-30T14:58:47Z")

</div>

Hi all, When I save a record IÂ´m trying to display a success message in a popup window using Redbox.However,what is happening is that the record is saved but the redbox popup stays in a loading screen ad eternum.What …

---

## [Download file located outside rails aaplication folder](https://www.ruby-forum.com/t/download-file-located-outside-rails-aaplication-folder/172890)

<div class="topic-metadata">

**Author:** [@dhaval\_parikh33](https://www.ruby-forum.com/u/dhaval_parikh33)\
**Replies:** 3\
**Last updated:** [July 30, 2009, 2:21pm UTC](https://www.ruby-forum.com/t/download-file-located-outside-rails-aaplication-folder/172890 "2009-07-30T14:21:40Z")

</div>

hi, how can i access/download a file located somewhere else outside rails application folder? suppose, file is in /tmp/ or /home/some\_folder/ on linux, then what should be the path given for send\_file? -DPP

---

## [What is the best way for a board game?](https://www.ruby-forum.com/t/what-is-the-best-way-for-a-board-game/172950)

<div class="topic-metadata">

**Author:** [@cedric\_salaun](https://www.ruby-forum.com/u/cedric_salaun)\
**Replies:** 0\
**Last updated:** [July 30, 2009, 2:18pm UTC](https://www.ruby-forum.com/t/what-is-the-best-way-for-a-board-game/172950 "2009-07-30T14:18:55Z")

</div>

Hello, I want a simple tool for draw a board on a web page, what thing i need to do that whith Ror ? For exemple I want draw a map (20x20) and allow click, and ajax move on the map… like a lot of mmorpg game. Thx in…

---

## [\>= option in config.gem](https://www.ruby-forum.com/t/option-in-config-gem/172945)

<div class="topic-metadata">

**Author:** [@sijo](https://www.ruby-forum.com/u/sijo)\
**Replies:** 1\
**Last updated:** [July 30, 2009, 1:36pm UTC](https://www.ruby-forum.com/t/option-in-config-gem/172945 "2009-07-30T13:36:11Z")

</div>

Hi config.gem ‘gemname’, :version =\> ‘\>= 1.2.1’ Could anybody please tell what this actually means? Suppose I have in my machine version 1.2.1 and 1.2.2 of the gem What expected is it uses 1.2.1 But what happened i…

---

## [Attachment\_fu + :path\_prefix](https://www.ruby-forum.com/t/attachment-fu-path-prefix/172936)

<div class="topic-metadata">

**Author:** [@Abhishek\_shukla](https://www.ruby-forum.com/u/Abhishek_shukla)\
**Replies:** 4\
**Last updated:** [July 30, 2009, 1:04pm UTC](https://www.ruby-forum.com/t/attachment-fu-path-prefix/172936 "2009-07-30T13:04:48Z")

</div>

Hello friends, I have a query like I am using a attchment\_fu to store images. But the i don’t want to store to the default path let say :path\_prefix =\> ‘public/uploads’ i want a dyname path for e.g :path\_prefix =\> ‘p…

---

## [Problem with RJS](https://www.ruby-forum.com/t/problem-with-rjs/172943)

<div class="topic-metadata">

**Author:** [@shakor](https://www.ruby-forum.com/u/shakor)\
**Replies:** 1\
**Last updated:** [July 30, 2009, 12:40pm UTC](https://www.ruby-forum.com/t/problem-with-rjs/172943 "2009-07-30T12:40:36Z")

</div>

Hi, I am trying to do a rails application that uses google map to allow users to specify longitude and latitude and then the google map should be updated to show that location which was specified. I am using observe\_…

---

## [Functional Test Failing](https://www.ruby-forum.com/t/functional-test-failing/172875)

<div class="topic-metadata">

**Author:** [@shusseina](https://www.ruby-forum.com/u/shusseina)\
**Replies:** 7\
**Last updated:** [July 30, 2009, 8:47am UTC](https://www.ruby-forum.com/t/functional-test-failing/172875 "2009-07-30T08:47:54Z")

</div>

I am a Ruby/Rails newby, currently reading “Simply Rails 2” by Patrick Lenz. I am up to the section on functional testing (of the controller). The first functional test tests the index action of the controller. Unli…

---

## [Asociation problems](https://www.ruby-forum.com/t/asociation-problems/172877)

<div class="topic-metadata">

**Author:** [@rubystudent](https://www.ruby-forum.com/u/rubystudent)\
**Replies:** 9\
**Last updated:** [July 30, 2009, 7:37am UTC](https://www.ruby-forum.com/t/asociation-problems/172877 "2009-07-30T07:37:30Z")

</div>

Hi, I’m trying to develop a simple blog aplication, with no scaffolding help. I create the model post and comment, and stablished the asociations: class Post \< ActiveRecord::Base has\_many :comments validates\_presen…

---

## [Help for collection\_select](https://www.ruby-forum.com/t/help-for-collection-select/172937)

<div class="topic-metadata">

**Author:** [@karthik](https://www.ruby-forum.com/u/karthik)\
**Replies:** 0\
**Last updated:** [July 30, 2009, 7:23am UTC](https://www.ruby-forum.com/t/help-for-collection-select/172937 "2009-07-30T07:23:56Z")

</div>

hi guys I need to have a static data in collection\_select and pass it to backend as id and it should display as value – Karthik.k Mobile - +91-9894991640

---

## [How change :foreign\_key on :through](https://www.ruby-forum.com/t/how-change-foreign-key-on-through/172749)

<div class="topic-metadata">

**Author:** [@hiphapis](https://www.ruby-forum.com/u/hiphapis)\
**Replies:** 3\
**Last updated:** [July 30, 2009, 7:16am UTC](https://www.ruby-forum.com/t/how-change-foreign-key-on-through/172749 "2009-07-30T07:16:54Z")

</div>

Hi Guys. (I’m Asian. so my eng is very poor. sorry!) i want to change :foreign\_key on has\_many :through code is has\_many :following\_members, :class\_name =\> “Follow”, :dependent =\> :destroy has\_many :followings, :fo…

---

## [How can I identify a memory leak? using memorylogic](https://www.ruby-forum.com/t/how-can-i-identify-a-memory-leak-using-memorylogic/170092)

<div class="topic-metadata">

**Author:** [@ram](https://www.ruby-forum.com/u/ram)\
**Replies:** 6\
**Last updated:** [July 30, 2009, 6:55am UTC](https://www.ruby-forum.com/t/how-can-i-identify-a-memory-leak-using-memorylogic/170092 "2009-07-30T06:55:15Z")

</div>

Hi all, I have an ROR application thats been running on the production server for almost a couple of months now. Everything seemed fine but the past few days have caused worry. The whole server slows down drastically …

---

## [\[newbie\] double relationships in database](https://www.ruby-forum.com/t/newbie-double-relationships-in-database/172889)

<div class="topic-metadata">

**Author:** [@jask](https://www.ruby-forum.com/u/jask)\
**Replies:** 5\
**Last updated:** [July 30, 2009, 6:41am UTC](https://www.ruby-forum.com/t/newbie-double-relationships-in-database/172889 "2009-07-30T06:41:47Z")

</div>

I have the following tables teams id :string name :string and matches id: home\_team :team\_id visitor\_team :team\_id how can I reflect that kind of relationship in a RoR model? thanks and keep up the good work.

---

## [Find 'joins'](https://www.ruby-forum.com/t/find-joins/172901)

<div class="topic-metadata">

**Author:** [@craigrails](https://www.ruby-forum.com/u/craigrails)\
**Replies:** 1\
**Last updated:** [July 30, 2009, 5:18am UTC](https://www.ruby-forum.com/t/find-joins/172901 "2009-07-30T05:18:39Z")

</div>

I am very frustrated with :joins in a find. @debts = Debtortranstaxes.find(:all, :conditions =\> \[“trandate \> ? and trandate \<= ?”, @per1, @per2\], :joins =\> ‘LEFT JOIN debtortrans ON debtortrans.id=debtortransid’, :or…

---

## [Good rails hosting in China?](https://www.ruby-forum.com/t/good-rails-hosting-in-china/172932)

<div class="topic-metadata">

**Author:** [@Juan\_Carlos\_Mendez](https://www.ruby-forum.com/u/Juan_Carlos_Mendez)\
**Replies:** 0\
**Last updated:** [July 30, 2009, 5:18am UTC](https://www.ruby-forum.com/t/good-rails-hosting-in-china/172932 "2009-07-30T05:18:04Z")

</div>

Hi all I’m developing an application targeted to Chinese market. Current deployment in Heroku is really slow and I’m looking for a good Rails hosting provider in mainland China. Any ideas? Thanks, Juan C.

---

## [Actionmailer whoes](https://www.ruby-forum.com/t/actionmailer-whoes/172924)

<div class="topic-metadata">

**Author:** [@dandiebolt](https://www.ruby-forum.com/u/dandiebolt)\
**Replies:** 1\
**Last updated:** [July 30, 2009, 2:51am UTC](https://www.ruby-forum.com/t/actionmailer-whoes/172924 "2009-07-30T02:51:42Z")

</div>

Im pulling some emails off of a server, parsing them with TMail and looping through them in the view and displaying them. My problem is that I want to display the html emails I have but when I put them on the page th…

---

## [RobustThread, Postfix, TMail, & Rails app small question](https://www.ruby-forum.com/t/robustthread-postfix-tmail-rails-app-small-question/172853)

<div class="topic-metadata">

**Author:** [@nateleavitt](https://www.ruby-forum.com/u/nateleavitt)\
**Replies:** 4\
**Last updated:** [July 30, 2009, 2:05am UTC](https://www.ruby-forum.com/t/robustthread-postfix-tmail-rails-app-small-question/172853 "2009-07-30T02:05:28Z")

</div>

I’m using Postfix to receive email then having it dump the emails to a Maildir. From there I have a ruby daemon using RobustThread which runs every 30 seconds to process the emails using Tmail. Everything is working…

---

## [Redirect to\_back](https://www.ruby-forum.com/t/redirect-to-back/172920)

<div class="topic-metadata">

**Author:** [@craigrails](https://www.ruby-forum.com/u/craigrails)\
**Replies:** 3\
**Last updated:** [July 30, 2009, 1:09am UTC](https://www.ruby-forum.com/t/redirect-to-back/172920 "2009-07-30T01:09:16Z")

</div>

I am seeing some more differences between 1.2.x and 2.3.2 and they just baffle me. def some\_method if params\[:report\]\[:salesmancode\].to\_s == ‘’ || ! params\[:report\]\[:periodno\] flash\[:message\] = “You forgot to select…

---

## [Problem with polymorphic nested attributes](https://www.ruby-forum.com/t/problem-with-polymorphic-nested-attributes/172841)

<div class="topic-metadata">

**Author:** [@aldoitalo](https://www.ruby-forum.com/u/aldoitalo)\
**Replies:** 6\
**Last updated:** [July 30, 2009, 12:09am UTC](https://www.ruby-forum.com/t/problem-with-polymorphic-nested-attributes/172841 "2009-07-30T00:09:21Z")

</div>

hi, i i have a model (Page) and i want to put their multilanguage text with a polimorphic association model (Lang), because i want to use in future this model for containing others modules text (example: Category, Not…

---

## [How to for Ruby 1.9.1 + Mysql and Rails on Ubuntu 9.0.4](https://www.ruby-forum.com/t/how-to-for-ruby-1-9-1-mysql-and-rails-on-ubuntu-9-0-4/172918)

<div class="topic-metadata">

**Author:** [@Felipe\_Rodrigues](https://www.ruby-forum.com/u/Felipe_Rodrigues)\
**Replies:** 0\
**Last updated:** [July 29, 2009, 11:44pm UTC](https://www.ruby-forum.com/t/how-to-for-ruby-1-9-1-mysql-and-rails-on-ubuntu-9-0-4/172918 "2009-07-29T23:44:23Z")

</div>

Hi all, I’ve posted a how to to install Ruby 1.9.1 + Mysql and Rails on Ubuntu 9.0.4 The steps are also adaptable for other plataforms. Check it here: http://felipero.posterous.com/ruby-191-mysql-and-rails-on-ubuntu…

---

## [Complex Finds -- find\_by\_sql?](https://www.ruby-forum.com/t/complex-finds-find-by-sql/172916)

<div class="topic-metadata">

**Author:** [@josh](https://www.ruby-forum.com/u/josh)\
**Replies:** 1\
**Last updated:** [July 29, 2009, 11:41pm UTC](https://www.ruby-forum.com/t/complex-finds-find-by-sql/172916 "2009-07-29T23:41:28Z")

</div>

I have been working with an ever scope creeping application which requires very deeply nested database relations find/select statements. I’ve taken in more than a few cases (where optimization is needed) to using find…

---

## [Installed gems](https://www.ruby-forum.com/t/installed-gems/172911)

<div class="topic-metadata">

**Author:** [@jmail137](https://www.ruby-forum.com/u/jmail137)\
**Replies:** 1\
**Last updated:** [July 29, 2009, 11:20pm UTC](https://www.ruby-forum.com/t/installed-gems/172911 "2009-07-29T23:20:46Z")

</div>

where do installed Gems reside in the instant Rails folder tree? I noticed that so far each time I have run into an error such as: “Gem::LoadError: Could not find RubyGem mocha (\>= 0)” I am required to go to the Ruby …

---

## [Has\_many :through](https://www.ruby-forum.com/t/has-many-through/172855)

<div class="topic-metadata">

**Author:** [@uddun](https://www.ruby-forum.com/u/uddun)\
**Replies:** 2\
**Last updated:** [July 29, 2009, 10:20pm UTC](https://www.ruby-forum.com/t/has-many-through/172855 "2009-07-29T22:20:04Z")

</div>

I want to have the following relationships set up and, for the life of me, I can’t get the bloody things to work: class Company \< ActiveRecord::Base has\_many :clients, :class\_name =\> ‘Company’ has\_many :suppliers, :c…

---

## [Blog App](https://www.ruby-forum.com/t/blog-app/172908)

<div class="topic-metadata">

**Author:** [@mekdigital](https://www.ruby-forum.com/u/mekdigital)\
**Replies:** 0\
**Last updated:** [July 29, 2009, 9:25pm UTC](https://www.ruby-forum.com/t/blog-app/172908 "2009-07-29T21:25:38Z")

</div>

Hey ALL! I just quickly mocked up a multi user blog application as a Rails demo/exercise and I would like to keep it alive… It’s really really basic, but it could be fun! Anybody interested? =) – Emanuele T. +1…

---

## [Save userform data in database](https://www.ruby-forum.com/t/save-userform-data-in-database/172897)

<div class="topic-metadata">

**Author:** [@remco](https://www.ruby-forum.com/u/remco)\
**Replies:** 3\
**Last updated:** [July 29, 2009, 8:50pm UTC](https://www.ruby-forum.com/t/save-userform-data-in-database/172897 "2009-07-29T20:50:31Z")

</div>

Hi, I have a form like this. \<% form\_for(@search) do |f| %\> \<%= f.error\_messages %\> \<%= f.label :country %\> \<%= f.text\_field :country %\> \<%= f.label :city %\> \<%= f.text\_field :city %\> …

---

## [Forms and selects](https://www.ruby-forum.com/t/forms-and-selects/172905)

<div class="topic-metadata">

**Author:** [@blueomega](https://www.ruby-forum.com/u/blueomega)\
**Replies:** 0\
**Last updated:** [July 29, 2009, 8:07pm UTC](https://www.ruby-forum.com/t/forms-and-selects/172905 "2009-07-29T20:07:13Z")

</div>

So i want to view only one student booklet, who i define by using a combo box (select). It only do reads, no writes \<% form\_for :student\_booklet, :url =\> student\_booklet\_path do |f| %\> \<%= f.select( :student\_booklet, @…

---

## [Problem uploading file to database mysql blob field](https://www.ruby-forum.com/t/problem-uploading-file-to-database-mysql-blob-field/172906)

<div class="topic-metadata">

**Author:** [@sagarwal1981](https://www.ruby-forum.com/u/sagarwal1981)\
**Replies:** 0\
**Last updated:** [July 29, 2009, 7:53pm UTC](https://www.ruby-forum.com/t/problem-uploading-file-to-database-mysql-blob-field/172906 "2009-07-29T19:53:57Z")

</div>

Hi All, Please help me ,I need to look into this issue asap, I need to change the redmine functionality of uploading files to disk to upload them to database. I tried suggestion on http://dizzy.co.uk/ruby\_on\_rails/co…

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

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