# Rails

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

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

---

## [Re: How to send SMTP emails in background](https://www.ruby-forum.com/t/re-how-to-send-smtp-emails-in-background/131977)

<div class="topic-metadata">

**Author:** [@Tyler\_MacDonald](https://www.ruby-forum.com/u/Tyler_MacDonald)\
**Replies:** 0\
**Last updated:** [March 14, 2008, 8:47pm UTC](https://www.ruby-forum.com/t/re-how-to-send-smtp-emails-in-background/131977 "2008-03-14T20:47:50Z")

</div>

John, If you are on a linux system, pipe the email to sendmail instead. It will take care of the queueing, etc for you and will send it by SMTP itself, instead of your module having to rely on an SMTP connection. It …

---

## [Link\_to problem in RoR 2.0](https://www.ruby-forum.com/t/link-to-problem-in-ror-2-0/131944)

<div class="topic-metadata">

**Author:** [@newrubygirl](https://www.ruby-forum.com/u/newrubygirl)\
**Replies:** 8\
**Last updated:** [March 14, 2008, 8:06pm UTC](https://www.ruby-forum.com/t/link-to-problem-in-ror-2-0/131944 "2008-03-14T20:06:02Z")

</div>

Hello. I’ve got code from pre RoR 2.0 that is simply a link that a user clicks on to go to a search form and it works great. \<%= link\_to\_unless\_current “Search by Name”, :action =\> “search\_by\_name” -%\> But in the 2.…

---

## [How do you copy a fileds content to newly added field?](https://www.ruby-forum.com/t/how-do-you-copy-a-fileds-content-to-newly-added-field/131902)

<div class="topic-metadata">

**Author:** [@erwinquita](https://www.ruby-forum.com/u/erwinquita)\
**Replies:** 6\
**Last updated:** [March 14, 2008, 7:24pm UTC](https://www.ruby-forum.com/t/how-do-you-copy-a-fileds-content-to-newly-added-field/131902 "2008-03-14T19:24:06Z")

</div>

Hi All, I’ve just finished extracting and saving all the info from my database and I need to copy the contents from “description” field to the newly created fields “meta\_description” and “meta\_keywords” How do you do …

---

## [Plugins with view helpers - how to name?](https://www.ruby-forum.com/t/plugins-with-view-helpers-how-to-name/131954)

<div class="topic-metadata">

**Author:** [@goodieboy](https://www.ruby-forum.com/u/goodieboy)\
**Replies:** 0\
**Last updated:** [March 14, 2008, 6:33pm UTC](https://www.ruby-forum.com/t/plugins-with-view-helpers-how-to-name/131954 "2008-03-14T18:33:03Z")

</div>

Hi, I’ve created a plug-in, that has quite a few helper methods. A lot of the method names are pretty generic; document\_index\_view, document\_resource\_path. I’m wondering if I should put a prefix before the name of al…

---

## [Ubuntu & Rails, can't get it to work](https://www.ruby-forum.com/t/ubuntu-rails-cant-get-it-to-work/86300)

<div class="topic-metadata">

**Author:** [@bartz](https://www.ruby-forum.com/u/bartz)\
**Replies:** 11\
**Last updated:** [March 14, 2008, 5:55pm UTC](https://www.ruby-forum.com/t/ubuntu-rails-cant-get-it-to-work/86300 "2008-03-14T17:55:53Z")

</div>

Hey list While migrating our servers to brand new spanking Ubuntu machines, I installed everything, but can’t get Rails to work. I have the feeling it has to do with Apache2 itself, so hereby my apache config file fo…

---

## [How do i get country\_select and select to show values](https://www.ruby-forum.com/t/how-do-i-get-country-select-and-select-to-show-values/131926)

<div class="topic-metadata">

**Author:** [@jmaenpaa](https://www.ruby-forum.com/u/jmaenpaa)\
**Replies:** 1\
**Last updated:** [March 14, 2008, 5:46pm UTC](https://www.ruby-forum.com/t/how-do-i-get-country-select-and-select-to-show-values/131926 "2008-03-14T17:46:46Z")

</div>

Hi i am a newbee at rails and i am using the country\_select and select drop down boxes in my new.rhtml I can make these work fine but when i try viewing it in my database and show and index they just wont appear, I ha…

---

## [Inference?](https://www.ruby-forum.com/t/inference/131768)

<div class="topic-metadata">

**Author:** [@grayson](https://www.ruby-forum.com/u/grayson)\
**Replies:** 2\
**Last updated:** [March 14, 2008, 5:38pm UTC](https://www.ruby-forum.com/t/inference/131768 "2008-03-14T17:38:10Z")

</div>

I have the typical user, friendship model that does a has\_many :through Self-referential, exactly like this: I have the following data in the friendships table user\_id = 5 friend\_id = 10 User.find(5).friends gives…

---

## [Radio buttons not getting checked](https://www.ruby-forum.com/t/radio-buttons-not-getting-checked/131931)

<div class="topic-metadata">

**Author:** [@Shawn\_B](https://www.ruby-forum.com/u/Shawn_B)\
**Replies:** 2\
**Last updated:** [March 14, 2008, 5:26pm UTC](https://www.ruby-forum.com/t/radio-buttons-not-getting-checked/131931 "2008-03-14T17:26:26Z")

</div>

I have the following code \<%= f.radio\_button “inc\_in\_exp\_sales”, “1” %\>Yes \<%= f.radio\_button “inc\_in\_exp\_sales”, “0” %\>No works fine when adding a new record but when editing, the radio button is not check based on …

---

## [CruiseControl.rb integration with Capistrano](https://www.ruby-forum.com/t/cruisecontrol-rb-integration-with-capistrano/131949)

<div class="topic-metadata">

**Author:** [@lena](https://www.ruby-forum.com/u/lena)\
**Replies:** 0\
**Last updated:** [March 14, 2008, 5:11pm UTC](https://www.ruby-forum.com/t/cruisecontrol-rb-integration-with-capistrano/131949 "2008-03-14T17:11:44Z")

</div>

If I do manually: cd /usr/hbsp/hbr; cap deploy it works fine I want to integrate CruiseControl.rb with Capistrano (which is a plugin for CC). In cruise\_config.rb I’ve got project.post\_build\_action.on\_successful\_bui…

---

## [Mod\_fcgid problems w/ IE?](https://www.ruby-forum.com/t/mod-fcgid-problems-w-ie/131945)

<div class="topic-metadata">

**Author:** [@peterbe](https://www.ruby-forum.com/u/peterbe)\
**Replies:** 0\
**Last updated:** [March 14, 2008, 5:05pm UTC](https://www.ruby-forum.com/t/mod-fcgid-problems-w-ie/131945 "2008-03-14T17:05:07Z")

</div>

I have a RoR application running under Apache2 w/ mod\_fcgid Whenever I submit a large number of database updates asynchronously from IE, I notice that 10-12 fcgi processes (dispatch.fcgi) are spawned. Eventually the …

---

## [Nginx's client\_body tmp directory deleted every so often (causing uploads to fail)](https://www.ruby-forum.com/t/nginxs-client-body-tmp-directory-deleted-every-so-often-causing-uploads-to-fail/130242)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [March 14, 2008, 5:03pm UTC](https://www.ruby-forum.com/t/nginxs-client-body-tmp-directory-deleted-every-so-often-causing-uploads-to-fail/130242 "2008-03-14T17:03:17Z")

</div>

Hello all, I am wondering if anybody else is seeing this happen. I am pretty stumped as to why. Basically, I when I compiled nginx, I told it to use the /tmp/nginx for all tmp directories (client\_body, fastcgi, and p…

---

## [Wiring a dependent update](https://www.ruby-forum.com/t/wiring-a-dependent-update/131848)

<div class="topic-metadata">

**Author:** [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Replies:** 2\
**Last updated:** [March 14, 2008, 4:06pm UTC](https://www.ruby-forum.com/t/wiring-a-dependent-update/131848 "2008-03-14T16:06:50Z")

</div>

Rails 2.0.2 Ruby 1.8.5 SQLite3 CentOS-5.1 models/ Entity entity has\_one client Client client belongs\_to entity validates\_associated view/ clients/new.html.erb New client \<%= error\_messages\_for :client …

---

## [Iterating an array with a hash](https://www.ruby-forum.com/t/iterating-an-array-with-a-hash/131893)

<div class="topic-metadata">

**Author:** [@craigrails](https://www.ruby-forum.com/u/craigrails)\
**Replies:** 2\
**Last updated:** [March 14, 2008, 3:34pm UTC](https://www.ruby-forum.com/t/iterating-an-array-with-a-hash/131893 "2008-03-14T15:34:57Z")

</div>

sorry if this duplicates but I sent it about 5 hours ago and it hasn’t shown up yet… trying to do this in irb/console… @sect = Array.new info = { “outsection” =\> “I/A”, “outtitle” =\> “I” } @sect \<\< info info = { “o…

---

## [Find\_all\_by deprecated?](https://www.ruby-forum.com/t/find-all-by-deprecated/130976)

<div class="topic-metadata">

**Author:** [@ray](https://www.ruby-forum.com/u/ray)\
**Replies:** 6\
**Last updated:** [March 14, 2008, 3:28pm UTC](https://www.ruby-forum.com/t/find-all-by-deprecated/130976 "2008-03-14T15:28:24Z")

</div>

Is find\_all\_by deprecated and/or find\_first\_by for 2.0.2? If not, what is actually deprecated? just find\_all(…) and find\_first()? Thanks for clearing this up.

---

## [Attachment\_fu attributes in db](https://www.ruby-forum.com/t/attachment-fu-attributes-in-db/131909)

<div class="topic-metadata">

**Author:** [@stratboy](https://www.ruby-forum.com/u/stratboy)\
**Replies:** 2\
**Last updated:** [March 14, 2008, 2:43pm UTC](https://www.ruby-forum.com/t/attachment-fu-attributes-in-db/131909 "2008-03-14T14:43:40Z")

</div>

I’m using file\_column for upload images. now,I want to use the plugin attachment\_fu. I have seen that for use it, i must create the attributes like: class CreateMugshots \< ActiveRecord::Migration def self.up create\_…

---

## [Rails function tests not calling setup](https://www.ruby-forum.com/t/rails-function-tests-not-calling-setup/131925)

<div class="topic-metadata">

**Author:** [@vagabond](https://www.ruby-forum.com/u/vagabond)\
**Replies:** 1\
**Last updated:** [March 14, 2008, 2:25pm UTC](https://www.ruby-forum.com/t/rails-function-tests-not-calling-setup/131925 "2008-03-14T14:25:18Z")

</div>

Hi all I have tried Googling this and have not come up with anything specifically helpful. The setup method in my functional tests is not being called at all. I’m using Rails 2.0.2. Has anyone experienced this? Is …

---

## [Ð­Ñ„Ð¸Ñ€Ð½Ñ‹Ðµ Ð¼Ð°ÑÐ»Ð°](https://www.ruby-forum.com/t/d-n-d-n-d-n-d-d-d-n-d-d/131929)

<div class="topic-metadata">

**Author:** [@ShopBody.ru](https://www.ruby-forum.com/u/ShopBody.ru)\
**Replies:** 0\
**Last updated:** [March 14, 2008, 2:17pm UTC](https://www.ruby-forum.com/t/d-n-d-n-d-n-d-d-d-n-d-d/131929 "2008-03-14T14:17:39Z")

</div>

îÁÕÞÎÙÅ ÉÓÓÌÅÄÏ×ÁÎÉÑ ÕÂÅÄÉÔÅÌØÎÏ ÐÏËÁÚÁÌÉ ×ÙÒÁÖÅÎÎÙÊ ÌÅÞÅÂÎÙÊ ÜÆÆÅËÔ ÐÒÉÍÅÎÅÎÉÑ ÜÆÉÒÎÙÈ ÍÁÓÅÌ Õ ËÁÒÄÉÏÌÏÇÉÞÅÓËÉÈ ÂÏÌØÎÙÈ. ôÁËÖÅ ÄÏËÁÚÁÎÁ ×ÙÓÏËÁÑ ÜÆÆÅËÔÉ×ÎÏÓÔØ ÁÒÏÍÁÔÅÒÁÐÉÉ × ÐÒÏÆÉÌÁËÔÉËÅ ÚÁÂÏÌÅ×ÁÎÉÊ ÓÅÒÄÅÞÎÏ- ÓÏÓÕÄÉÓÔ…

---

## [Need urgent help!](https://www.ruby-forum.com/t/need-urgent-help/131921)

<div class="topic-metadata">

**Author:** [@ajay](https://www.ruby-forum.com/u/ajay)\
**Replies:** 2\
**Last updated:** [March 14, 2008, 2:08pm UTC](https://www.ruby-forum.com/t/need-urgent-help/131921 "2008-03-14T14:08:10Z")

</div>

How to load pdf file in browser using rails and how to store it in MySQL database using same?

---

## [Retrieve a capture group in routing?](https://www.ruby-forum.com/t/retrieve-a-capture-group-in-routing/131927)

<div class="topic-metadata">

**Author:** [@thbar](https://www.ruby-forum.com/u/thbar)\
**Replies:** 0\
**Last updated:** [March 14, 2008, 2:01pm UTC](https://www.ruby-forum.com/t/retrieve-a-capture-group-in-routing/131927 "2008-03-14T14:01:35Z")

</div>

Hi, I’m trying to retrieve a capture group from a regular expression for a given route. Here’s the code: map.category ‘:category’, :controller =\> ‘product’, :action =\> ‘list’, :requirements =\> { :category =\> /\[\\w|-\]+…

---

## [Please help... I'm stuck with this link\_to problem](https://www.ruby-forum.com/t/please-help-im-stuck-with-this-link-to-problem/131892)

<div class="topic-metadata">

**Author:** [@adi](https://www.ruby-forum.com/u/adi)\
**Replies:** 6\
**Last updated:** [March 14, 2008, 1:06pm UTC](https://www.ruby-forum.com/t/please-help-im-stuck-with-this-link-to-problem/131892 "2008-03-14T13:06:56Z")

</div>

Hello, Recently i tried to learn developing web using Ruby on Rails… In my learning, i tried to connect 2 different controller which is hospitals\_controller and show\_hospital\_controller. Between those controller i ne…

---

## [Saving many-to-many in script/console](https://www.ruby-forum.com/t/saving-many-to-many-in-script-console/131888)

<div class="topic-metadata">

**Author:** [@vineire77](https://www.ruby-forum.com/u/vineire77)\
**Replies:** 7\
**Last updated:** [March 14, 2008, 12:53pm UTC](https://www.ruby-forum.com/t/saving-many-to-many-in-script-console/131888 "2008-03-14T12:53:56Z")

</div>

I’ve been poking around this site and web and cannot find the error of my ways here. I have a HABTM relationship between models User and Site. I’m trying to create a few users in script/console and not having any luck…

---

## [Do cache sweepers observe the controller and not the model?](https://www.ruby-forum.com/t/do-cache-sweepers-observe-the-controller-and-not-the-model/108885)

<div class="topic-metadata">

**Author:** [@pergesu](https://www.ruby-forum.com/u/pergesu)\
**Replies:** 10\
**Last updated:** [March 14, 2008, 12:15pm UTC](https://www.ruby-forum.com/t/do-cache-sweepers-observe-the-controller-and-not-the-model/108885 "2008-03-14T12:15:27Z")

</div>

I’m (finally) looking into caching, and it seems kind of strange to me. If I cache a page, and then create a sweeper to expire that page, the sweeper appears to “observe” controller actions rather than the model. Fo…

---

## [Timeout::Error while cinfiguring SMTP with Rails](https://www.ruby-forum.com/t/timeout-error-while-cinfiguring-smtp-with-rails/128255)

<div class="topic-metadata">

**Author:** [@envynicky](https://www.ruby-forum.com/u/envynicky)\
**Replies:** 1\
**Last updated:** [March 14, 2008, 10:11am UTC](https://www.ruby-forum.com/t/timeout-error-while-cinfiguring-smtp-with-rails/128255 "2008-03-14T10:11:22Z")

</div>

i have used the “action\_mailer\_optional\_tls” plugin to configure the smtp with rails application. everything seems alright but its rendering timeout error as… Timeout::Error in EmailerController#sendmail execution ex…

---

## [Third party library that runs standalone but not in rails](https://www.ruby-forum.com/t/third-party-library-that-runs-standalone-but-not-in-rails/131868)

<div class="topic-metadata">

**Author:** [@tansaku](https://www.ruby-forum.com/u/tansaku)\
**Replies:** 1\
**Last updated:** [March 14, 2008, 10:10am UTC](https://www.ruby-forum.com/t/third-party-library-that-runs-standalone-but-not-in-rails/131868 "2008-03-14T10:10:11Z")

</div>

Hi, I’ve been having problems getting some things to run in rails that run fine standalone. There’s this cool ruby reporting framework called ruport, which I have running from within rails, but when I try and add su…

---

## [Tail f to an element using ajax](https://www.ruby-forum.com/t/tail-f-to-an-element-using-ajax/131886)

<div class="topic-metadata">

**Author:** [@Dion\_H](https://www.ruby-forum.com/u/Dion_H)\
**Replies:** 4\
**Last updated:** [March 14, 2008, 8:32am UTC](https://www.ruby-forum.com/t/tail-f-to-an-element-using-ajax/131886 "2008-03-14T08:32:37Z")

</div>

hi all, do you think it would be possible to tail -f the production log and update an html element using rjs so that the web page is updated every time the production log is updated? basically I want to see my logs…

---

## [Saving files and permissions](https://www.ruby-forum.com/t/saving-files-and-permissions/131643)

<div class="topic-metadata">

**Author:** [@craigrails](https://www.ruby-forum.com/u/craigrails)\
**Replies:** 10\
**Last updated:** [March 14, 2008, 8:09am UTC](https://www.ruby-forum.com/t/saving-files-and-permissions/131643 "2008-03-14T08:09:00Z")

</div>

having a file saving permissions problem from within a controller… f = File.new("/home/path/to/I-A-files.txt", "w") f.syswrite(output) f.close The error… Errno::EACCES (Permission denied - /home/path/to/I-A-files.txt)…

---

## [\[ANN\] RubyWorks Production Stack 1.2.0, RedHat/CentOS release](https://www.ruby-forum.com/t/ann-rubyworks-production-stack-1-2-0-redhat-centos-release/131899)

<div class="topic-metadata">

**Author:** [@alexeyv](https://www.ruby-forum.com/u/alexeyv)\
**Replies:** 0\
**Last updated:** [March 14, 2008, 7:26am UTC](https://www.ruby-forum.com/t/ann-rubyworks-production-stack-1-2-0-redhat-centos-release/131899 "2008-03-14T07:26:34Z")

</div>

Dear all, I’ve just uploaded to RubyForge RPM repositories for version 1.2.0 of RubyWorks production stack. In a nutshell this is just an upgrade of all third-party components to their current stable versions, and a f…

---

## [Capturing textbox data](https://www.ruby-forum.com/t/capturing-textbox-data/131896)

<div class="topic-metadata">

**Author:** [@subhadip](https://www.ruby-forum.com/u/subhadip)\
**Replies:** 0\
**Last updated:** [March 14, 2008, 6:58am UTC](https://www.ruby-forum.com/t/capturing-textbox-data/131896 "2008-03-14T06:58:21Z")

</div>

I have a textbox, where I will fill user\_id. And then on submission of that, the same page gets loaded passing the value of the textbox. And at last I need to fire some query to show relevant recordset in an HTML tab…

---

## [How do you get flash to store something other than a string?](https://www.ruby-forum.com/t/how-do-you-get-flash-to-store-something-other-than-a-string/131849)

<div class="topic-metadata">

**Author:** [@ron](https://www.ruby-forum.com/u/ron)\
**Replies:** 3\
**Last updated:** [March 14, 2008, 4:27am UTC](https://www.ruby-forum.com/t/how-do-you-get-flash-to-store-something-other-than-a-string/131849 "2008-03-14T04:27:47Z")

</div>

Hi, So I’ve built a page controller that lists pages, with a link to edit the page. When you click the edit button, the edit view lists the page title and the associated articles with that page, using: (in the contr…

---

## [Assert\_routing vs file extensions](https://www.ruby-forum.com/t/assert-routing-vs-file-extensions/131883)

<div class="topic-metadata">

**Author:** [@Phlip](https://www.ruby-forum.com/u/Phlip)\
**Replies:** 1\
**Last updated:** [March 14, 2008, 4:10am UTC](https://www.ruby-forum.com/t/assert-routing-vs-file-extensions/131883 "2008-03-14T04:10:13Z")

</div>

Railsers: Our versions are Rails 1.2.3 on ruby 1.8.6 (2007-09-23 patchlevel 110). routes.rb contains this: map.connect ‘/song/:filename\*extension’, :controller =\> ‘frogs’, :action =\> ‘index’ and our test contains th…

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

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