# Rails

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

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

---

## [How can I get malformed UTF-8 characters to display properly](https://www.ruby-forum.com/t/how-can-i-get-malformed-utf-8-characters-to-display-properly/113095)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [August 27, 2007, 4:39pm UTC](https://www.ruby-forum.com/t/how-can-i-get-malformed-utf-8-characters-to-display-properly/113095 "2007-08-27T16:39:44Z")

</div>

Hello everyone, I’m scraping a lot of sites for a project, and occasionally the scraped content will have “malformed UTF-8” characters. When the scraped content is processed (basically a database record is created), …

---

## [Multiple file upload](https://www.ruby-forum.com/t/multiple-file-upload/112907)

<div class="topic-metadata">

**Author:** [@vijayendra](https://www.ruby-forum.com/u/vijayendra)\
**Replies:** 4\
**Last updated:** [August 27, 2007, 2:40pm UTC](https://www.ruby-forum.com/t/multiple-file-upload/112907 "2007-08-27T14:40:09Z")

</div>

Hi Friend I am facing problem in uploading multiple file form a single form . please help me

---

## [Send\_file() method for downloading any file](https://www.ruby-forum.com/t/send-file-method-for-downloading-any-file/113067)

<div class="topic-metadata">

**Author:** [@advait](https://www.ruby-forum.com/u/advait)\
**Replies:** 1\
**Last updated:** [August 27, 2007, 2:22pm UTC](https://www.ruby-forum.com/t/send-file-method-for-downloading-any-file/113067 "2007-08-27T14:22:14Z")

</div>

HI, I need to know how to download any file using send\_file() method.The code I have shown below is for a specific file…how ever I need it for any file. THE CODE … def download\_files send\_file(‘D:/hr/Handbook.doc’…

---

## [Caching File](https://www.ruby-forum.com/t/caching-file/113090)

<div class="topic-metadata">

**Author:** [@sjames](https://www.ruby-forum.com/u/sjames)\
**Replies:** 0\
**Last updated:** [August 27, 2007, 2:20pm UTC](https://www.ruby-forum.com/t/caching-file/113090 "2007-08-27T14:20:41Z")

</div>

Hi I am trying to cache a whole page. Should be easy enough - the page I am trying to cache is available here: www.mydomain.com/hello/world And so my caching command is: cache\_page nil, :controller =\> “hello”, :acti…

---

## [Configuration/Initialization question](https://www.ruby-forum.com/t/configuration-initialization-question/112911)

<div class="topic-metadata">

**Author:** [@Bart\_D](https://www.ruby-forum.com/u/Bart_D)\
**Replies:** 7\
**Last updated:** [August 27, 2007, 2:04pm UTC](https://www.ruby-forum.com/t/configuration-initialization-question/112911 "2007-08-27T14:04:03Z")

</div>

Hi, Maybe I’m overseeing something, what is the right place to put Engines. (eg public paths) so that it is correctly used ? (or more generally MyPlugin.config; so that init.rb of my plugin behaves differently on sta…

---

## [Send\_file : downloaded file cannot be open after upload OK](https://www.ruby-forum.com/t/send-file-downloaded-file-cannot-be-open-after-upload-ok/113087)

<div class="topic-metadata">

**Author:** [@kadoudal](https://www.ruby-forum.com/u/kadoudal)\
**Replies:** 2\
**Last updated:** [August 27, 2007, 1:39pm UTC](https://www.ruby-forum.com/t/send-file-downloaded-file-cannot-be-open-after-upload-ok/113087 "2007-08-27T13:39:40Z")

</div>

I easily implemented the upload , using the ‘attachment\_fu’ plugin… I can see and open the uploaded files (a pdf file 60k and a jpeg images 28k) now I try to implement the download action in my document\_controller, I …

---

## [Resource Routing](https://www.ruby-forum.com/t/resource-routing/113081)

<div class="topic-metadata">

**Author:** [@sjames](https://www.ruby-forum.com/u/sjames)\
**Replies:** 4\
**Last updated:** [August 27, 2007, 1:17pm UTC](https://www.ruby-forum.com/t/resource-routing/113081 "2007-08-27T13:17:08Z")

</div>

Hi Does anyone know anything about the ‘resources’ keyword in routing? I can’t find any details on how it works or what it is for, but URLs starting ‘resources’ definitely appear to be handled differently from other …

---

## [Can FILTERS AND VERIFICATION functions take arguments?](https://www.ruby-forum.com/t/can-filters-and-verification-functions-take-arguments/113076)

<div class="topic-metadata">

**Author:** [@ungsophy](https://www.ruby-forum.com/u/ungsophy)\
**Replies:** 2\
**Last updated:** [August 27, 2007, 10:48am UTC](https://www.ruby-forum.com/t/can-filters-and-verification-functions-take-arguments/113076 "2007-08-27T10:48:13Z")

</div>

Hi, I have some problems in using filter. My filter functions need to have arguments, but filter functions take only symbol that refer to function name. Consider the following code: class BlogController \< Application…

---

## [Uploading multiple file using acts\_as\_attachment](https://www.ruby-forum.com/t/uploading-multiple-file-using-acts-as-attachment/113070)

<div class="topic-metadata">

**Author:** [@vijayendra](https://www.ruby-forum.com/u/vijayendra)\
**Replies:** 1\
**Last updated:** [August 27, 2007, 9:13am UTC](https://www.ruby-forum.com/t/uploading-multiple-file-using-acts-as-attachment/113070 "2007-08-27T09:13:43Z")

</div>

I have installed the acts\_as\_attachment. i want to upload multiple file using that , please help me regarding this

---

## [Rails 1.2.3 and lighttpd not working together](https://www.ruby-forum.com/t/rails-1-2-3-and-lighttpd-not-working-together/113072)

<div class="topic-metadata">

**Author:** [@Swartz](https://www.ruby-forum.com/u/Swartz)\
**Replies:** 0\
**Last updated:** [August 27, 2007, 7:14am UTC](https://www.ruby-forum.com/t/rails-1-2-3-and-lighttpd-not-working-together/113072 "2007-08-27T07:14:22Z")

</div>

I have a rails dev machine running freebsd 6.2. It has the latest ruby 1.8.6, rails 1.2.3, and lighttpd 1.4.16 When i create a new app, and start script/server I get the typical msg saying that its booting lighttpd an…

---

## [Table Help](https://www.ruby-forum.com/t/table-help/113069)

<div class="topic-metadata">

**Author:** [@Emeka](https://www.ruby-forum.com/u/Emeka)\
**Replies:** 0\
**Last updated:** [August 27, 2007, 7:12am UTC](https://www.ruby-forum.com/t/table-help/113069 "2007-08-27T07:12:22Z")

</div>

I am new to Rails and cannot figure the problem I’m having. I am using Locomotive to do my development, but for some reason the items in my database do not show up when I try to call them in my rhtml file. I am chec…

---

## [Issues with mod\_proxy/mod\_proxy\_balancer and my ded. server](https://www.ruby-forum.com/t/issues-with-mod-proxy-mod-proxy-balancer-and-my-ded-server/113036)

<div class="topic-metadata">

**Author:** [@mhfs](https://www.ruby-forum.com/u/mhfs)\
**Replies:** 5\
**Last updated:** [August 27, 2007, 5:06am UTC](https://www.ruby-forum.com/t/issues-with-mod-proxy-mod-proxy-balancer-and-my-ded-server/113036 "2007-08-27T05:06:40Z")

</div>

Hello list, I wonder if someone could help me understand the following: I’ve got a managed dedicated server with GoDaddy. Until now, I’ve only hosted PHP applications there. I now need to set it up to host my new bel…

---

## [How to access helper method inside a rake task](https://www.ruby-forum.com/t/how-to-access-helper-method-inside-a-rake-task/113061)

<div class="topic-metadata">

**Author:** [@dorelal](https://www.ruby-forum.com/u/dorelal)\
**Replies:** 0\
**Last updated:** [August 27, 2007, 3:59am UTC](https://www.ruby-forum.com/t/how-to-access-helper-method-inside-a-rake-task/113061 "2007-08-27T03:59:24Z")

</div>

class ApplicationController \< ActionController::Base helper\_method :mail2admin def mail2admin(message) Mailer.deliver\_mail2admin(message)) end end How do I access the method mail2admin inside my rake task.

---

## [Searching Across Multiple Models](https://www.ruby-forum.com/t/searching-across-multiple-models/113058)

<div class="topic-metadata">

**Author:** [@tom](https://www.ruby-forum.com/u/tom)\
**Replies:** 0\
**Last updated:** [August 27, 2007, 3:36am UTC](https://www.ruby-forum.com/t/searching-across-multiple-models/113058 "2007-08-27T03:36:20Z")

</div>

Hello All, I am currently looking for the easiest way to search across multiple models. Suppose I am implementing an online inventory look-up system. A user will search for a product and a list of stores within 10 m…

---

## [\[ANN\] Ruport 1.2 pre-release, please help test!](https://www.ruby-forum.com/t/ann-ruport-1-2-pre-release-please-help-test/113057)

<div class="topic-metadata">

**Author:** [@naething](https://www.ruby-forum.com/u/naething)\
**Replies:** 0\
**Last updated:** [August 27, 2007, 3:18am UTC](https://www.ruby-forum.com/t/ann-ruport-1-2-pre-release-please-help-test/113057 "2007-08-27T03:18:17Z")

</div>

Hi folks, It’s been a while since we’ve done a major Ruport release (1.0 in mid- May), but we’ve been busy behind the scenes. Ruport 1.2 is just about ready and includes a boat load of changes and enhancements. What…

---

## [Problem installing gems](https://www.ruby-forum.com/t/problem-installing-gems/112900)

<div class="topic-metadata">

**Author:** [@smc7000](https://www.ruby-forum.com/u/smc7000)\
**Replies:** 2\
**Last updated:** [August 27, 2007, 3:06am UTC](https://www.ruby-forum.com/t/problem-installing-gems/112900 "2007-08-27T03:06:09Z")

</div>

Hey everybody! Today I tried installing typo using “sudo gem install typo” and my machine spat this back at me: ERROR: While executing gem … (NoMethodError) undefined method \`refresh’ for #Hash:0x1108328 Anyone know…

---

## [Fixtures using wrong database table](https://www.ruby-forum.com/t/fixtures-using-wrong-database-table/113048)

<div class="topic-metadata">

**Author:** [@Christopher\_JSBott](https://www.ruby-forum.com/u/Christopher_JSBott)\
**Replies:** 0\
**Last updated:** [August 26, 2007, 11:42pm UTC](https://www.ruby-forum.com/t/fixtures-using-wrong-database-table/113048 "2007-08-26T23:42:14Z")

</div>

Hello, I have a model that sets it’s table\_name to something: MyModel \< ActiveRecord::Base self.table\_name = ‘some\_funky\_table’ end Now when I try to run the unit test for it: ruby tests/unit/my\_model\_test.rb I ge…

---

## [Looking for advice on deploying a small site](https://www.ruby-forum.com/t/looking-for-advice-on-deploying-a-small-site/112828)

<div class="topic-metadata">

**Author:** [@combas](https://www.ruby-forum.com/u/combas)\
**Replies:** 1\
**Last updated:** [August 26, 2007, 10:36pm UTC](https://www.ruby-forum.com/t/looking-for-advice-on-deploying-a-small-site/112828 "2007-08-26T22:36:04Z")

</div>

A friend has asked me if I could setup a very basic website with some forums. It will only have about a dozen images or so and user base of 100 people or less. I plan on using RForum to create about a dozen forums spr…

---

## [Form\_for not translating into the same controller/action](https://www.ruby-forum.com/t/form-for-not-translating-into-the-same-controller-action/113047)

<div class="topic-metadata">

**Author:** [@scott](https://www.ruby-forum.com/u/scott)\
**Replies:** 0\
**Last updated:** [August 26, 2007, 10:33pm UTC](https://www.ruby-forum.com/t/form-for-not-translating-into-the-same-controller-action/113047 "2007-08-26T22:33:04Z")

</div>

I have a form\_for tag in my view: \<%form\_form :network, :controller =\> :network, :action =\> :create do | form|%\> which is translating into the following when I view the source: Why would this be happening? Thanks, …

---

## [Address Book Import](https://www.ruby-forum.com/t/address-book-import/112665)

<div class="topic-metadata">

**Author:** [@mauchiyuyo](https://www.ruby-forum.com/u/mauchiyuyo)\
**Replies:** 4\
**Last updated:** [August 26, 2007, 10:29pm UTC](https://www.ruby-forum.com/t/address-book-import/112665 "2007-08-26T22:29:03Z")

</div>

Well, I am developing an application that permit to the members send invitation to be part of groups like circles in Hi5 To import the contacts I was using the contacts.1.0.0.3.gem from http://rubyforge.org/projects/…

---

## [Affiliate program on ruby on rails](https://www.ruby-forum.com/t/affiliate-program-on-ruby-on-rails/113046)

<div class="topic-metadata">

**Author:** [@nomad](https://www.ruby-forum.com/u/nomad)\
**Replies:** 0\
**Last updated:** [August 26, 2007, 10:26pm UTC](https://www.ruby-forum.com/t/affiliate-program-on-ruby-on-rails/113046 "2007-08-26T22:26:19Z")

</div>

Hi, All! As it says here - http://wiki.rubyonrails.org/rails/pages/HowtoRailsAffiliateProgram : “This post is dedicated to building a secure Ruby on Rails Affiliate Program (using MySQL and/or PosgreSQL) that can tra…

---

## [Multi-word query searching across columns](https://www.ruby-forum.com/t/multi-word-query-searching-across-columns/113023)

<div class="topic-metadata">

**Author:** [@dacbo](https://www.ruby-forum.com/u/dacbo)\
**Replies:** 2\
**Last updated:** [August 26, 2007, 10:24pm UTC](https://www.ruby-forum.com/t/multi-word-query-searching-across-columns/113023 "2007-08-26T22:24:01Z")

</div>

I’m trying to implement a basic name search on a People table with separate first\_name and last\_name columns. I am using the will\_paginate plugin and have the following search method in the model: def self.search(sea…

---

## [Escaped ampersand in generated restful url](https://www.ruby-forum.com/t/escaped-ampersand-in-generated-restful-url/113045)

<div class="topic-metadata">

**Author:** [@s0nspark](https://www.ruby-forum.com/u/s0nspark)\
**Replies:** 0\
**Last updated:** [August 26, 2007, 9:36pm UTC](https://www.ruby-forum.com/t/escaped-ampersand-in-generated-restful-url/113045 "2007-08-26T21:36:00Z")

</div>

I am using a restful helper method to build a url for use in a link\_to\_remote method and for some reason the generated url has the ampersand that separates the parameters escaped (i.e. /action?param1=1&param2=2 instea…

---

## [\[Fwd: Functional test problem\]](https://www.ruby-forum.com/t/fwd-functional-test-problem/63451)

<div class="topic-metadata">

**Author:** [@Chris\_T](https://www.ruby-forum.com/u/Chris_T)\
**Replies:** 5\
**Last updated:** [August 26, 2007, 8:50pm UTC](https://www.ruby-forum.com/t/fwd-functional-test-problem/63451 "2007-08-26T20:50:54Z")

</div>

Anyone? -------- Original Message -------- Subject: Functional test problem Date: Wed, 14 Jun 2006 19:49:03 +0100 From: Chris T removed\_email\_address@domain.invalid Reply-To: removed\_email\_address@domain.invalid …

---

## [Erb in yaml](https://www.ruby-forum.com/t/erb-in-yaml/112969)

<div class="topic-metadata">

**Author:** [@eggie5](https://www.ruby-forum.com/u/eggie5)\
**Replies:** 1\
**Last updated:** [August 26, 2007, 8:16pm UTC](https://www.ruby-forum.com/t/erb-in-yaml/112969 "2007-08-26T20:16:26Z")

</div>

Is there anything invalid about this? It’s one of my fixtures… c\_waiting: id: 2 birth: \<%= Time.now %\>

---

## [Member variable in controller](https://www.ruby-forum.com/t/member-variable-in-controller/113043)

<div class="topic-metadata">

**Author:** [@Shea\_M](https://www.ruby-forum.com/u/Shea_M)\
**Replies:** 0\
**Last updated:** [August 26, 2007, 7:44pm UTC](https://www.ruby-forum.com/t/member-variable-in-controller/113043 "2007-08-26T19:44:21Z")

</div>

I have a news\_controller. The ‘show’ action shows an article, and at the bottom of the page there is a form to submit a new comment. The show method sets @article member variable to the article about to be shown. d…

---

## [Assert\_select and xml:base](https://www.ruby-forum.com/t/assert-select-and-xml-base/113040)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [August 26, 2007, 7:33pm UTC](https://www.ruby-forum.com/t/assert-select-and-xml-base/113040 "2007-08-26T19:33:19Z")

</div>

I trying to use assert\_select to verify some xml content, where I specify an xml:base attribute: However I get an ‘invalid selector’ error when doing this assert\_select "group\[xml:base=‘http://blah/’\] I’ve tried var…

---

## [Thread.so (LOAD ERROR)](https://www.ruby-forum.com/t/thread-so-load-error/113018)

<div class="topic-metadata">

**Author:** [@jeannibee](https://www.ruby-forum.com/u/jeannibee)\
**Replies:** 4\
**Last updated:** [August 26, 2007, 6:05pm UTC](https://www.ruby-forum.com/t/thread-so-load-error/113018 "2007-08-26T18:05:06Z")

</div>

I did an update to ruby 1.8.6 and since then I can’t run anything in Rails. Ex: j@necropolis:~/sandbox/rhp/0708/trunk$ rake -T /usr/lib/ruby/1.8/thread.rb:5:in require': no such file to load -- thread.so (LoadError) …

---

## [Position field problems in table that's a child in two assoc](https://www.ruby-forum.com/t/position-field-problems-in-table-thats-a-child-in-two-assoc/113037)

<div class="topic-metadata">

**Author:** [@mike](https://www.ruby-forum.com/u/mike)\
**Replies:** 0\
**Last updated:** [August 26, 2007, 5:56pm UTC](https://www.ruby-forum.com/t/position-field-problems-in-table-thats-a-child-in-two-assoc/113037 "2007-08-26T17:56:08Z")

</div>

I have a table that’s both a child in an Acts As List association and also it Acts As A Tree. Problem is I want to keep track of their position in the list and rails by default keeps track of their position in the tre…

---

## [What do you think of Aptana?](https://www.ruby-forum.com/t/what-do-you-think-of-aptana/113013)

<div class="topic-metadata">

**Author:** [@valpaliy](https://www.ruby-forum.com/u/valpaliy)\
**Replies:** 4\
**Last updated:** [August 26, 2007, 4:56pm UTC](https://www.ruby-forum.com/t/what-do-you-think-of-aptana/113013 "2007-08-26T16:56:57Z")

</div>

Hello everyone, I am new to this forum and Ruby, and already have a question - what do you think of Aptana IDE in regards to RoR development? Thanks, Val

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

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