# Rails

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

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

---

## [Prototype.Browser has no properties](https://www.ruby-forum.com/t/prototype-browser-has-no-properties/107663)

<div class="topic-metadata">

**Author:** [@thekernel](https://www.ruby-forum.com/u/thekernel)\
**Replies:** 1\
**Last updated:** [June 29, 2007, 4:20am UTC](https://www.ruby-forum.com/t/prototype-browser-has-no-properties/107663 "2007-06-29T04:20:18Z")

</div>

I’m trying to open a new url in an ajax window. I’m using prototype-window (http://prototype-window.xilinus.com/samples.html), and keep getting this error Prototype.Browser has no properties Here are some snipets fro…

---

## [Interesting question (possibly)](https://www.ruby-forum.com/t/interesting-question-possibly/107580)

<div class="topic-metadata">

**Author:** [@surge](https://www.ruby-forum.com/u/surge)\
**Replies:** 22\
**Last updated:** [June 29, 2007, 4:16am UTC](https://www.ruby-forum.com/t/interesting-question-possibly/107580 "2007-06-29T04:16:18Z")

</div>

Hello, I have a form that displays information about a piece of equipment. Among it’s attributes is its site and building. The trick is that a site can have many buildings. Instead of storing both the site and the b…

---

## [Apache: mod\_balancer vs. mod\_proxy\_balancer](https://www.ruby-forum.com/t/apache-mod-balancer-vs-mod-proxy-balancer/108059)

<div class="topic-metadata">

**Author:** [@doug](https://www.ruby-forum.com/u/doug)\
**Replies:** 4\
**Last updated:** [June 29, 2007, 2:57am UTC](https://www.ruby-forum.com/t/apache-mod-balancer-vs-mod-proxy-balancer/108059 "2007-06-29T02:57:10Z")

</div>

I’m trying to setup a mongrel cluster. I’m relying on information collected from a number of sources but I’m relying heavily on http://mongrel.rubyforge.org/docs/apache.html. I have noted that a number of sources men…

---

## [Form\_for and ActiveResource](https://www.ruby-forum.com/t/form-for-and-activeresource/108109)

<div class="topic-metadata">

**Author:** [@patcito](https://www.ruby-forum.com/u/patcito)\
**Replies:** 0\
**Last updated:** [June 29, 2007, 2:40am UTC](https://www.ruby-forum.com/t/form-for-and-activeresource/108109 "2007-06-29T02:40:09Z")

</div>

Hey all, I have a “Profile” model that I get with ActiveResource. I have a basic form in my application to create Profiles like this: \<% form\_for(:profile, :url =\> profiles\_path) do |f| %\> First name \<%= text\_…

---

## [Clicking a form\_remote\_tag has no action](https://www.ruby-forum.com/t/clicking-a-form-remote-tag-has-no-action/108091)

<div class="topic-metadata">

**Author:** [@jeannibee](https://www.ruby-forum.com/u/jeannibee)\
**Replies:** 2\
**Last updated:** [June 29, 2007, 2:03am UTC](https://www.ruby-forum.com/t/clicking-a-form-remote-tag-has-no-action/108091 "2007-06-29T02:03:39Z")

</div>

Hi (Based on the CART exercise in the AWDWR book by the Pragmatic guys.) I apologize in advance for being long winded, I just wanted to be thorough since this is kinda still new to me. In a nutshell, when I click my …

---

## [Form\_for et ActiveResource](https://www.ruby-forum.com/t/form-for-et-activeresource/108103)

<div class="topic-metadata">

**Author:** [@patcito](https://www.ruby-forum.com/u/patcito)\
**Replies:** 1\
**Last updated:** [June 29, 2007, 1:41am UTC](https://www.ruby-forum.com/t/form-for-et-activeresource/108103 "2007-06-29T01:41:06Z")

</div>

Salut à tous, J’ai un model Profile en ARes. Dans mon application ARes, j’ai un formulaire de base qui me permet de créer des profiles ainsi: \<% form\_for(:profile, :url =\> profiles\_path) do |f| %\> First name …

---

## [Gem error wont let mongrel start](https://www.ruby-forum.com/t/gem-error-wont-let-mongrel-start/108099)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [June 29, 2007, 1:25am UTC](https://www.ruby-forum.com/t/gem-error-wont-let-mongrel-start/108099 "2007-06-29T01:25:05Z")

</div>

I’m getting a really confusing error which I have no idea how to fix, its happens when mongrel loads gems it happened after I installed act\_as\_ferret gem. I’ve since deleted the gem and reinstalled ruby completely. Af…

---

## [Help with form\_for helper selects](https://www.ruby-forum.com/t/help-with-form-for-helper-selects/108076)

<div class="topic-metadata">

**Author:** [@CPerry](https://www.ruby-forum.com/u/CPerry)\
**Replies:** 3\
**Last updated:** [June 29, 2007, 12:13am UTC](https://www.ruby-forum.com/t/help-with-form-for-helper-selects/108076 "2007-06-29T00:13:59Z")

</div>

Hey all, I am building a form for my app and I am having some trouble with creating a select for the form. In my form\_for helper, I am attempting to create a selection drop down and here is the code for that… I…

---

## [New to rails... suitable for what I wanna do?](https://www.ruby-forum.com/t/new-to-rails-suitable-for-what-i-wanna-do/108049)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 7\
**Last updated:** [June 29, 2007, 12:01am UTC](https://www.ruby-forum.com/t/new-to-rails-suitable-for-what-i-wanna-do/108049 "2007-06-29T00:01:28Z")

</div>

Hi, I have created and now maintain the website ratsdeville.com (http:// ratsdeville.com/index\_e.html for english) for my brother. He creates more and more content for it each week and I’m seriously feeling the pain …

---

## [NoMethodError: undefined method \`net'](https://www.ruby-forum.com/t/nomethoderror-undefined-method-net/108013)

<div class="topic-metadata">

**Author:** [@mark](https://www.ruby-forum.com/u/mark)\
**Replies:** 4\
**Last updated:** [June 28, 2007, 11:59pm UTC](https://www.ruby-forum.com/t/nomethoderror-undefined-method-net/108013 "2007-06-28T23:59:57Z")

</div>

Hi, I am just creating a unit test and I am being shown the following error, has anyon any suggestions to how I can fix this? Error: test\_size\_of\_attributes(BlogTest): NoMethodError: undefined method net' for Blog:C…

---

## [1.1 security fix backports still available?](https://www.ruby-forum.com/t/1-1-security-fix-backports-still-available/108088)

<div class="topic-metadata">

**Author:** [@sjmadsen](https://www.ruby-forum.com/u/sjmadsen)\
**Replies:** 0\
**Last updated:** [June 28, 2007, 11:42pm UTC](https://www.ruby-forum.com/t/1-1-security-fix-backports-still-available/108088 "2007-06-28T23:42:01Z")

</div>

I have a new client with an app running on 1.1.2 and I’m trying to verify if his vendor/rails already has the critical security fix from last August. Unfortunately, the backport patches to earlier 1.1 releases linked…

---

## [Integration tests prefixing headers with "HTTP-"](https://www.ruby-forum.com/t/integration-tests-prefixing-headers-with-http/108089)

<div class="topic-metadata">

**Author:** [@isopaleocopria](https://www.ruby-forum.com/u/isopaleocopria)\
**Replies:** 0\
**Last updated:** [June 28, 2007, 11:38pm UTC](https://www.ruby-forum.com/t/integration-tests-prefixing-headers-with-http/108089 "2007-06-28T23:38:55Z")

</div>

When I pass HTTP headers like “Accept” or “If-Not-Modifed-Since” to a get request in a Rails integration test, the test base class prefixes the headers with “HTTP-”, and converts them to upper case. Why does it prepen…

---

## [Need help with calling a ruby method inside rhtml](https://www.ruby-forum.com/t/need-help-with-calling-a-ruby-method-inside-rhtml/108087)

<div class="topic-metadata">

**Author:** [@Manic](https://www.ruby-forum.com/u/Manic)\
**Replies:** 2\
**Last updated:** [June 28, 2007, 11:32pm UTC](https://www.ruby-forum.com/t/need-help-with-calling-a-ruby-method-inside-rhtml/108087 "2007-06-28T23:32:55Z")

</div>

My problem is simple. I have a function “translateTo(lang)” that i need to call in my show\_data.rhtml file. The function that i need to call returns a string that i need to print out on my show\_data.rhtml page. Shoul…

---

## [Submitting a form without clicking the submit button?](https://www.ruby-forum.com/t/submitting-a-form-without-clicking-the-submit-button/108054)

<div class="topic-metadata">

**Author:** [@liberte](https://www.ruby-forum.com/u/liberte)\
**Replies:** 3\
**Last updated:** [June 28, 2007, 10:13pm UTC](https://www.ruby-forum.com/t/submitting-a-form-without-clicking-the-submit-button/108054 "2007-06-28T22:13:45Z")

</div>

I’m using AJAX with 2 select pulldowns. When you select an item in the first pulldown, it dynamically populates the second pulldown. However, I need to value of the first select pulldown to know how to populate the …

---

## [Complete stumper: variable exists in hidden\_field\_tag, but n](https://www.ruby-forum.com/t/complete-stumper-variable-exists-in-hidden-field-tag-but-n/108072)

<div class="topic-metadata">

**Author:** [@jfoxny](https://www.ruby-forum.com/u/jfoxny)\
**Replies:** 1\
**Last updated:** [June 28, 2007, 10:11pm UTC](https://www.ruby-forum.com/t/complete-stumper-variable-exists-in-hidden-field-tag-but-n/108072 "2007-06-28T22:11:45Z")

</div>

This is a real mystery to me. I have an instance variable in a partial that only gives its value inside a hidden\_field\_tag. If I try to use the variable anywhere else in the partial, i either get nil or an undefined e…

---

## [Dropdown menu](https://www.ruby-forum.com/t/dropdown-menu/108082)

<div class="topic-metadata">

**Author:** [@james](https://www.ruby-forum.com/u/james)\
**Replies:** 0\
**Last updated:** [June 28, 2007, 10:07pm UTC](https://www.ruby-forum.com/t/dropdown-menu/108082 "2007-06-28T22:07:45Z")

</div>

Hi everyone, I’ve been trying to figure out this problem for a good while but can’t seem to do it on my own. I need to create a dropdown menu that when the user changes the value it will trigger a remote\_function. T…

---

## [Download a file](https://www.ruby-forum.com/t/download-a-file/108068)

<div class="topic-metadata">

**Author:** [@pshussain](https://www.ruby-forum.com/u/pshussain)\
**Replies:** 2\
**Last updated:** [June 28, 2007, 9:58pm UTC](https://www.ruby-forum.com/t/download-a-file/108068 "2007-06-28T21:58:37Z")

</div>

how to write download a file program using Rails Wjen i click the link of the file, that file should be download How can i do that? Tell please By P.S.Hussain

---

## [How to avoid auto-closing tag while using insert\_html method](https://www.ruby-forum.com/t/how-to-avoid-auto-closing-tag-while-using-insert-html-method/108058)

<div class="topic-metadata">

**Author:** [@Ye\_Dingding](https://www.ruby-forum.com/u/Ye_Dingding)\
**Replies:** 3\
**Last updated:** [June 28, 2007, 9:57pm UTC](https://www.ruby-forum.com/t/how-to-avoid-auto-closing-tag-while-using-insert-html-method/108058 "2007-06-28T21:57:36Z")

</div>

It seems that page.insert\_html :bottom, ‘current-entry’, ‘ ’ will generate automatically. That is, it auto-close the ‘div’ tag. However, this is not i want. What I want is a unclosing tag. So, Is there any way to …

---

## [Emulate RoR web from with cURL?](https://www.ruby-forum.com/t/emulate-ror-web-from-with-curl/108075)

<div class="topic-metadata">

**Author:** [@chirag](https://www.ruby-forum.com/u/chirag)\
**Replies:** 1\
**Last updated:** [June 28, 2007, 9:44pm UTC](https://www.ruby-forum.com/t/emulate-ror-web-from-with-curl/108075 "2007-06-28T21:44:34Z")

</div>

I tried the following command curl -F “uploaded\_data=@curltest.docx” http://localhost:3000/raw\_data\_files/create and got the following errors from attachment\_fu (file upload plugin) There were problems with the follo…

---

## [How to get back to my original results/list?](https://www.ruby-forum.com/t/how-to-get-back-to-my-original-results-list/70043)

<div class="topic-metadata">

**Author:** [@tom](https://www.ruby-forum.com/u/tom)\
**Replies:** 1\
**Last updated:** [June 28, 2007, 9:12pm UTC](https://www.ruby-forum.com/t/how-to-get-back-to-my-original-results-list/70043 "2007-06-28T21:12:30Z")

</div>

The main functionality of my app is the followiing: Enter search criteria \> show results\> edit one of the results \> back to results i need to get back to the results from my initial query but when i select back from …

---

## [Test::Unit mocking the db](https://www.ruby-forum.com/t/test-unit-mocking-the-db/108027)

<div class="topic-metadata">

**Author:** [@bowenmark](https://www.ruby-forum.com/u/bowenmark)\
**Replies:** 5\
**Last updated:** [June 28, 2007, 9:08pm UTC](https://www.ruby-forum.com/t/test-unit-mocking-the-db/108027 "2007-06-28T21:08:35Z")

</div>

While this post is strictly related to ActiveRecord and not Rails in its entirety I thought this was probably the best place to ask. If not I apologise and if someone could point me in the right direction that would b…

---

## [Returning associated ActiveRecord data through a Rails web s](https://www.ruby-forum.com/t/returning-associated-activerecord-data-through-a-rails-web-s/108069)

<div class="topic-metadata">

**Author:** [@willbailey](https://www.ruby-forum.com/u/willbailey)\
**Replies:** 0\
**Last updated:** [June 28, 2007, 8:56pm UTC](https://www.ruby-forum.com/t/returning-associated-activerecord-data-through-a-rails-web-s/108069 "2007-06-28T20:56:26Z")

</div>

I have built a web service to allow people to query and manipulate my ActiveRecord data. Example: api\_method :find\_widget\_by\_id, :expects =\> \[:int\], :returns =\> \[Widget\] This works fairly well, since it returns my …

---

## [Exceptional plugin and edge?](https://www.ruby-forum.com/t/exceptional-plugin-and-edge/108067)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [June 28, 2007, 8:49pm UTC](https://www.ruby-forum.com/t/exceptional-plugin-and-edge/108067 "2007-06-28T20:49:26Z")

</div>

I’m having a problem getting the ‘exceptional’ plugin (http:// hg.nullstyle.com/exceptional/) to work under edge. Anytime I add the ‘handles AccessDeniedError, :with =\> :access\_denied’ to a controller I get an ‘unini…

---

## [Deprecation Warnings in API](https://www.ruby-forum.com/t/deprecation-warnings-in-api/108066)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [June 28, 2007, 8:44pm UTC](https://www.ruby-forum.com/t/deprecation-warnings-in-api/108066 "2007-06-28T20:44:23Z")

</div>

When I see deprecation warnings in the API… DEPRECATION WARNING: This method will become a separate plugin when Rails 2.0 ships. ## … how should this affect how I use the method? Should I not use the method? Or does …

---

## [Form\_tag routing error in \>= 1.2.2?](https://www.ruby-forum.com/t/form-tag-routing-error-in-1-2-2/107993)

<div class="topic-metadata">

**Author:** [@cjnkns](https://www.ruby-forum.com/u/cjnkns)\
**Replies:** 2\
**Last updated:** [June 28, 2007, 8:37pm UTC](https://www.ruby-forum.com/t/form-tag-routing-error-in-1-2-2/107993 "2007-06-28T20:37:04Z")

</div>

I have a simple feedback form handled by feedback\_controller. For methods I use “new” for the form and “create” to handle the feedback submitted. Routes are simple enough: map.resources :feedback What’s odd is this …

---

## [Dreamhost + backgroundrb?](https://www.ruby-forum.com/t/dreamhost-backgroundrb/108038)

<div class="topic-metadata">

**Author:** [@stewbawka](https://www.ruby-forum.com/u/stewbawka)\
**Replies:** 1\
**Last updated:** [June 28, 2007, 8:35pm UTC](https://www.ruby-forum.com/t/dreamhost-backgroundrb/108038 "2007-06-28T20:35:19Z")

</div>

Hey all, I’ve decided that my rails app needs backgroundrb to handle some background processing here and there… i have hosting with dreamhost and i’m starting to realize that it may be a problem getting my app to wor…

---

## [Grabbing xml feeds faster](https://www.ruby-forum.com/t/grabbing-xml-feeds-faster/108055)

<div class="topic-metadata">

**Author:** [@charlie\_caroff](https://www.ruby-forum.com/u/charlie_caroff)\
**Replies:** 1\
**Last updated:** [June 28, 2007, 8:04pm UTC](https://www.ruby-forum.com/t/grabbing-xml-feeds-faster/108055 "2007-06-28T20:04:14Z")

</div>

Hi, I’m grabbing a bunch of xml feeds and putting them into a page. I’d like to grab them in parallel, or otherwise get them faster. Any ideas? Charlie

---

## [File upload with REST POST?](https://www.ruby-forum.com/t/file-upload-with-rest-post/107546)

<div class="topic-metadata">

**Author:** [@chirag](https://www.ruby-forum.com/u/chirag)\
**Replies:** 4\
**Last updated:** [June 28, 2007, 5:44pm UTC](https://www.ruby-forum.com/t/file-upload-with-rest-post/107546 "2007-06-28T17:44:51Z")

</div>

Does anyone know how I exactly I would post a file from a non-web client? In my case, I want to upload different file formats (.csv, .txt, etc) from the client’s file system. How does this work exactly if I’m not usin…

---

## [How'd they do that?](https://www.ruby-forum.com/t/howd-they-do-that/108039)

<div class="topic-metadata">

**Author:** [@jeffpritchard](https://www.ruby-forum.com/u/jeffpritchard)\
**Replies:** 1\
**Last updated:** [June 28, 2007, 5:29pm UTC](https://www.ruby-forum.com/t/howd-they-do-that/108039 "2007-06-28T17:29:49Z")

</div>

You’ve seen the new widget builder in the Leopard demos where Steve goes to “any” website and chooses a section of it by drawing a rectangle around the area of interest, and then hits a magic button, and Voila, a new …

---

## [Rake test fails under InstantRails but not OSX](https://www.ruby-forum.com/t/rake-test-fails-under-instantrails-but-not-osx/108042)

<div class="topic-metadata">

**Author:** [@Olly\_L](https://www.ruby-forum.com/u/Olly_L)\
**Replies:** 1\
**Last updated:** [June 28, 2007, 5:25pm UTC](https://www.ruby-forum.com/t/rake-test-fails-under-instantrails-but-not-osx/108042 "2007-06-28T17:25:49Z")

</div>

I’ve found an intriguing issue with Rake. I develop under OSX and all my tests pass when I run ‘rake test’. I recently tried this on Windows XP using InstantRails and a few of the unit tests failed. Interestingly, i…

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

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