# Rails

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

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

---

## [ActiveResource and HTTP Basic Auth](https://www.ruby-forum.com/t/activeresource-and-http-basic-auth/123389)

<div class="topic-metadata">

**Author:** [@eggie5](https://www.ruby-forum.com/u/eggie5)\
**Replies:** 8\
**Last updated:** [December 19, 2007, 6:51am UTC](https://www.ruby-forum.com/t/activeresource-and-http-basic-auth/123389 "2007-12-19T06:51:07Z")

</div>

I have a REST API that is HTTP Basic Auth enabled. My user name is an email address: “removed\_email\_address@domain.invalid” and my password is “asdf” Logging in and everything work fine in the browser or curl. However…

---

## [Active Resource and non default model names](https://www.ruby-forum.com/t/active-resource-and-non-default-model-names/123573)

<div class="topic-metadata">

**Author:** [@eggie5](https://www.ruby-forum.com/u/eggie5)\
**Replies:** 2\
**Last updated:** [December 19, 2007, 6:41am UTC](https://www.ruby-forum.com/t/active-resource-and-non-default-model-names/123573 "2007-12-19T06:41:11Z")

</div>

I have a model (accessed restfully) named TranscoderQueue, it’s name is overridden to ‘TransocderQueue’ so it is accessed as ‘/ transocder\_queue’ as opposed to ‘/transocder\_qeueus’. class TranscoderQueue \< ActiveRecor…

---

## [ROR commands to create a folder](https://www.ruby-forum.com/t/ror-commands-to-create-a-folder/123613)

<div class="topic-metadata">

**Author:** [@nad](https://www.ruby-forum.com/u/nad)\
**Replies:** 1\
**Last updated:** [December 19, 2007, 6:41am UTC](https://www.ruby-forum.com/t/ror-commands-to-create-a-folder/123613 "2007-12-19T06:41:11Z")

</div>

hi All does any one have tried to create a folder from a ROR command. in my application i want to check weather their is existing folder with a given name and if it does not exists to make a new folder. is some one h…

---

## [Best practices for testing Routes?](https://www.ruby-forum.com/t/best-practices-for-testing-routes/123367)

<div class="topic-metadata">

**Author:** [@ryan\_s](https://www.ruby-forum.com/u/ryan_s)\
**Replies:** 8\
**Last updated:** [December 19, 2007, 5:49am UTC](https://www.ruby-forum.com/t/best-practices-for-testing-routes/123367 "2007-12-19T05:49:10Z")

</div>

I’m wondering if there are any accepted practices for testing routes in rails. For instance, if I added a route like: map.root :controller =\> ‘welcome’ And I wanted to add an assertion like: assert\_routing ‘’, :cont…

---

## [Markup plugin recommendations](https://www.ruby-forum.com/t/markup-plugin-recommendations/123608)

<div class="topic-metadata">

**Author:** [@chrisolsen](https://www.ruby-forum.com/u/chrisolsen)\
**Replies:** 1\
**Last updated:** [December 19, 2007, 5:44am UTC](https://www.ruby-forum.com/t/markup-plugin-recommendations/123608 "2007-12-19T05:44:45Z")

</div>

What is the recommended plugin for html markup? I see there is a few of them out there (redcloth and bluecloth), but I have no experience with any of them, although BlueCloth looks pretty nice. Any advice is apprecia…

---

## [RFacebook | Help required](https://www.ruby-forum.com/t/rfacebook-help-required/123514)

<div class="topic-metadata">

**Author:** [@Haris\_G](https://www.ruby-forum.com/u/Haris_G)\
**Replies:** 2\
**Last updated:** [December 19, 2007, 4:36am UTC](https://www.ruby-forum.com/t/rfacebook-help-required/123514 "2007-12-19T04:36:01Z")

</div>

Hello all, I am developing a basic application using RFacebook. The tutorial Im following is from http://www.liverail.net/articles/2007/6/29/tutorial-on-developing-a-facebook-platform-application-with-ruby-on-rails A…

---

## [Assets%d.domain.com](https://www.ruby-forum.com/t/assets-d-domain-com/123490)

<div class="topic-metadata">

**Author:** [@luisS\_syndeomedia](https://www.ruby-forum.com/u/luisS_syndeomedia)\
**Replies:** 3\
**Last updated:** [December 19, 2007, 4:09am UTC](https://www.ruby-forum.com/t/assets-d-domain-com/123490 "2007-12-19T04:09:41Z")

</div>

Stupid question time: I’ve recently moved our site to Rails 2.0 and am trying to get the asset host functionality working. I followed the docs and added this line to production.rb: config.action\_controller.asset\_host…

---

## [Erb \<% vs \<%=](https://www.ruby-forum.com/t/erb-vs/123597)

<div class="topic-metadata">

**Author:** [@doug](https://www.ruby-forum.com/u/doug)\
**Replies:** 6\
**Last updated:** [December 19, 2007, 3:47am UTC](https://www.ruby-forum.com/t/erb-vs/123597 "2007-12-19T03:47:29Z")

</div>

I was reading the erb section of Progamming Ruby this morning. WRT \< %, I note that they say, “Insert the given Ruby code at this point in the generated program. If it outputs anything include this output in the res…

---

## [Escaping user data in\_place\_editor](https://www.ruby-forum.com/t/escaping-user-data-in-place-editor/123605)

<div class="topic-metadata">

**Author:** [@tomn](https://www.ruby-forum.com/u/tomn)\
**Replies:** 1\
**Last updated:** [December 19, 2007, 2:47am UTC](https://www.ruby-forum.com/t/escaping-user-data-in-place-editor/123605 "2007-12-19T02:47:00Z")

</div>

Uh oh, I just got the in\_place\_editor\_field almost working and I realized that I was no longer escaping all user inputted text. I’ve caught the general drift that evil people will eat my database alive if I display …

---

## [Testing rendered output](https://www.ruby-forum.com/t/testing-rendered-output/123582)

<div class="topic-metadata">

**Author:** [@plambert](https://www.ruby-forum.com/u/plambert)\
**Replies:** 1\
**Last updated:** [December 19, 2007, 2:30am UTC](https://www.ruby-forum.com/t/testing-rendered-output/123582 "2007-12-19T02:30:53Z")

</div>

I would like to check that one of the methods in my controller produces the expected rendered output. The method in question just returns a JSON string, so it’s not like I’m trying to check a whole web page or someth…

---

## [Rails is redirecting multiple times?](https://www.ruby-forum.com/t/rails-is-redirecting-multiple-times/123603)

<div class="topic-metadata">

**Author:** [@nhorton](https://www.ruby-forum.com/u/nhorton)\
**Replies:** 1\
**Last updated:** [December 19, 2007, 2:30am UTC](https://www.ruby-forum.com/t/rails-is-redirecting-multiple-times/123603 "2007-12-19T02:30:53Z")

</div>

I am getting some very strange behavior where Rails seems to be sending multiple redirects to the client from one action. The code does not suggest this could happen, but I am seeing the following log entries: Proce…

---

## [LDAP authentication with SSL](https://www.ruby-forum.com/t/ldap-authentication-with-ssl/122802)

<div class="topic-metadata">

**Author:** [@Cynthia\_K](https://www.ruby-forum.com/u/Cynthia_K)\
**Replies:** 2\
**Last updated:** [December 19, 2007, 2:18am UTC](https://www.ruby-forum.com/t/ldap-authentication-with-ssl/122802 "2007-12-19T02:18:36Z")

</div>

I am trying to get LDAP authentication working with SSL encryption. I have finally figured out how to authenticate against our central LDAP server with SSL (simple authentication, no SASL). To get OpenLDAP’s ldapsear…

---

## [Asking for help for in\_place\_editor\_field](https://www.ruby-forum.com/t/asking-for-help-for-in-place-editor-field/123571)

<div class="topic-metadata">

**Author:** [@eggman2001](https://www.ruby-forum.com/u/eggman2001)\
**Replies:** 2\
**Last updated:** [December 19, 2007, 2:01am UTC](https://www.ruby-forum.com/t/asking-for-help-for-in-place-editor-field/123571 "2007-12-19T02:01:57Z")

</div>

The in-place editor works for me, but not when I’m iterating over objects in an array. I have the following in my view: \<% @session\_types.each do |s| %\> \<%= in\_place\_editor\_field :s, 'name' %\> \<% end %\> @session\_ty…

---

## [Memory management in long running scripts](https://www.ruby-forum.com/t/memory-management-in-long-running-scripts/123600)

<div class="topic-metadata">

**Author:** [@simon1](https://www.ruby-forum.com/u/simon1)\
**Replies:** 0\
**Last updated:** [December 19, 2007, 1:56am UTC](https://www.ruby-forum.com/t/memory-management-in-long-running-scripts/123600 "2007-12-19T01:56:24Z")

</div>

Hi, I have a script that runs for a long time, and seems to use up a large chunk of memory, building up fairly quickly, but then never really going above 55% of the system memory. This is the basic structure of my s…

---

## [Pushing code](https://www.ruby-forum.com/t/pushing-code/123594)

<div class="topic-metadata">

**Author:** [@chovy](https://www.ruby-forum.com/u/chovy)\
**Replies:** 0\
**Last updated:** [December 19, 2007, 1:01am UTC](https://www.ruby-forum.com/t/pushing-code/123594 "2007-12-19T01:01:27Z")

</div>

Where’s the official explanation on pushing/releasing code? – Anthony E. 408-656-2473 http://anthony.ettinger.name var (bonita, farley) = new Dog; farley.barks(“very loud”); bonita.barks(“at strangers”);

---

## [How to include an java applet in a rhtml page](https://www.ruby-forum.com/t/how-to-include-an-java-applet-in-a-rhtml-page/123137)

<div class="topic-metadata">

**Author:** [@abraham](https://www.ruby-forum.com/u/abraham)\
**Replies:** 4\
**Last updated:** [December 19, 2007, 12:57am UTC](https://www.ruby-forum.com/t/how-to-include-an-java-applet-in-a-rhtml-page/123137 "2007-12-19T00:57:57Z")

</div>

Hi Im quite new to rails and was wondering how to include a java applet in a rhtml file? Is it the same as in HTML? for example: Thank You!

---

## [Assets in the head?](https://www.ruby-forum.com/t/assets-in-the-head/123592)

<div class="topic-metadata">

**Author:** [@antonaylward](https://www.ruby-forum.com/u/antonaylward)\
**Replies:** 1\
**Last updated:** [December 19, 2007, 12:54am UTC](https://www.ruby-forum.com/t/assets-in-the-head/123592 "2007-12-19T00:54:27Z")

</div>

All the examples I see, AWDWR, the forums, have the use of “stylesheet\_link\_tag” in the section of the template. Similarly for javascript. But if my template is including partials for actions, those action might req…

---

## [Active Directory / IE Auto Authentication](https://www.ruby-forum.com/t/active-directory-ie-auto-authentication/123578)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 3\
**Last updated:** [December 19, 2007, 12:46am UTC](https://www.ruby-forum.com/t/active-directory-ie-auto-authentication/123578 "2007-12-19T00:46:15Z")

</div>

Has anyone been able to get some sort of Active Directory auto login functionality working in a rails app? Doesn’t IE make available some kind of ldap token that I could grab? Thanks, Kevin

---

## [Different DB index types in migrations?](https://www.ruby-forum.com/t/different-db-index-types-in-migrations/123589)

<div class="topic-metadata">

**Author:** [@tekwiz](https://www.ruby-forum.com/u/tekwiz)\
**Replies:** 0\
**Last updated:** [December 19, 2007, 12:18am UTC](https://www.ruby-forum.com/t/different-db-index-types-in-migrations/123589 "2007-12-19T00:18:12Z")

</div>

Is there any way to specify a specific index type in a migration? Eg. Hash, Tree, Heap, etc? Like add\_index :user, :name, :type =\> :tree If not, what type does the migration use?

---

## [Little question about RESTful Rails](https://www.ruby-forum.com/t/little-question-about-restful-rails/123577)

<div class="topic-metadata">

**Author:** [@josh](https://www.ruby-forum.com/u/josh)\
**Replies:** 3\
**Last updated:** [December 18, 2007, 11:53pm UTC](https://www.ruby-forum.com/t/little-question-about-restful-rails/123577 "2007-12-18T23:53:02Z")

</div>

Hi all I have a model called “party\_organisator” connected to its controller PartyOrganisatorsController. I’m switching to RESTful routes, so I’m having map.resources :party\_organisators My “problem” is: I have to p…

---

## [Where is sqlite3?](https://www.ruby-forum.com/t/where-is-sqlite3/123473)

<div class="topic-metadata">

**Author:** [@explainer](https://www.ruby-forum.com/u/explainer)\
**Replies:** 13\
**Last updated:** [December 18, 2007, 11:40pm UTC](https://www.ruby-forum.com/t/where-is-sqlite3/123473 "2007-12-18T23:40:44Z")

</div>

I just went through the first demo in the AgileWeb D. with Rails book, and it seems that a new dependency has broken the demo. MissingSourceFile in SayController#hello no such file to load – sqlite3 RAILS\_ROOT: /home…

---

## [Rails 2.0 functional tests fail, Testscenario changed?](https://www.ruby-forum.com/t/rails-2-0-functional-tests-fail-testscenario-changed/123515)

<div class="topic-metadata">

**Author:** [@rafael](https://www.ruby-forum.com/u/rafael)\
**Replies:** 2\
**Last updated:** [December 18, 2007, 10:39pm UTC](https://www.ruby-forum.com/t/rails-2-0-functional-tests-fail-testscenario-changed/123515 "2007-12-18T22:39:16Z")

</div>

Hi everybody may be somebody has a hint for that issue, that costs me now hours and hours and finally it will be a tiny thing, I guess. Anyway thank you very much in advance for helping here. Our Approach: Admin and…

---

## [Problem iterating over and array of objects](https://www.ruby-forum.com/t/problem-iterating-over-and-array-of-objects/123566)

<div class="topic-metadata">

**Author:** [@spokra](https://www.ruby-forum.com/u/spokra)\
**Replies:** 1\
**Last updated:** [December 18, 2007, 10:14pm UTC](https://www.ruby-forum.com/t/problem-iterating-over-and-array-of-objects/123566 "2007-12-18T22:14:41Z")

</div>

what am i missing here . the line a.each { |B| fails with the error NoMethodError: You have a nil object when you didn’t expect it! You might have expected an instance of Array. The error occurred while evaluating n…

---

## [37 Signals blog f'ed up?](https://www.ruby-forum.com/t/37-signals-blog-fed-up/123564)

<div class="topic-metadata">

**Author:** [@joe](https://www.ruby-forum.com/u/joe)\
**Replies:** 1\
**Last updated:** [December 18, 2007, 10:11pm UTC](https://www.ruby-forum.com/t/37-signals-blog-fed-up/123564 "2007-12-18T22:11:11Z")

</div>

What’s up with 37 Signals blog? Clicking blog links causes Firefox to open an “open with…” window and with Safari it redirects to Feedburner. WTF?

---

## [Attachment\_fu and S3 -- cannot download file correctly](https://www.ruby-forum.com/t/attachment-fu-and-s3-cannot-download-file-correctly/123565)

<div class="topic-metadata">

**Author:** [@jko170](https://www.ruby-forum.com/u/jko170)\
**Replies:** 2\
**Last updated:** [December 18, 2007, 9:56pm UTC](https://www.ruby-forum.com/t/attachment-fu-and-s3-cannot-download-file-correctly/123565 "2007-12-18T21:56:33Z")

</div>

I don’t know why this isn’t working. If I download a word doc that I uploaded, all I get is the S3 file path in the document. If I access the s3 file path directly in my browser, it downloads the file correctly. Here…

---

## [Space Character in Textbox](https://www.ruby-forum.com/t/space-character-in-textbox/123575)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [December 18, 2007, 9:51pm UTC](https://www.ruby-forum.com/t/space-character-in-textbox/123575 "2007-12-18T21:51:16Z")

</div>

Hello, Background: Development is done using InstantRails on a Windows Machine and MySQL Database. Production environment is a Debian server running a mongrel cluster w/ apache, connected to a MSSQL 2005 database se…

---

## [\<% form\_for(@post) do |f| %\> does not work!](https://www.ruby-forum.com/t/form-for-post-do-f-does-not-work/123363)

<div class="topic-metadata">

**Author:** [@josh](https://www.ruby-forum.com/u/josh)\
**Replies:** 4\
**Last updated:** [December 18, 2007, 9:50pm UTC](https://www.ruby-forum.com/t/form-for-post-do-f-does-not-work/123363 "2007-12-18T21:50:59Z")

</div>

Hi all I just stumbled over the examples in that tells me I could just use \<% form\_for(@post) do |f| %\> which should expand to \<% form\_for :post, @post, :url =\> post\_path(@post), :html =\> { :method =\> :put, :clas…

---

## [\[ANN\] GoRuCo CFP](https://www.ruby-forum.com/t/ann-goruco-cfp/123570)

<div class="topic-metadata">

**Author:** [@jjkiesch](https://www.ruby-forum.com/u/jjkiesch)\
**Replies:** 0\
**Last updated:** [December 18, 2007, 9:35pm UTC](https://www.ruby-forum.com/t/ann-goruco-cfp/123570 "2007-12-18T21:35:26Z")

</div>

GoRuCo, a one-day, single-track event in New York City dedicated to everything Ruby, is now accepting proposal papers. This conference will be held on Saturday, April 26th in the Manhattan campus of Pace University, o…

---

## [Cannot upgrade to Rails 2.0.2 on Mac OS X 10.5.1](https://www.ruby-forum.com/t/cannot-upgrade-to-rails-2-0-2-on-mac-os-x-10-5-1/123568)

<div class="topic-metadata">

**Author:** [@Hardbap](https://www.ruby-forum.com/u/Hardbap)\
**Replies:** 2\
**Last updated:** [December 18, 2007, 9:30pm UTC](https://www.ruby-forum.com/t/cannot-upgrade-to-rails-2-0-2-on-mac-os-x-10-5-1/123568 "2007-12-18T21:30:43Z")

</div>

It fails on activesupport with: ERROR: While executing gem … (OpenURI::HTTPError) 404 Not Found here is the command: sudo gem install rails -y --source http://gems.rubyonrails.org

---

## [Files didn't get checked out from repository during deployme](https://www.ruby-forum.com/t/files-didnt-get-checked-out-from-repository-during-deployme/123567)

<div class="topic-metadata">

**Author:** [@weloki](https://www.ruby-forum.com/u/weloki)\
**Replies:** 0\
**Last updated:** [December 18, 2007, 9:26pm UTC](https://www.ruby-forum.com/t/files-didnt-get-checked-out-from-repository-during-deployme/123567 "2007-12-18T21:26:39Z")

</div>

Hi, I recently deployed to a production server from a development machine using capistrano and some files failed to get checked out of the subversion repository, so the deployment ended up being a lemon. I rolled it …

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

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