# Rails

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

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

---

## [Error during installing the Capistrano](https://www.ruby-forum.com/t/error-during-installing-the-capistrano/149831)

<div class="topic-metadata">

**Author:** [@gandhi-tush](https://www.ruby-forum.com/u/gandhi-tush)\
**Replies:** 1\
**Last updated:** [September 30, 2008, 3:21pm UTC](https://www.ruby-forum.com/t/error-during-installing-the-capistrano/149831 "2008-09-30T15:21:08Z")

</div>

Hi, I want to install Capistrano on window machine. I am using command ‘gem install Capistrano’ but it is giving an error:- Install required dependency net-ssh? \[Yn\] Y ERROR: While executing gem … (Zlib::BufError) …

---

## [Number to UTF-conversion question](https://www.ruby-forum.com/t/number-to-utf-conversion-question/149805)

<div class="topic-metadata">

**Author:** [@simon1](https://www.ruby-forum.com/u/simon1)\
**Replies:** 2\
**Last updated:** [September 30, 2008, 3:17pm UTC](https://www.ruby-forum.com/t/number-to-utf-conversion-question/149805 "2008-09-30T15:17:01Z")

</div>

All, Sorry for cross-posting but I am stuck on this thing for a quite some time: I have a variable x = 1046 How can I convert into UTF-8 character? x.chr does not work for it. Basically I need to put x in a string …

---

## [\[JOBS\] Rails Consultant Needed for Project](https://www.ruby-forum.com/t/jobs-rails-consultant-needed-for-project/149847)

<div class="topic-metadata">

**Author:** [@CPerry](https://www.ruby-forum.com/u/CPerry)\
**Replies:** 0\
**Last updated:** [September 30, 2008, 3:02pm UTC](https://www.ruby-forum.com/t/jobs-rails-consultant-needed-for-project/149847 "2008-09-30T15:02:20Z")

</div>

Hey all, I am looking to hire a Rails consultant on an hourly basis to help with planning, configuring, and building a Rails project that I am working on. I am a one man show and I just simply can’t build it fast enou…

---

## [Reliable character encodings conversion](https://www.ruby-forum.com/t/reliable-character-encodings-conversion/196818)

<div class="topic-metadata">

**Author:** [@Hubert\_SSSSSSSSSpic](https://www.ruby-forum.com/u/Hubert_SSSSSSSSSpic)\
**Replies:** 0\
**Last updated:** [September 30, 2008, 2:34pm UTC](https://www.ruby-forum.com/t/reliable-character-encodings-conversion/196818 "2008-09-30T14:34:06Z")

</div>

Hi, I am looking for reliable and error-resistant way to convert character encodings to UTF8. Input encodings vary, and I have quite good input encodings detection in place. I am using Iconv library wrapper to conver…

---

## [Time based expiration for fragment caching](https://www.ruby-forum.com/t/time-based-expiration-for-fragment-caching/149826)

<div class="topic-metadata">

**Author:** [@justus](https://www.ruby-forum.com/u/justus)\
**Replies:** 1\
**Last updated:** [September 30, 2008, 12:59pm UTC](https://www.ruby-forum.com/t/time-based-expiration-for-fragment-caching/149826 "2008-09-30T12:59:14Z")

</div>

Does anybody have any suggestions on how to do this? I have tried all kinds of plugins , googled all over the place but can’t get it to work for 2-3 days now: I use simple fragement caching like this: \<% cache do %\> …

---

## [Are MySQL port and MySQL the same?](https://www.ruby-forum.com/t/are-mysql-port-and-mysql-the-same/149833)

<div class="topic-metadata">

**Author:** [@Hunt\_J](https://www.ruby-forum.com/u/Hunt_J)\
**Replies:** 1\
**Last updated:** [September 30, 2008, 12:23pm UTC](https://www.ruby-forum.com/t/are-mysql-port-and-mysql-the-same/149833 "2008-09-30T12:23:16Z")

</div>

Hi, I have a question. I installed MySQL using MacPorts. sudo port install mysql -server I also noticed there is a gem for MySQL. Are they the same? I’m a totally confused. -J

---

## [Check\_box and rjs](https://www.ruby-forum.com/t/check-box-and-rjs/149825)

<div class="topic-metadata">

**Author:** [@ratcheer](https://www.ruby-forum.com/u/ratcheer)\
**Replies:** 3\
**Last updated:** [September 30, 2008, 11:21am UTC](https://www.ruby-forum.com/t/check-box-and-rjs/149825 "2008-09-30T11:21:12Z")

</div>

Hi, In my view I currently have the following link which show/hides a div \<%= link\_to\_function “Show Hide” do |page| page\[:user\_input\_name\].toggle end %\> Instead of using a link to do the show/hiding I would like to…

---

## [Truncate issue](https://www.ruby-forum.com/t/truncate-issue/149827)

<div class="topic-metadata">

**Author:** [@sunfish](https://www.ruby-forum.com/u/sunfish)\
**Replies:** 0\
**Last updated:** [September 30, 2008, 11:20am UTC](https://www.ruby-forum.com/t/truncate-issue/149827 "2008-09-30T11:20:14Z")

</div>

Hi, In my application i am showing group name in select box while showing i am truncating name using following code \<%=truncate\_html\_strip\_textual\_wrap(group.name,40,28)%\> but for group ‘Friends from office “Neovasol…

---

## [Cannot expire cache from background process?](https://www.ruby-forum.com/t/cannot-expire-cache-from-background-process/149692)

<div class="topic-metadata">

**Author:** [@justus](https://www.ruby-forum.com/u/justus)\
**Replies:** 5\
**Last updated:** [September 30, 2008, 10:37am UTC](https://www.ruby-forum.com/t/cannot-expire-cache-from-background-process/149692 "2008-09-30T10:37:29Z")

</div>

Hello, I am trying to expire fragments (or at least trigger their expiration) from a daemon that’s running in the background. The daemon is updating all kinds of important lists every few minutes from the background. …

---

## [Update an Existing PDF Document](https://www.ruby-forum.com/t/update-an-existing-pdf-document/149824)

<div class="topic-metadata">

**Author:** [@Walter\_Lockhart](https://www.ruby-forum.com/u/Walter_Lockhart)\
**Replies:** 0\
**Last updated:** [September 30, 2008, 9:51am UTC](https://www.ruby-forum.com/t/update-an-existing-pdf-document/149824 "2008-09-30T09:51:10Z")

</div>

Hi Group, would someone please direct me to a Rails GEM | Plugin that would enable me to update an existing PDF document. I am attempting to complete a PDF document (actually a HM Revenue & Customs form) from data in…

---

## [Redundancy in method\_missing](https://www.ruby-forum.com/t/redundancy-in-method-missing/149630)

<div class="topic-metadata">

**Author:** [@ericgoodwin](https://www.ruby-forum.com/u/ericgoodwin)\
**Replies:** 3\
**Last updated:** [September 30, 2008, 9:08am UTC](https://www.ruby-forum.com/t/redundancy-in-method-missing/149630 "2008-09-30T09:08:59Z")

</div>

Looking through the rails core code, I see method\_missing performed like this a lot: def method\_missing(method, \*args) if block\_given? current\_status.send(method, \*args) { |\*block\_args| yield(\*block\_args) } else …

---

## [Rails 2.0 book](https://www.ruby-forum.com/t/rails-2-0-book/149737)

<div class="topic-metadata">

**Author:** [@risknet](https://www.ruby-forum.com/u/risknet)\
**Replies:** 3\
**Last updated:** [September 30, 2008, 7:14am UTC](https://www.ruby-forum.com/t/rails-2-0-book/149737 "2008-09-30T07:14:38Z")

</div>

Can anyone recommend any book for Rails 2.0? I have read “Agile Web D. with Rails - 1st” and i loved this book. I wonder if there is any good guidance for Rails 2.0. Thank you!

---

## [Migration Issues: Can't update newly added column values](https://www.ruby-forum.com/t/migration-issues-cant-update-newly-added-column-values/129053)

<div class="topic-metadata">

**Author:** [@kendall](https://www.ruby-forum.com/u/kendall)\
**Replies:** 4\
**Last updated:** [September 30, 2008, 6:08am UTC](https://www.ruby-forum.com/t/migration-issues-cant-update-newly-added-column-values/129053 "2008-09-30T06:08:45Z")

</div>

Hello everyone, just wondering if anyone can help me with a migrations question here. Using: rails 2.0.2 ruby 1.8.6 (2007-09-24 patchlevel 111) \[i386-mswin\] mysql 5.0.45 Platform: windows xp The problem: I create…

---

## [FTP gem like AWS-S3?](https://www.ruby-forum.com/t/ftp-gem-like-aws-s3/149733)

<div class="topic-metadata">

**Author:** [@ramontayag](https://www.ruby-forum.com/u/ramontayag)\
**Replies:** 2\
**Last updated:** [September 30, 2008, 5:51am UTC](https://www.ruby-forum.com/t/ftp-gem-like-aws-s3/149733 "2008-09-30T05:51:35Z")

</div>

Hey everyone. Is there an FTP gem/plugin that allows you to browse and manipulate an FTP account just like AWS-S3 does with Amazon’s S3 buckets? Thanks, Ramon T.

---

## [Database design question](https://www.ruby-forum.com/t/database-design-question/149777)

<div class="topic-metadata">

**Author:** [@hankster](https://www.ruby-forum.com/u/hankster)\
**Replies:** 4\
**Last updated:** [September 30, 2008, 5:38am UTC](https://www.ruby-forum.com/t/database-design-question/149777 "2008-09-30T05:38:20Z")

</div>

Hi, I’m new to Ruby, having been doing a lot of reading over the last several weeks and just starting to try out a few things. I have a project that I would like to do, but I’m not sure what’s the best way to accompl…

---

## [H() or html\_escape() not escape the single quote... risky?](https://www.ruby-forum.com/t/h-or-html-escape-not-escape-the-single-quote-risky/149667)

<div class="topic-metadata">

**Author:** [@winterheat](https://www.ruby-forum.com/u/winterheat)\
**Replies:** 4\
**Last updated:** [September 30, 2008, 4:51am UTC](https://www.ruby-forum.com/t/h-or-html-escape-not-escape-the-single-quote-risky/149667 "2008-09-30T04:51:21Z")

</div>

so h() is an alias for html\_escape() and they convert the following 4 characters \< \> & " into \< \> & " the single quote is not converted… I just wonder sometimes we happen to write code such as and it …

---

## [Unit test](https://www.ruby-forum.com/t/unit-test/149766)

<div class="topic-metadata">

**Author:** [@srijith](https://www.ruby-forum.com/u/srijith)\
**Replies:** 1\
**Last updated:** [September 30, 2008, 4:43am UTC](https://www.ruby-forum.com/t/unit-test/149766 "2008-09-30T04:43:46Z")

</div>

Hi is it possible to write unit testing for database independent application. if its possible then any one can help how to write unit test to check whether the text field value is blank(keep in mind no database) or n…

---

## [Custom method in model to return an object](https://www.ruby-forum.com/t/custom-method-in-model-to-return-an-object/149792)

<div class="topic-metadata">

**Author:** [@silviu.postavaru](https://www.ruby-forum.com/u/silviu.postavaru)\
**Replies:** 1\
**Last updated:** [September 30, 2008, 4:16am UTC](https://www.ruby-forum.com/t/custom-method-in-model-to-return-an-object/149792 "2008-09-30T04:16:16Z")

</div>

Hi! I am new to rails(and ruby) and I have a C background, and I would like some help. In the database I have a field named ‘body’ that has an XML in it. The method I created in the model looks like this: def self.ge…

---

## [Runner task cannot find a gem](https://www.ruby-forum.com/t/runner-task-cannot-find-a-gem/149787)

<div class="topic-metadata">

**Author:** [@dino\_d](https://www.ruby-forum.com/u/dino_d)\
**Replies:** 1\
**Last updated:** [September 30, 2008, 2:56am UTC](https://www.ruby-forum.com/t/runner-task-cannot-find-a-gem/149787 "2008-09-30T02:56:00Z")

</div>

Hi - I have a cron job that won’t work. I have installed a gem which works fine in the app, but the cron job fails, saying: These gems that this application depends on are missing: blackbook Run “rake gems:install…

---

## [Has/Belongs Relationships for Address Book](https://www.ruby-forum.com/t/has-belongs-relationships-for-address-book/149663)

<div class="topic-metadata">

**Author:** [@jason](https://www.ruby-forum.com/u/jason)\
**Replies:** 4\
**Last updated:** [September 30, 2008, 2:32am UTC](https://www.ruby-forum.com/t/has-belongs-relationships-for-address-book/149663 "2008-09-30T02:32:37Z")

</div>

I am new to RoR, so I will apologize in advance. However, I am creating an mapping system with the Google API. So I have a model called Routes and a model called Locations. These are related in the fact that Routes ha…

---

## [Hpricot and regexp parsing help needed please](https://www.ruby-forum.com/t/hpricot-and-regexp-parsing-help-needed-please/149791)

<div class="topic-metadata">

**Author:** [@newrubygirl](https://www.ruby-forum.com/u/newrubygirl)\
**Replies:** 4\
**Last updated:** [September 30, 2008, 1:40am UTC](https://www.ruby-forum.com/t/hpricot-and-regexp-parsing-help-needed-please/149791 "2008-09-30T01:40:53Z")

</div>

Hello. I’m using hpricot for the first time on a project. I need to get some url’s from a web site, but I only want certain url’s. I can grab all of the url’s from the page without a problem, but how can I enhance t…

---

## [Deploy rails app on rackspace server fcgi problem](https://www.ruby-forum.com/t/deploy-rails-app-on-rackspace-server-fcgi-problem/149806)

<div class="topic-metadata">

**Author:** [@llebron](https://www.ruby-forum.com/u/llebron)\
**Replies:** 0\
**Last updated:** [September 30, 2008, 1:22am UTC](https://www.ruby-forum.com/t/deploy-rails-app-on-rackspace-server-fcgi-problem/149806 "2008-09-30T01:22:26Z")

</div>

I need some help with mod rewrite. I’m trying to setup a Rails application to use fcgi on a rackspace server. Tech support provided me with the following .htaccess .htacess RewriteEngine On RewriteRule ^$ /public/in…

---

## [Unicode number to UTF-8 character](https://www.ruby-forum.com/t/unicode-number-to-utf-8-character/149804)

<div class="topic-metadata">

**Author:** [@simon1](https://www.ruby-forum.com/u/simon1)\
**Replies:** 0\
**Last updated:** [September 30, 2008, 12:54am UTC](https://www.ruby-forum.com/t/unicode-number-to-utf-8-character/149804 "2008-09-30T00:54:54Z")

</div>

All, Say if I have a hex number 041C, how can I convert it into UTF-8 in rails. Regards, newB

---

## [After-destroy + counter\_cache concurrency issues; seeking feedback on potential solution](https://www.ruby-forum.com/t/after-destroy-counter-cache-concurrency-issues-seeking-feedback-on-potential-solution/140624)

<div class="topic-metadata">

**Author:** [@michael](https://www.ruby-forum.com/u/michael)\
**Replies:** 4\
**Last updated:** [September 30, 2008, 12:16am UTC](https://www.ruby-forum.com/t/after-destroy-counter-cache-concurrency-issues-seeking-feedback-on-potential-solution/140624 "2008-09-30T00:16:38Z")

</div>

We’ve run across the following concurrency issue with after-destroy: We have an Post model that has\_many Recommendations and uses a counter\_cache: class Post \< ActiveRecord::Base has\_many :recommendations, :counter\_c…

---

## [RJS is not loaded](https://www.ruby-forum.com/t/rjs-is-not-loaded/149796)

<div class="topic-metadata">

**Author:** [@mcrj45](https://www.ruby-forum.com/u/mcrj45)\
**Replies:** 4\
**Last updated:** [September 29, 2008, 11:45pm UTC](https://www.ruby-forum.com/t/rjs-is-not-loaded/149796 "2008-09-29T23:45:15Z")

</div>

Hello, I have here an issue which is really critical for me (it for my university work and I would like to not delete this feature). It based on a Rails 1.x tutorial which I use now under Rails 2.x. It contains the r…

---

## [File\_Columns with rails 2.02](https://www.ruby-forum.com/t/file-columns-with-rails-2-02/149797)

<div class="topic-metadata">

**Author:** [@larand](https://www.ruby-forum.com/u/larand)\
**Replies:** 0\
**Last updated:** [September 29, 2008, 10:50pm UTC](https://www.ruby-forum.com/t/file-columns-with-rails-2-02/149797 "2008-09-29T22:50:42Z")

</div>

I’ve allmost all examples you can find on the web for using file\_column. Nothing works. The files is downloaded to the temporary library but no more. The image field is never loaded - it’s null so the picture can ofco…

---

## [Looking for plug and play rails sample apps](https://www.ruby-forum.com/t/looking-for-plug-and-play-rails-sample-apps/149788)

<div class="topic-metadata">

**Author:** [@ken](https://www.ruby-forum.com/u/ken)\
**Replies:** 1\
**Last updated:** [September 29, 2008, 9:58pm UTC](https://www.ruby-forum.com/t/looking-for-plug-and-play-rails-sample-apps/149788 "2008-09-29T21:58:45Z")

</div>

As I learn rails, one thing I’d really like would be access to complete rails applications (sqlite3-based, please) so that I can poke around in their code and see what other people do. Could any of the readers point o…

---

## [Content-type method missing for Tempfile](https://www.ruby-forum.com/t/content-type-method-missing-for-tempfile/149789)

<div class="topic-metadata">

**Author:** [@Iain\_A](https://www.ruby-forum.com/u/Iain_A)\
**Replies:** 0\
**Last updated:** [September 29, 2008, 9:30pm UTC](https://www.ruby-forum.com/t/content-type-method-missing-for-tempfile/149789 "2008-09-29T21:30:12Z")

</div>

Hello, I have created a group model that has a picture. On uploading the picture the variable uploaded\_file is set as the Tempfile uploaded. I then have an after\_save method that creates several thumbnails of this pi…

---

## [Render custom mime types](https://www.ruby-forum.com/t/render-custom-mime-types/149637)

<div class="topic-metadata">

**Author:** [@nateleavitt](https://www.ruby-forum.com/u/nateleavitt)\
**Replies:** 5\
**Last updated:** [September 29, 2008, 9:08pm UTC](https://www.ruby-forum.com/t/render-custom-mime-types/149637 "2008-09-29T21:08:09Z")

</div>

So I have this in my environment.rb file: Mime::Type.register\_alias “text/html”, :help Then in one of my views I have this: \<%= render :partial =\> formatted\_summary\_account\_path(“help”) %\> In my view folder I have \_s…

---

## [BackgroundRB for multiple parallel tasks: thread or worker?](https://www.ruby-forum.com/t/backgroundrb-for-multiple-parallel-tasks-thread-or-worker/149779)

<div class="topic-metadata">

**Author:** [@javamllama](https://www.ruby-forum.com/u/javamllama)\
**Replies:** 0\
**Last updated:** [September 29, 2008, 7:39pm UTC](https://www.ruby-forum.com/t/backgroundrb-for-multiple-parallel-tasks-thread-or-worker/149779 "2008-09-29T19:39:47Z")

</div>

I’m just getting started with BackgroundRB, but I’m not sure how to do what I need to do. I have many chat rooms (Jabber) which are controlled or mediated by a Rails app. There are periodic elections carried out in th…

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

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