# Rails

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

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

---

## [How many hits per second can Rails support on dreamhost?](https://www.ruby-forum.com/t/how-many-hits-per-second-can-rails-support-on-dreamhost/166198)

<div class="topic-metadata">

**Author:** [@winterheat](https://www.ruby-forum.com/u/winterheat)\
**Replies:** 1\
**Last updated:** [April 22, 2009, 6:06pm UTC](https://www.ruby-forum.com/t/how-many-hits-per-second-can-rails-support-on-dreamhost/166198 "2009-04-22T18:06:30Z")

</div>

i wonder what is a ballpark number that Rails can support for number of hits per second, if we are hosting RoR on dreamhost or netfirms as a separate virtual server as a standalone machine maybe even 1 hit per second…

---

## [What is the reason that the authenticity\_token hidden field gets wrapped in a DIV?](https://www.ruby-forum.com/t/what-is-the-reason-that-the-authenticity-token-hidden-field-gets-wrapped-in-a-div/166100)

<div class="topic-metadata">

**Author:** [@phallstrom](https://www.ruby-forum.com/u/phallstrom)\
**Replies:** 3\
**Last updated:** [April 22, 2009, 5:58pm UTC](https://www.ruby-forum.com/t/what-is-the-reason-that-the-authenticity-token-hidden-field-gets-wrapped-in-a-div/166100 "2009-04-22T17:58:13Z")

</div>

Hi all - This has never been an issue for me until today. However I have a form and Rails is inserting it’s hidden authenticity\_token field. It wraps it in a div with a style. And doing that messes things up for m…

---

## [Weird Issue with IE6 regarding session](https://www.ruby-forum.com/t/weird-issue-with-ie6-regarding-session/166190)

<div class="topic-metadata">

**Author:** [@Geekyra](https://www.ruby-forum.com/u/Geekyra)\
**Replies:** 0\
**Last updated:** [April 22, 2009, 5:22pm UTC](https://www.ruby-forum.com/t/weird-issue-with-ie6-regarding-session/166190 "2009-04-22T17:22:49Z")

</div>

Hello, i got a weird situation regarding IE6 and don’t know if the problem is on Rails itself, on IE, or on our own Sharehosting but the problem is like this : There r user trying to login to our site and it’s success…

---

## [Connection reset by peer (Errno::ECONNRESET)](https://www.ruby-forum.com/t/connection-reset-by-peer-errno-econnreset/166154)

<div class="topic-metadata">

**Author:** [@arunvoip](https://www.ruby-forum.com/u/arunvoip)\
**Replies:** 5\
**Last updated:** [April 22, 2009, 4:29pm UTC](https://www.ruby-forum.com/t/connection-reset-by-peer-errno-econnreset/166154 "2009-04-22T16:29:11Z")

</div>

Hi, I’m a new bee to Ruby and I’m trying to parse the html content from a website using net/http. All urls work fine except for “Control API access with domain-wide delegation - Google Workspace Admin Help”. When I t…

---

## [Sql query vs Ruby methods](https://www.ruby-forum.com/t/sql-query-vs-ruby-methods/166176)

<div class="topic-metadata">

**Author:** [@nike](https://www.ruby-forum.com/u/nike)\
**Replies:** 2\
**Last updated:** [April 22, 2009, 4:18pm UTC](https://www.ruby-forum.com/t/sql-query-vs-ruby-methods/166176 "2009-04-22T16:18:00Z")

</div>

In am using the following code in my application,both the applications execute the same result.First one executes fastly than the second one,How can i modify the second one since it is fetching all the values, from th…

---

## [Now it says sqlite.dll is missing... how to solve?](https://www.ruby-forum.com/t/now-it-says-sqlite-dll-is-missing-how-to-solve/166177)

<div class="topic-metadata">

**Author:** [@winterheat](https://www.ruby-forum.com/u/winterheat)\
**Replies:** 0\
**Last updated:** [April 22, 2009, 3:54pm UTC](https://www.ruby-forum.com/t/now-it-says-sqlite-dll-is-missing-how-to-solve/166177 "2009-04-22T15:54:09Z")

</div>

i pretty much follow everything from http://agilo.us/2009/03/15/rails-on-windows/ except i used gem install -v1.2.3 sqlite3-ruby and now if i create a new project and use http://localhost:3000 and click on a javas…

---

## [How come "gem install sqlite3-ruby" will fails on PC?](https://www.ruby-forum.com/t/how-come-gem-install-sqlite3-ruby-will-fails-on-pc/166172)

<div class="topic-metadata">

**Author:** [@winterheat](https://www.ruby-forum.com/u/winterheat)\
**Replies:** 0\
**Last updated:** [April 22, 2009, 3:20pm UTC](https://www.ruby-forum.com/t/how-come-gem-install-sqlite3-ruby-will-fails-on-pc/166172 "2009-04-22T15:20:43Z")

</div>

I wonder why gem install sqlite3-ruby will fail on a PC with Vista? when i do a search on google for sqlite3-ruby, I see that 1.2.4 was actually done in August 2008. So does that mean for 8 months (from 2008-08 to …

---

## [Error on running any controller- Noob question](https://www.ruby-forum.com/t/error-on-running-any-controller-noob-question/166144)

<div class="topic-metadata">

**Author:** [@PNDUR](https://www.ruby-forum.com/u/PNDUR)\
**Replies:** 3\
**Last updated:** [April 22, 2009, 3:14pm UTC](https://www.ruby-forum.com/t/error-on-running-any-controller-noob-question/166144 "2009-04-22T15:14:53Z")

</div>

Hi , I am running on Vista with webrick … When I generate controllers , models and views I get an error as under. C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active\_support/ dependencies.rb:105:in const\_m…

---

## [Localization expected, got HashWithIndifferentAccess](https://www.ruby-forum.com/t/localization-expected-got-hashwithindifferentaccess/166074)

<div class="topic-metadata">

**Author:** [@felipecsl](https://www.ruby-forum.com/u/felipecsl)\
**Replies:** 2\
**Last updated:** [April 22, 2009, 3:06pm UTC](https://www.ruby-forum.com/t/localization-expected-got-hashwithindifferentaccess/166074 "2009-04-22T15:06:04Z")

</div>

Well I Have this models Localization has\_many :event Event belongs\_to :localization in the view events/new.html.erb \<% f.fields\_for :localization do |L| %\> \<%= l.text\_field :country %\> \<%= l.text\_field :state %\> \<%…

---

## [\[ANN/ADV\] Ruby 1.9 Envycasts: "What You Need To Know", parts 1 and 2](https://www.ruby-forum.com/t/ann-adv-ruby-1-9-envycasts-what-you-need-to-know-parts-1-and-2/166170)

<div class="topic-metadata">

**Author:** [@David\_ASBlack](https://www.ruby-forum.com/u/David_ASBlack)\
**Replies:** 0\
**Last updated:** [April 22, 2009, 2:53pm UTC](https://www.ruby-forum.com/t/ann-adv-ruby-1-9-envycasts-what-you-need-to-know-parts-1-and-2/166170 "2009-04-22T14:53:40Z")

</div>

Hi – Rails Envy (the “I’m xxx”, “And I’m Ruby on Rails” people) has produced two Envycasts on Ruby 1.9, featuring me presenting new 1.9 features, some tips, a few pitfalls to watch for if you’re migrating code, and g…

---

## [Rails and haml](https://www.ruby-forum.com/t/rails-and-haml/166167)

<div class="topic-metadata">

**Author:** [@nilez](https://www.ruby-forum.com/u/nilez)\
**Replies:** 0\
**Last updated:** [April 22, 2009, 2:45pm UTC](https://www.ruby-forum.com/t/rails-and-haml/166167 "2009-04-22T14:45:40Z")

</div>

hi all what ia haml:loud used for?

---

## [Restful\_authentication: 3 unit tests break!](https://www.ruby-forum.com/t/restful-authentication-3-unit-tests-break/165995)

<div class="topic-metadata">

**Author:** [@josh](https://www.ruby-forum.com/u/josh)\
**Replies:** 5\
**Last updated:** [April 22, 2009, 1:47pm UTC](https://www.ruby-forum.com/t/restful-authentication-3-unit-tests-break/165995 "2009-04-22T13:47:51Z")

</div>

Hi all I have installed restful\_authentication. However, I didn’t active the email-verification option in the first way, so I tried to activate it manually some time later. But now I have problems with my application …

---

## [Facebooker cannot post event](https://www.ruby-forum.com/t/facebooker-cannot-post-event/160386)

<div class="topic-metadata">

**Author:** [@arturaz](https://www.ruby-forum.com/u/arturaz)\
**Replies:** 6\
**Last updated:** [April 22, 2009, 1:28pm UTC](https://www.ruby-forum.com/t/facebooker-cannot-post-event/160386 "2009-04-22T13:28:40Z")

</div>

I’m trying to do it with this code: def create\_event(options={}) options.assert\_valid\_keys(:uid, :event) session = create\_session event = options\[:event\] # Note: The start\_time and end\_time are the times that were i…

---

## [Rspec](https://www.ruby-forum.com/t/rspec/166158)

<div class="topic-metadata">

**Author:** [@shakthi](https://www.ruby-forum.com/u/shakthi)\
**Replies:** 1\
**Last updated:** [April 22, 2009, 12:50pm UTC](https://www.ruby-forum.com/t/rspec/166158 "2009-04-22T12:50:52Z")

</div>

Hi, Any one help me to write test cases using rspec… send some related links that contains basic steps or some sample application test cases…

---

## [Why .send?](https://www.ruby-forum.com/t/why-send/165919)

<div class="topic-metadata">

**Author:** [@danfrost](https://www.ruby-forum.com/u/danfrost)\
**Replies:** 4\
**Last updated:** [April 22, 2009, 12:40pm UTC](https://www.ruby-forum.com/t/why-send/165919 "2009-04-22T12:40:18Z")

</div>

Hi all, Could anyone tell me why you use .send when callling “include” in rails plugins?? E.g. ActiveRecord::Base.send :include, SomeClass::ClassMethods Cheers, Dan

---

## [Ruby and Terminal - why didn't anyone explain this?](https://www.ruby-forum.com/t/ruby-and-terminal-why-didnt-anyone-explain-this/166043)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 5\
**Last updated:** [April 22, 2009, 11:50am UTC](https://www.ruby-forum.com/t/ruby-and-terminal-why-didnt-anyone-explain-this/166043 "2009-04-22T11:50:27Z")

</div>

I’m learning RoR. I’ve been using PHP for 6 years now. I bought the new Agile Web Dev With Rails book and it took me about 9 hours to get the first project going. No where did it, or anywhere else explain the whole t…

---

## [Problem trying to restore last visited page](https://www.ruby-forum.com/t/problem-trying-to-restore-last-visited-page/165922)

<div class="topic-metadata">

**Author:** [@cojones](https://www.ruby-forum.com/u/cojones)\
**Replies:** 4\
**Last updated:** [April 22, 2009, 11:38am UTC](https://www.ruby-forum.com/t/problem-trying-to-restore-last-visited-page/165922 "2009-04-22T11:38:29Z")

</div>

Hello, I have a website that works with remote procedure only. There’s a welcome action that actually renders the website and whenever you click somewhere it only works with “render :update…”. Now I would like to aut…

---

## [Date parsing issues](https://www.ruby-forum.com/t/date-parsing-issues/166151)

<div class="topic-metadata">

**Author:** [@declan](https://www.ruby-forum.com/u/declan)\
**Replies:** 2\
**Last updated:** [April 22, 2009, 11:24am UTC](https://www.ruby-forum.com/t/date-parsing-issues/166151 "2009-04-22T11:24:32Z")

</div>

Hi, I’m having problem at the moment trying to parse a date. I’m reading in 2 dates from the view and want to search a DB for records between the 2 dates. The 2 dates I read are in the format ‘%d.%m.%Y’, e.g. 22.04.2…

---

## [Any resources about rhtml study?](https://www.ruby-forum.com/t/any-resources-about-rhtml-study/196947)

<div class="topic-metadata">

**Author:** [@chenpassion](https://www.ruby-forum.com/u/chenpassion)\
**Replies:** 4\
**Last updated:** [April 22, 2009, 11:19am UTC](https://www.ruby-forum.com/t/any-resources-about-rhtml-study/196947 "2009-04-22T11:19:15Z")

</div>

I am new to Rails and I would like to study the Rhtml grammar and practice the basic elements in Rhtml. But I can’t find enough resource for my study. Would any guys show some great blog or documents or articles to m…

---

## [Acts\_as\_mappable :through relationship is not working](https://www.ruby-forum.com/t/acts-as-mappable-through-relationship-is-not-working/166146)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [April 22, 2009, 11:18am UTC](https://www.ruby-forum.com/t/acts-as-mappable-through-relationship-is-not-working/166146 "2009-04-22T11:18:40Z")

</div>

Hello- I have two models (User and Locations). One user can have multiple locations (home, office etc…) The location table has the lat and lngs. class User \< ActiveRecord::Base has\_many :locations acts\_as\_mappable…

---

## [Rspec](https://www.ruby-forum.com/t/rspec/166143)

<div class="topic-metadata">

**Author:** [@shakthi](https://www.ruby-forum.com/u/shakthi)\
**Replies:** 1\
**Last updated:** [April 22, 2009, 10:22am UTC](https://www.ruby-forum.com/t/rspec/166143 "2009-04-22T10:22:53Z")

</div>

How i can write spec for already existing model??? i need to write the test cases for already existing model…

---

## [Date Time format in Ruby](https://www.ruby-forum.com/t/date-time-format-in-ruby/166065)

<div class="topic-metadata">

**Author:** [@nike](https://www.ruby-forum.com/u/nike)\
**Replies:** 2\
**Last updated:** [April 22, 2009, 10:16am UTC](https://www.ruby-forum.com/t/date-time-format-in-ruby/166065 "2009-04-22T10:16:59Z")

</div>

Can anyone give a suggestion so that i can able to format the date as like this 3th - 5th June 2009

---

## [Proxy 502 error on file upload with rails 2.3.2](https://www.ruby-forum.com/t/proxy-502-error-on-file-upload-with-rails-2-3-2/166147)

<div class="topic-metadata">

**Author:** [@mattias](https://www.ruby-forum.com/u/mattias)\
**Replies:** 0\
**Last updated:** [April 22, 2009, 9:38am UTC](https://www.ruby-forum.com/t/proxy-502-error-on-file-upload-with-rails-2-3-2/166147 "2009-04-22T09:38:17Z")

</div>

I have the following running on a FreeBSD 6.0 Rails 2.3.2 Mongrel 1.1.5 Mongrel\_cluster 1.0.5 Apache 2.2.8 with proxy balancer After updateing to Raisl 2.3.2 i get a proxy error when uploading larger files, You can…

---

## [Forgot attachment for SWF player tracks are 'undefined'](https://www.ruby-forum.com/t/forgot-attachment-for-swf-player-tracks-are-undefined/196946)

<div class="topic-metadata">

**Author:** [@rubio](https://www.ruby-forum.com/u/rubio)\
**Replies:** 1\
**Last updated:** [April 22, 2009, 7:32am UTC](https://www.ruby-forum.com/t/forgot-attachment-for-swf-player-tracks-are-undefined/196946 "2009-04-22T07:32:34Z")

</div>

The problem: I finally got the playerMultipleList.swf to appear on the webpage, and I was really excited even tho the playlist didn’t show up. Loading playlist flashes by, then just says undefined (please see screen s…

---

## [Custom Error validation](https://www.ruby-forum.com/t/custom-error-validation/166139)

<div class="topic-metadata">

**Author:** [@david](https://www.ruby-forum.com/u/david)\
**Replies:** 0\
**Last updated:** [April 22, 2009, 7:17am UTC](https://www.ruby-forum.com/t/custom-error-validation/166139 "2009-04-22T07:17:49Z")

</div>

I have a couple of concerns here. Should I only use model methods to return objects and then save those objects in the controller? or is it okay to save within a model method like below? The other thing is I have crea…

---

## [UltraSphinx Concatenate Syntax?](https://www.ruby-forum.com/t/ultrasphinx-concatenate-syntax/166133)

<div class="topic-metadata">

**Author:** [@internetchris](https://www.ruby-forum.com/u/internetchris)\
**Replies:** 0\
**Last updated:** [April 22, 2009, 5:58am UTC](https://www.ruby-forum.com/t/ultrasphinx-concatenate-syntax/166133 "2009-04-22T05:58:18Z")

</div>

Hey everyone, I hope someone on this group can help me with an UltraSphinx question. I am using rails 2.3.2 and I am trying to figure out how to search my “has\_many” model. Here’s the example… I can search my “Accoun…

---

## [Error applying a patch to schema\_dumper\_test.rb](https://www.ruby-forum.com/t/error-applying-a-patch-to-schema-dumper-test-rb/166128)

<div class="topic-metadata">

**Author:** [@oferar](https://www.ruby-forum.com/u/oferar)\
**Replies:** 0\
**Last updated:** [April 22, 2009, 5:09am UTC](https://www.ruby-forum.com/t/error-applying-a-patch-to-schema-dumper-test-rb/166128 "2009-04-22T05:09:10Z")

</div>

Dear Fellows, I’m having hard times applying a patch in the schema\_dumper\_test.rb to fix the blob issue with default value with mysql. Here is the error : activerecord-2.3.2\]$ sudo patch -p0 \< patch\_mysql.patch patc…

---

## [Can we decrypt the cipher encrypted using Digest::SHA1.hexdigest](https://www.ruby-forum.com/t/can-we-decrypt-the-cipher-encrypted-using-digest-sha1-hexdigest/166061)

<div class="topic-metadata">

**Author:** [@SSZSmSS](https://www.ruby-forum.com/u/SSZSmSS)\
**Replies:** 11\
**Last updated:** [April 22, 2009, 4:04am UTC](https://www.ruby-forum.com/t/can-we-decrypt-the-cipher-encrypted-using-digest-sha1-hexdigest/166061 "2009-04-22T04:04:21Z")

</div>

what i have done is as follows password = Digest::SHA1.hexdigest("#{salt}:#{password}") pass1 = Digest::SHA1.hexdigest("#{salt}:asdfgh") pass2 = Digest::SHA1.hexdigest("#{salt}:asdfgh") pass3 = Digest::SHA1.hexdigest…

---

## [Can I do a "named\_scope" for this scenario?](https://www.ruby-forum.com/t/can-i-do-a-named-scope-for-this-scenario/165388)

<div class="topic-metadata">

**Author:** [@greg](https://www.ruby-forum.com/u/greg)\
**Replies:** 4\
**Last updated:** [April 22, 2009, 3:33am UTC](https://www.ruby-forum.com/t/can-i-do-a-named-scope-for-this-scenario/165388 "2009-04-22T03:33:49Z")

</div>

Hi, Is it possible to do a named\_scope (or “has\_many, :through…”) for this scenario: Class: Node Class: Relationships node\_id dependant\_node\_id QUESTION: So how can I get a “has\_many” or “named\_scope” happening w…

---

## [SWF player tracks are 'undefined'](https://www.ruby-forum.com/t/swf-player-tracks-are-undefined/166124)

<div class="topic-metadata">

**Author:** [@rubio](https://www.ruby-forum.com/u/rubio)\
**Replies:** 0\
**Last updated:** [April 22, 2009, 3:30am UTC](https://www.ruby-forum.com/t/swf-player-tracks-are-undefined/166124 "2009-04-22T03:30:07Z")

</div>

The problem: I finally got the playerMultipleList.swf to appear on the webpage, and I was really excited even tho the playlist didn’t show up. Loading playlist flashes by, then just says undefined (please see screen s…

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

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