# Rails

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

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

---

## [Unexpected download popup](https://www.ruby-forum.com/t/unexpected-download-popup/159722)

<div class="topic-metadata">

**Author:** [@luma](https://www.ruby-forum.com/u/luma)\
**Replies:** 0\
**Last updated:** [February 7, 2009, 4:05pm UTC](https://www.ruby-forum.com/t/unexpected-download-popup/159722 "2009-02-07T16:05:08Z")

</div>

I’m creating some pdfs using PDF::Writer: def my\_action invoice\_pdf = render\_to\_string(:action =\> ‘…/orders/ invoice.rpdf’, :layout =\> false) path = … File.open(path, “wb”) {|f| f.write invoice\_pdf} end At the end…

---

## [Posted form fields becomes \[Binary Data\] insted of strings](https://www.ruby-forum.com/t/posted-form-fields-becomes-binary-data-insted-of-strings/159640)

<div class="topic-metadata">

**Author:** [@bikle](https://www.ruby-forum.com/u/bikle)\
**Replies:** 1\
**Last updated:** [February 7, 2009, 3:21pm UTC](https://www.ruby-forum.com/t/posted-form-fields-becomes-binary-data-insted-of-strings/159640 "2009-02-07T15:21:07Z")

</div>

Hi every one, I’m having problems with my Rails forms. When I submit a form that holds strings containing letters like Ã¥,Ã¤ or Ã¶ then the strings in the params variable are converted into \[Binary Data\]. Does anyone …

---

## [Uninitialized constant error - Using unconventional table names](https://www.ruby-forum.com/t/uninitialized-constant-error-using-unconventional-table-names/159669)

<div class="topic-metadata">

**Author:** [@loominator1970](https://www.ruby-forum.com/u/loominator1970)\
**Replies:** 1\
**Last updated:** [February 7, 2009, 1:39pm UTC](https://www.ruby-forum.com/t/uninitialized-constant-error-using-unconventional-table-names/159669 "2009-02-07T13:39:12Z")

</div>

Hello, I’m having some trouble with an association between two tables in my RoR site. It looks like Rails is attempting to truncate the name of my model so that it can fit the normal model conventions. Any idea how…

---

## [Re: strange IRB problem](https://www.ruby-forum.com/t/re-strange-irb-problem/159712)

<div class="topic-metadata">

**Author:** [@doug](https://www.ruby-forum.com/u/doug)\
**Replies:** 0\
**Last updated:** [February 7, 2009, 1:33pm UTC](https://www.ruby-forum.com/t/re-strange-irb-problem/159712 "2009-02-07T13:33:20Z")

</div>

very strange… I’m on Vista and updated to Rails 2.2.2 and rubygems 1.3.1 with the usual problem there. …but that’s well documented… everything was fine…but then I tried the irb console. in every shell I have (netbea…

---

## [Improving this messy has\_many :through with :include](https://www.ruby-forum.com/t/improving-this-messy-has-many-through-with-include/159711)

<div class="topic-metadata">

**Author:** [@alan](https://www.ruby-forum.com/u/alan)\
**Replies:** 0\
**Last updated:** [February 7, 2009, 1:33pm UTC](https://www.ruby-forum.com/t/improving-this-messy-has-many-through-with-include/159711 "2009-02-07T13:33:20Z")

</div>

I have a question about cleaning up a rather complex has\_many. I’ll describe the context in case it helps, but perhaps you can skip straight to the code below. I am designing a fantasy football type system. I am mode…

---

## [Strange IRB problem](https://www.ruby-forum.com/t/strange-irb-problem/159710)

<div class="topic-metadata">

**Author:** [@doug](https://www.ruby-forum.com/u/doug)\
**Replies:** 0\
**Last updated:** [February 7, 2009, 1:33pm UTC](https://www.ruby-forum.com/t/strange-irb-problem/159710 "2009-02-07T13:33:20Z")

</div>

very strange… I’m on Vista and updated to Rails 2.2.2 and rubygems 1.3.1 with the usual problem there. …but that’s well documented… everything was fine…but then I tried the irb console. in every shell I have (netbea…

---

## [Wice grid](https://www.ruby-forum.com/t/wice-grid/159714)

<div class="topic-metadata">

**Author:** [@nickmeister](https://www.ruby-forum.com/u/nickmeister)\
**Replies:** 0\
**Last updated:** [February 7, 2009, 1:33pm UTC](https://www.ruby-forum.com/t/wice-grid/159714 "2009-02-07T13:33:20Z")

</div>

I am trying to use wice grid plugin and I have run into problem. The problem is when I have nested paths as follows: Hardware :has\_many installed\_softwares Software :has\_many installed\_softwares installed\_softwares…

---

## [How to run test unit in controller](https://www.ruby-forum.com/t/how-to-run-test-unit-in-controller/157458)

<div class="topic-metadata">

**Author:** [@anton\_effendi](https://www.ruby-forum.com/u/anton_effendi)\
**Replies:** 3\
**Last updated:** [February 7, 2009, 1:33pm UTC](https://www.ruby-forum.com/t/how-to-run-test-unit-in-controller/157458 "2009-02-07T13:33:19Z")

</div>

Hai Guys… I need help… I want to run test:unit in controller and the result will show on view… Any body can help me??? – Wu You Duan

---

## [Has many + inner join + postgresql](https://www.ruby-forum.com/t/has-many-inner-join-postgresql/159700)

<div class="topic-metadata">

**Author:** [@Drogomir](https://www.ruby-forum.com/u/Drogomir)\
**Replies:** 2\
**Last updated:** [February 7, 2009, 1:30pm UTC](https://www.ruby-forum.com/t/has-many-inner-join-postgresql/159700 "2009-02-07T13:30:59Z")

</div>

Hi, I tried to make query similar to Pratik’s from his post: http://m.onkey.org/2007/11/1/find-users-with-at-least-n-items User.find :all, :joins =\> “INNER JOIN items ON items.user\_id = users.id”, :select =\> “users.\*…

---

## [Autocomplete plugin with Rails 2.0](https://www.ruby-forum.com/t/autocomplete-plugin-with-rails-2-0/118004)

<div class="topic-metadata">

**Author:** [@bparanj](https://www.ruby-forum.com/u/bparanj)\
**Replies:** 12\
**Last updated:** [February 7, 2009, 1:21pm UTC](https://www.ruby-forum.com/t/autocomplete-plugin-with-rails-2-0/118004 "2009-02-07T13:21:16Z")

</div>

I installed the auto\_complete plugin found at http://svn.rubyonrails.org/rails/plugins/auto\_complete. When I type a character in the autocomplete field I get the following error: Processing EventsController#auto\_compl…

---

## [How to make up :popup as the top-most window?](https://www.ruby-forum.com/t/how-to-make-up-popup-as-the-top-most-window/159703)

<div class="topic-metadata">

**Author:** [@horace](https://www.ruby-forum.com/u/horace)\
**Replies:** 0\
**Last updated:** [February 7, 2009, 11:07am UTC](https://www.ruby-forum.com/t/how-to-make-up-popup-as-the-top-most-window/159703 "2009-02-07T11:07:05Z")

</div>

In the main windows, 10 project names are shown. Each project name is a link to a popup to show the project detail. Code: \<%= link\_to h(project.code), project, :popup =\> \[‘detail\_window’,‘height=560,width=900,resizabl…

---

## [Rcov: how to write test cases](https://www.ruby-forum.com/t/rcov-how-to-write-test-cases/196892)

<div class="topic-metadata">

**Author:** [@brijesh](https://www.ruby-forum.com/u/brijesh)\
**Replies:** 5\
**Last updated:** [February 7, 2009, 10:13am UTC](https://www.ruby-forum.com/t/rcov-how-to-write-test-cases/196892 "2009-02-07T10:13:17Z")

</div>

Hi I am using rcov to generate code coverage. But I don’t know how to write cases for that… I have installed rcov gem and and execute rcov test/\*.rb command. It shows me some code coverage in files. Can anyone help…

---

## [Install RMagick2.9.0 Rails 2.1.2, Ruby 1.8.6 ,filecolumn-0.3](https://www.ruby-forum.com/t/install-rmagick2-9-0-rails-2-1-2-ruby-1-8-6-filecolumn-0-3/159701)

<div class="topic-metadata">

**Author:** [@kmani2k5](https://www.ruby-forum.com/u/kmani2k5)\
**Replies:** 0\
**Last updated:** [February 7, 2009, 9:34am UTC](https://www.ruby-forum.com/t/install-rmagick2-9-0-rails-2-1-2-ruby-1-8-6-filecolumn-0-3/159701 "2009-02-07T09:34:28Z")

</div>

Install ImageMagick and RMagick for Rails 2.1.2, Ruby 1.8.6, File Column 0.3 in Windows XP SP2 Download ImageMagick and RMagick from rubyforge.org http://rubyforge.org/frs/download.php/50370/RMagick-2.9.0-ImageMagic…

---

## [Script/plugin install from SVN url with http authentication](https://www.ruby-forum.com/t/script-plugin-install-from-svn-url-with-http-authentication/159699)

<div class="topic-metadata">

**Author:** [@russellquinn](https://www.ruby-forum.com/u/russellquinn)\
**Replies:** 0\
**Last updated:** [February 7, 2009, 8:42am UTC](https://www.ruby-forum.com/t/script-plugin-install-from-svn-url-with-http-authentication/159699 "2009-02-07T08:42:05Z")

</div>

How can I use script/plugin install to access a SVN repository that requires HTTP authentication? I’ve tried: script/plugin install http://\[user\]:\[pass\]@svn\_rep/project/plugin It works fine with the -x option, but ob…

---

## [Regular Expressions for Leading white space](https://www.ruby-forum.com/t/regular-expressions-for-leading-white-space/159692)

<div class="topic-metadata">

**Author:** [@newb](https://www.ruby-forum.com/u/newb)\
**Replies:** 2\
**Last updated:** [February 7, 2009, 7:26am UTC](https://www.ruby-forum.com/t/regular-expressions-for-leading-white-space/159692 "2009-02-07T07:26:45Z")

</div>

Can Anyone help me with regular expression which checks the string, if it contains Leading whitespaces. example =\> admin it contains leading space with it. so i need to check it. pls help me.

---

## [Rails testing uses huge number of AUTO INC ids in db](https://www.ruby-forum.com/t/rails-testing-uses-huge-number-of-auto-inc-ids-in-db/159663)

<div class="topic-metadata">

**Author:** [@rasmus](https://www.ruby-forum.com/u/rasmus)\
**Replies:** 3\
**Last updated:** [February 7, 2009, 6:16am UTC](https://www.ruby-forum.com/t/rails-testing-uses-huge-number-of-auto-inc-ids-in-db/159663 "2009-02-07T06:16:36Z")

</div>

Hi there, I’ve recently begun writing tests in rails and I’ve run into a problem. After recreating my test-database and running my few tests ONCE the auto increment ID setting for some of the tables in the test-databa…

---

## [Nested Resources: How to view all children resources](https://www.ruby-forum.com/t/nested-resources-how-to-view-all-children-resources/159691)

<div class="topic-metadata">

**Author:** [@scudco](https://www.ruby-forum.com/u/scudco)\
**Replies:** 1\
**Last updated:** [February 7, 2009, 6:09am UTC](https://www.ruby-forum.com/t/nested-resources-how-to-view-all-children-resources/159691 "2009-02-07T06:09:00Z")

</div>

I want to be able to view all the children resources in a nested resoruce scheme. Ie. if i have projects and tasks I want to be able to view every single task like this /tasks rather than /project/1/task… Can anybo…

---

## [Strange IRB problem](https://www.ruby-forum.com/t/strange-irb-problem/159680)

<div class="topic-metadata">

**Author:** [@doug](https://www.ruby-forum.com/u/doug)\
**Replies:** 2\
**Last updated:** [February 7, 2009, 6:00am UTC](https://www.ruby-forum.com/t/strange-irb-problem/159680 "2009-02-07T06:00:49Z")

</div>

very strange… I’m on Vista and updated to Rails 2.2.2 and rubygems 1.3.1 with the usual problem there. …but that’s well documented… everything was fine…but then I tried the irb console. in every shell I have (netbea…

---

## [Hi\`](https://www.ruby-forum.com/t/hi/159690)

<div class="topic-metadata">

**Author:** [@dharmdip](https://www.ruby-forum.com/u/dharmdip)\
**Replies:** 0\
**Last updated:** [February 7, 2009, 5:14am UTC](https://www.ruby-forum.com/t/hi/159690 "2009-02-07T05:14:28Z")

</div>

Hi\`

---

## [Nested links for show, edit and delete](https://www.ruby-forum.com/t/nested-links-for-show-edit-and-delete/159688)

<div class="topic-metadata">

**Author:** [@nicken](https://www.ruby-forum.com/u/nicken)\
**Replies:** 0\
**Last updated:** [February 7, 2009, 4:36am UTC](https://www.ruby-forum.com/t/nested-links-for-show-edit-and-delete/159688 "2009-02-07T04:36:43Z")

</div>

I am trying to use wice grid plugin and I have run into problem. The problem is when I have nested paths as follows: Hardware :has\_many installed\_softwares Software :has\_many installed\_softwares installed\_softwares…

---

## [Script/server -- responding to multiple request simultaneously?](https://www.ruby-forum.com/t/script-server-responding-to-multiple-request-simultaneously/159684)

<div class="topic-metadata">

**Author:** [@Jacob\_Refstrup](https://www.ruby-forum.com/u/Jacob_Refstrup)\
**Replies:** 1\
**Last updated:** [February 7, 2009, 4:16am UTC](https://www.ruby-forum.com/t/script-server-responding-to-multiple-request-simultaneously/159684 "2009-02-07T04:16:12Z")

</div>

Hi, I’m trying to see if there’s an easy way that I can get script/server to process multiple requests simultaneously? Why you might ask… well I’m developing a web app that sits on top of several web services and for …

---

## [Simple form with option to go to advanced form](https://www.ruby-forum.com/t/simple-form-with-option-to-go-to-advanced-form/159687)

<div class="topic-metadata">

**Author:** [@scudco](https://www.ruby-forum.com/u/scudco)\
**Replies:** 0\
**Last updated:** [February 7, 2009, 4:13am UTC](https://www.ruby-forum.com/t/simple-form-with-option-to-go-to-advanced-form/159687 "2009-02-07T04:13:08Z")

</div>

I have a todo list involving projects and tasks and im using nested resources. In Projects Show - i list all tasks associated with the project. I also have a simple “add task” which allows the user to add a task but o…

---

## [Trying out TDD, getting stuck!](https://www.ruby-forum.com/t/trying-out-tdd-getting-stuck/158149)

<div class="topic-metadata">

**Author:** [@nelson](https://www.ruby-forum.com/u/nelson)\
**Replies:** 11\
**Last updated:** [February 7, 2009, 2:38am UTC](https://www.ruby-forum.com/t/trying-out-tdd-getting-stuck/158149 "2009-02-07T02:38:31Z")

</div>

I’ve heard about TDD, read about TDD, and now I’m trying to practice it. However, I’m getting stuck trying to do a simple test in rails 2.2.2. I’ve decided to try writing a simple functional test to test the ‘add\_item…

---

## [Xml special characters](https://www.ruby-forum.com/t/xml-special-characters/159681)

<div class="topic-metadata">

**Author:** [@grayson](https://www.ruby-forum.com/u/grayson)\
**Replies:** 0\
**Last updated:** [February 7, 2009, 1:37am UTC](https://www.ruby-forum.com/t/xml-special-characters/159681 "2009-02-07T01:37:23Z")

</div>

Hello, I need to produce XML that looks like this \<item\> \<title\>Image Title\</title\> \<media:description\>Description of my Image\</media:description\> \<media:content url="http://www.mywebsite.com/image.…

---

## [HTTPS and Deployment Basics](https://www.ruby-forum.com/t/https-and-deployment-basics/159676)

<div class="topic-metadata">

**Author:** [@Neal\_L](https://www.ruby-forum.com/u/Neal_L)\
**Replies:** 0\
**Last updated:** [February 6, 2009, 11:01pm UTC](https://www.ruby-forum.com/t/https-and-deployment-basics/159676 "2009-02-06T23:01:21Z")

</div>

Hi all, Does anyone know of a good tutorial / walkthrough on how to setup a production server to use HTTPS? I’ve got a development server running Apache with Phusion Passenger, but don’t know how to make the leap to …

---

## [Help with Forms](https://www.ruby-forum.com/t/help-with-forms/159653)

<div class="topic-metadata">

**Author:** [@frank95a](https://www.ruby-forum.com/u/frank95a)\
**Replies:** 2\
**Last updated:** [February 6, 2009, 10:42pm UTC](https://www.ruby-forum.com/t/help-with-forms/159653 "2009-02-06T22:42:00Z")

</div>

Hello all, I am a newbie in Rails and have been trying to solve the following by myself for the past 3 days to no avail. Any help is appreciated. Here is what I am trying to do: Run a search on a table Create a form…

---

## [Gahh! how do you install the query\_trace plugin?](https://www.ruby-forum.com/t/gahh-how-do-you-install-the-query-trace-plugin/159675)

<div class="topic-metadata">

**Author:** [@dino\_d](https://www.ruby-forum.com/u/dino_d)\
**Replies:** 0\
**Last updated:** [February 6, 2009, 10:33pm UTC](https://www.ruby-forum.com/t/gahh-how-do-you-install-the-query-trace-plugin/159675 "2009-02-06T22:33:49Z")

</div>

Hello- I am trying to install the query\_trace plugin here: I can’t figure out how to install it. I’ve tried script/install plugin, I’ve tried svn, I’ve tried downloading the files and placing them in the vendor/plu…

---

## [Form\_for + catch the complete action](https://www.ruby-forum.com/t/form-for-catch-the-complete-action/159550)

<div class="topic-metadata">

**Author:** [@petan](https://www.ruby-forum.com/u/petan)\
**Replies:** 5\
**Last updated:** [February 6, 2009, 9:36pm UTC](https://www.ruby-forum.com/t/form-for-catch-the-complete-action/159550 "2009-02-06T21:36:21Z")

</div>

Hi I am using classic form\_for to upload pictures using ajax. \<% form\_for(:images, :url =\> formatted\_images\_path(:format =\> ‘js’), :html =\> { :multipart =\> true, :target =\> ‘upload\_frame’ }) do |f| %\> Is there a way t…

---

## [Create a Trial Period then have an initial charge first time](https://www.ruby-forum.com/t/create-a-trial-period-then-have-an-initial-charge-first-time/158983)

<div class="topic-metadata">

**Author:** [@Sean\_McGilvray](https://www.ruby-forum.com/u/Sean_McGilvray)\
**Replies:** 3\
**Last updated:** [February 6, 2009, 9:24pm UTC](https://www.ruby-forum.com/t/create-a-trial-period-then-have-an-initial-charge-first-time/158983 "2009-02-06T21:24:29Z")

</div>

I am looking to see of someone has created a setup that will allow for a trial period of 30 days without collecting payment info up front. On the 30th day charge one fee (i.e. 4.95 + 9.95 setup fee) Then charge 4.95 a…

---

## [A working from\_xml including child relationships](https://www.ruby-forum.com/t/a-working-from-xml-including-child-relationships/159651)

<div class="topic-metadata">

**Author:** [@adamfowleruk](https://www.ruby-forum.com/u/adamfowleruk)\
**Replies:** 1\
**Last updated:** [February 6, 2009, 9:18pm UTC](https://www.ruby-forum.com/t/a-working-from-xml-including-child-relationships/159651 "2009-02-06T21:18:45Z")

</div>

Hi all, I’ve been looking at some options for getting a from\_xml implementation working with ActiveRecord based classes. I had a few issues and couldn’t resolve them, so I rolled my own. Seems to work well for simple…

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

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