# Top

**URL:** https://www.ruby-forum.com/top.md?page=798

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

---

## [Installation Error?](https://www.ruby-forum.com/t/installation-error/203915)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 8\
**Last updated:** [March 2, 2011, 10:41pm UTC](https://www.ruby-forum.com/t/installation-error/203915 "2011-03-02T22:41:31Z")

</div>

Hi, When I tried to install gems, I got the following error: ERROR: While executing gem …Errno::EACCES Permission denied - ruby/1.9.1/drb and when I tried gem install rails, I got ERROR: Error installing rails: rai…

---

## [Java Classes from Ruby w/ C libs](https://www.ruby-forum.com/t/java-classes-from-ruby-w-c-libs/191987)

<div class="topic-metadata">

**Author:** [@Skyler\_Onken](https://www.ruby-forum.com/u/Skyler_Onken)\
**Replies:** 8\
**Last updated:** [July 28, 2010, 2:28pm UTC](https://www.ruby-forum.com/t/java-classes-from-ruby-w-c-libs/191987 "2010-07-28T14:28:52Z")

</div>

Hi, Im new to Ruby and JRuby, but had a question: I am currently trying to generate Java classes from RFuzz’s random.rb. The problem ( i believe) is that it random.rb uses a method contained in a c library. I can ge…

---

## [Hash name increment on iteration?](https://www.ruby-forum.com/t/hash-name-increment-on-iteration/186508)

<div class="topic-metadata">

**Author:** [@shaz](https://www.ruby-forum.com/u/shaz)\
**Replies:** 8\
**Last updated:** [April 11, 2010, 5:32pm UTC](https://www.ruby-forum.com/t/hash-name-increment-on-iteration/186508 "2010-04-11T17:32:38Z")

</div>

Is it possible to add to the name of a hash while running through an iteration? What I’m trying to achieve: SomeArray.each do |i, name, content| info\[i+1\] = { “name” =\> name, “content” =\> content } end So that I can…

---

## [Capistrano e le release](https://www.ruby-forum.com/t/capistrano-e-le-release/161625)

<div class="topic-metadata">

**Author:** [@msan](https://www.ruby-forum.com/u/msan)\
**Replies:** 8\
**Last updated:** [March 1, 2009, 10:49pm UTC](https://www.ruby-forum.com/t/capistrano-e-le-release/161625 "2009-03-01T22:49:53Z")

</div>

Oggi ho installato e fatto il primo deploy con capistrano. Devo ancora vedere come utilizzarlo con passenger poiche’ la maggior parte dei tutorials in rete fanno riferimento a mongrel o webrick come layer. Mi pare di…

---

## [Rubygems install in HOME for Ruby 1.9?](https://www.ruby-forum.com/t/rubygems-install-in-home-for-ruby-1-9/126904)

<div class="topic-metadata">

**Author:** [@unbewusst](https://www.ruby-forum.com/u/unbewusst)\
**Replies:** 8\
**Last updated:** [January 25, 2008, 8:52pm UTC](https://www.ruby-forum.com/t/rubygems-install-in-home-for-ruby-1-9/126904 "2008-01-25T20:52:40Z")

</div>

i’ve installed rubygems 0.9.5 with ruby 1.9 lying in my HOME but i get only a gems/1.8/ directory. then i think i didn’t use to correct version of rubygems ? is that right ? what is the best way to get rubygems worki…

---

## [Wrapped method causing infinite recursion in rcov](https://www.ruby-forum.com/t/wrapped-method-causing-infinite-recursion-in-rcov/100181)

<div class="topic-metadata">

**Author:** [@Pedro\_CSSSSrte-Real](https://www.ruby-forum.com/u/Pedro_CSSSSrte-Real)\
**Replies:** 8\
**Last updated:** [July 28, 2006, 1:07pm UTC](https://www.ruby-forum.com/t/wrapped-method-causing-infinite-recursion-in-rcov/100181 "2006-07-28T13:07:11Z")

</div>

I added this to my rails test helper to check for valid HTML automatically: Wrap around get to check the markup on :success requests. alias\_method :old\_get, :get def get(\*args) old\_get(\*args) if @response.success? …

---

## [Blocking unknown hostnames for SSL/TLS connections](https://www.ruby-forum.com/t/blocking-unknown-hostnames-for-ssl-tls-connections/243561)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 2\
**Last updated:** [December 4, 2015, 2:35am UTC](https://www.ruby-forum.com/t/blocking-unknown-hostnames-for-ssl-tls-connections/243561 "2015-12-04T02:35:33Z")

</div>

Hello, We’re currently using nginx for SSL/TLS termination, which then proxies the request to a pair of internal pair of load balancers. Since the TLS handshake is performed before nginx is able to figure out what ho…

---

## [How send random values to selector every n-times](https://www.ruby-forum.com/t/how-send-random-values-to-selector-every-n-times/233362)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 2\
**Last updated:** [December 8, 2014, 11:17pm UTC](https://www.ruby-forum.com/t/how-send-random-values-to-selector-every-n-times/233362 "2014-12-08T23:17:54Z")

</div>

Hi everybody, I need to “switch” randomly 5 different signal generator via selector block every \[say\] 3 seconds… So , in GRC, I’ve a vector\_source with values coming from \[random.randint(0, 4) for p in range(0,4)\]. …

---

## [If else condition is not working in ruby](https://www.ruby-forum.com/t/if-else-condition-is-not-working-in-ruby/208018)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 2\
**Last updated:** [June 8, 2011, 5:07pm UTC](https://www.ruby-forum.com/t/if-else-condition-is-not-working-in-ruby/208018 "2011-06-08T17:07:06Z")

</div>

I wrote simple code to verify text appears in the result page or not. This is my code. I wrote this code in separate file and saved with ruby extension. It executed successfully. But, False condition only executes. I’…

---

## [Skip password validation in authlogic](https://www.ruby-forum.com/t/skip-password-validation-in-authlogic/226150)

<div class="topic-metadata">

**Author:** [@jv2222](https://www.ruby-forum.com/u/jv2222)\
**Replies:** 2\
**Last updated:** [December 15, 2010, 11:44am UTC](https://www.ruby-forum.com/t/skip-password-validation-in-authlogic/226150 "2010-12-15T11:44:49Z")

</div>

i am using authlogic for user authentication and authlogic-connect for facebook and twitter signup.what i need is that i need to skip validation on the password field if user is signup via facebook or twitter.my envir…

---

## [Conditional fastcgi\_param](https://www.ruby-forum.com/t/conditional-fastcgi-param/175720)

<div class="topic-metadata">

**Author:** [@myschizobuddy](https://www.ruby-forum.com/u/myschizobuddy)\
**Replies:** 2\
**Last updated:** [September 18, 2009, 12:08pm UTC](https://www.ruby-forum.com/t/conditional-fastcgi-param/175720 "2009-09-18T12:08:22Z")

</div>

fastcgi\_param isn’t allowed inside an if statement The code below doesn’t work. Any workaround available if ($host ~\* ^dev.flow3.local$) { fastcgi\_param FLOW3\_CONTEXT Development; } if ($host ~\* ^flow3.local$) { …

---

## [Enumerating constants in anonymous modules](https://www.ruby-forum.com/t/enumerating-constants-in-anonymous-modules/150537)

<div class="topic-metadata">

**Author:** [@xavier](https://www.ruby-forum.com/u/xavier)\
**Replies:** 2\
**Last updated:** [October 9, 2008, 6:05pm UTC](https://www.ruby-forum.com/t/enumerating-constants-in-anonymous-modules/150537 "2008-10-09T18:05:49Z")

</div>

How can I enumerate all the constants inside the module in the second example? Notice that #constants array is empty For bonus points, which is the “correct” eval method to use to define a class inside the module (th…

---

## [How does this hash analysing code work](https://www.ruby-forum.com/t/how-does-this-hash-analysing-code-work/264749)

<div class="topic-metadata">

**Author:** [@cloa513](https://www.ruby-forum.com/u/cloa513)\
**Replies:** 1\
**Last updated:** [April 17, 2024, 8:05am UTC](https://www.ruby-forum.com/t/how-does-this-hash-analysing-code-work/264749 "2024-04-17T08:05:13Z")

</div>

How does this code in particular to weakness, resistances and immunities? Particularly as I want to substitue the data that it use with a generate hash. Example of entry in data file name. Thanks in advance. Thanks…

---

## [\[ANN\] The Ruby-GNOME2 gems are updated to version 3.1.3](https://www.ruby-forum.com/t/ann-the-ruby-gnome2-gems-are-updated-to-version-3-1-3/245344)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 1\
**Last updated:** [May 3, 2017, 9:21pm UTC](https://www.ruby-forum.com/t/ann-the-ruby-gnome2-gems-are-updated-to-version-3-1-3/245344 "2017-05-03T21:21:58Z")

</div>

The gems of the Ruby-GNOME2 project are updated to the version 3.1.3. Those new versions bring: version 3.1.3: improve backward compatibility for Ruby/Pango. see The source of https://ruby-gnome.github.io/ | ruby-gno…

---

## [Proxy Pass | Upstream with query\_string](https://www.ruby-forum.com/t/proxy-pass-upstream-with-query-string/244671)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 1\
**Last updated:** [May 24, 2016, 6:44pm UTC](https://www.ruby-forum.com/t/proxy-pass-upstream-with-query-string/244671 "2016-05-24T18:44:56Z")

</div>

I need to use proxy\_pass directive for the upstream server which has query\_string, which allows it to authenticate to the upstream server. How can i ensure that query string is pass-on with every request that goes vi…

---

## [Update HStore column's values without triggering after\_save callbacks](https://www.ruby-forum.com/t/update-hstore-columns-values-without-triggering-after-save-callbacks/234009)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 1\
**Last updated:** [January 30, 2015, 5:10pm UTC](https://www.ruby-forum.com/t/update-hstore-columns-values-without-triggering-after-save-callbacks/234009 "2015-01-30T17:10:15Z")

</div>

I’m doing some wonky stuff and I am at a point where I need to, in an after\_save callback, modify some data and update an hstore column, but not trigger the save callback again. What methods are available to me? Th…

---

## [Minimal example to change an instance variable on a class on inclusion](https://www.ruby-forum.com/t/minimal-example-to-change-an-instance-variable-on-a-class-on-inclusion/236570)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 7\
**Last updated:** [September 17, 2013, 12:59pm UTC](https://www.ruby-forum.com/t/minimal-example-to-change-an-instance-variable-on-a-class-on-inclusion/236570 "2013-09-17T12:59:37Z")

</div>

Hi. I don’t know if the following is possible, but it would be great. I have: module Foo; end class Bar; end class Bar has one instance variable, let’s call it @test. class Bar def initialize @test = ‘test 1’ en…

---

## [Trying to install pg on 32bit Snow Leopard 10.6](https://www.ruby-forum.com/t/trying-to-install-pg-on-32bit-snow-leopard-10-6/203849)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 7\
**Last updated:** [March 2, 2011, 9:54am UTC](https://www.ruby-forum.com/t/trying-to-install-pg-on-32bit-snow-leopard-10-6/203849 "2011-03-02T09:54:34Z")

</div>

I’m trying to install the “pg” gem on 32-bit snow leopard and I’m encountering the following error: $ sudo env ARCHFLAGS="-arch i386" gem install pg -v=0.9.0 Building native extensions. This could take a while… ERRO…

---

## [Uninitialized constant Aftimagr (NameError)](https://www.ruby-forum.com/t/uninitialized-constant-aftimagr-nameerror/200271)

<div class="topic-metadata">

**Author:** [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Replies:** 1\
**Last updated:** [December 8, 2010, 8:52am UTC](https://www.ruby-forum.com/t/uninitialized-constant-aftimagr-nameerror/200271 "2010-12-08T08:52:52Z")

</div>

Hello All I am getting this error, any one resolved this… it’s urgent ruby script/server --debugger =\> Booting WEBrick… =\> Debugger enabled config.gem: Unpacked gem rspec-rails-1.1.11 in vendor/gems has no specific…

---

## [What's wrong with this picture?](https://www.ruby-forum.com/t/whats-wrong-with-this-picture/200011)

<div class="topic-metadata">

**Author:** [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Replies:** 7\
**Last updated:** [December 3, 2010, 5:06am UTC](https://www.ruby-forum.com/t/whats-wrong-with-this-picture/200011 "2010-12-03T05:06:41Z")

</div>

so, i dont believe that i’ve done anything wrong, but i cant seem to get a module to function properly, mabye i’m doing something stupidly retartedly wrong, i dont know, but i’ve even typed it into irb and i get the s…

---

## [Monkeybars dead?](https://www.ruby-forum.com/t/monkeybars-dead/183072)

<div class="topic-metadata">

**Author:** [@Daniel\_VSSSSlkerts](https://www.ruby-forum.com/u/Daniel_VSSSSlkerts)\
**Replies:** 7\
**Last updated:** [February 8, 2010, 1:13am UTC](https://www.ruby-forum.com/t/monkeybars-dead/183072 "2010-02-08T01:13:00Z")

</div>

Hi, I’d like to implement a standalone application using JRuby 1.4 MySQL ActiveRecord Monkeybars A few years ago, I evaluated Monkeybars using videos, netbeans and the tutorial. Today, the webpages http://monkeyb…

---

## [Conversion aid for 1.8.7 to 1.9.x transition?](https://www.ruby-forum.com/t/conversion-aid-for-1-8-7-to-1-9-x-transition/161488)

<div class="topic-metadata">

**Author:** [@tbcox23](https://www.ruby-forum.com/u/tbcox23)\
**Replies:** 7\
**Last updated:** [February 28, 2009, 9:16am UTC](https://www.ruby-forum.com/t/conversion-aid-for-1-8-7-to-1-9-x-transition/161488 "2009-02-28T09:16:40Z")

</div>

It seems odd that I’ve not seen this question here before, but maybe I missed it (or just don’t get it on some deeper level!): My current project require some libraries (e.g., CSV) that have been altered in 1.9. It’s …

---

## [Text\_field\_with\_auto\_complete en Rails 2.0.2k](https://www.ruby-forum.com/t/text-field-with-auto-complete-en-rails-2-0-2k/128026)

<div class="topic-metadata">

**Author:** [@pablo83](https://www.ruby-forum.com/u/pablo83)\
**Replies:** 7\
**Last updated:** [February 4, 2008, 12:53pm UTC](https://www.ruby-forum.com/t/text-field-with-auto-complete-en-rails-2-0-2k/128026 "2008-02-04T12:53:25Z")

</div>

Hola a todos. Bueno como bien dice mi “subject” text\_field\_with\_auto\_complete en rails 2.0.2, no consigo hacerlo funcinar, he estado mirando, buscando, leyendo otros posts, y nada… He instalado el plugin script/plug…

---

## [Array +=](https://www.ruby-forum.com/t/array/117049)

<div class="topic-metadata">

**Author:** [@sijomo](https://www.ruby-forum.com/u/sijomo)\
**Replies:** 7\
**Last updated:** [October 12, 2007, 9:34pm UTC](https://www.ruby-forum.com/t/array/117049 "2007-10-12T21:34:55Z")

</div>

Hi All, Question re Array method += and a = \[\] =\> \[\] a += \[1, 2, 3, 4\] =\> \[1, 2, 3, 4\] And (a ||= \[\]) \<\< \[1, 2, 3, 4\] =\> \[\[1, 2, 3, 4\]\] But ( a ||= \[\] ) += \[ 1, 2, 3, 4 \] SyntaxError: compile error …

---

## [How to make webpage?](https://www.ruby-forum.com/t/how-to-make-webpage/89206)

<div class="topic-metadata">

**Author:** [@nikunjgupta1](https://www.ruby-forum.com/u/nikunjgupta1)\
**Replies:** 7\
**Last updated:** [March 19, 2007, 2:20pm UTC](https://www.ruby-forum.com/t/how-to-make-webpage/89206 "2007-03-19T14:20:45Z")

</div>

Hi, I am new to Ruby and want to make 3 static web pages, which has basic menus “users, Roles and permissions”. users information should consists of “Login, First name, Last name and email”. list should show only 10 …

---

## [Pgrep equivalent on windows](https://www.ruby-forum.com/t/pgrep-equivalent-on-windows/85840)

<div class="topic-metadata">

**Author:** [@rinda](https://www.ruby-forum.com/u/rinda)\
**Replies:** 1\
**Last updated:** [February 16, 2007, 7:05pm UTC](https://www.ruby-forum.com/t/pgrep-equivalent-on-windows/85840 "2007-02-16T19:05:42Z")

</div>

Hi, I have this code need to be translated to windows machine: kill #{pgrep -f optimize\_jobs.rb.chomp} exec(“ruby -C#{RAILS\_ROOT}/public/files optimize\_jobs.rb &”) if fork == nil The second line has been translated s…

---

## [German Phrase](https://www.ruby-forum.com/t/german-phrase/68555)

<div class="topic-metadata">

**Author:** [@david](https://www.ruby-forum.com/u/david)\
**Replies:** 7\
**Last updated:** [September 13, 2006, 6:05pm UTC](https://www.ruby-forum.com/t/german-phrase/68555 "2006-09-13T18:05:46Z")

</div>

Hi German users, Can one of you guys give me a German Phrase that I can use to demonstrate tokenizing non-ascii text. Preferably something about 40 bytes long with lots of umlauts and perhaps a ß. Cheers, Dave

---

## [FreeBSD Performance Tip](https://www.ruby-forum.com/t/freebsd-performance-tip/84071)

<div class="topic-metadata">

**Author:** [@Zed\_S](https://www.ruby-forum.com/u/Zed_S)\
**Replies:** 7\
**Last updated:** [March 23, 2006, 8:54pm UTC](https://www.ruby-forum.com/t/freebsd-performance-tip/84071 "2006-03-23T20:54:37Z")

</div>

A small note to all the FreeBSD folks about Ruby performance. While trying to tune Mongrel to run faster on FreeBSD I was stumped as to why it was so horribly slow compared to Linux. Linux on the same machine was g…

---

## [ROR Recipes Beta: Why use taggings instead of tags\_contacts?](https://www.ruby-forum.com/t/ror-recipes-beta-why-use-taggings-instead-of-tags-contacts/66285)

<div class="topic-metadata">

**Author:** [@softwareengineer\_99](https://www.ruby-forum.com/u/softwareengineer_99)\
**Replies:** 7\
**Last updated:** [February 13, 2006, 4:31pm UTC](https://www.ruby-forum.com/t/ror-recipes-beta-why-use-taggings-instead-of-tags-contacts/66285 "2006-02-13T16:31:39Z")

</div>

I have gotten acts\_as\_taggable to work for a test application as documented on taggable.rubyforge.org I am following Chad’s excellent examples in ROR Recipes Beta book. I have a few questions and hope that Chad or som…

---

## [Products not showing up on the carousel](https://www.ruby-forum.com/t/products-not-showing-up-on-the-carousel/241372)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 3\
**Last updated:** [April 2, 2015, 10:00am UTC](https://www.ruby-forum.com/t/products-not-showing-up-on-the-carousel/241372 "2015-04-02T10:00:01Z")

</div>

https://github.com/Faisal-Hassan/vzncommerce The link above is the link to my project. I’m trying to pull up 3 products from the database to show up on the index page in a carousel. The index page comes up as blank. …

---

## [How to split a "comma separated string" that contains "comma separated substrings"](https://www.ruby-forum.com/t/how-to-split-a-comma-separated-string-that-contains-comma-separated-substrings/240246)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 3\
**Last updated:** [April 4, 2014, 8:02pm UTC](https://www.ruby-forum.com/t/how-to-split-a-comma-separated-string-that-contains-comma-separated-substrings/240246 "2014-04-04T20:02:22Z")

</div>

Hi, I a comma separated string that contains “comma separated substrings” like this: str= ’ “hello ,there” ,how,are ,you, “I am , fine” ’ every substring that contains comma is in a " ". I am trying to split str b…

---

## [Rails Bug? create\_association delete existing record if duplicate exist](https://www.ruby-forum.com/t/rails-bug-create-association-delete-existing-record-if-duplicate-exist/213557)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 3\
**Last updated:** [November 5, 2011, 11:04am UTC](https://www.ruby-forum.com/t/rails-bug-create-association-delete-existing-record-if-duplicate-exist/213557 "2011-11-05T11:04:11Z")

</div>

I am so frustrating by Rails! I have two very simple models: User has\_one :profile, :dependent =\> :destroy Profile belongs\_to :user, :conditions =\> { :registered =\> true } validates :user\_id, :uniqueness =\> { :on =\> :…

---

## [PHP dead pages with php-fpm and nginx](https://www.ruby-forum.com/t/php-dead-pages-with-php-fpm-and-nginx/206260)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 3\
**Last updated:** [April 28, 2011, 8:14pm UTC](https://www.ruby-forum.com/t/php-dead-pages-with-php-fpm-and-nginx/206260 "2011-04-28T20:14:14Z")

</div>

Hi all, I noticed today some weird errors when I tried to refresh a basic php page (phpinfo() function). The page loads fine when I click refresh several times, then all of the sudden I get a dead page, no 404, no Ng…

---

## [Strange behavior with git and extensions(and Capistrano)](https://www.ruby-forum.com/t/strange-behavior-with-git-and-extensions-and-capistrano/197385)

<div class="topic-metadata">

**Author:** [@okkezSS](https://www.ruby-forum.com/u/okkezSS)\
**Replies:** 3\
**Last updated:** [October 16, 2010, 7:09am UTC](https://www.ruby-forum.com/t/strange-behavior-with-git-and-extensions-and-capistrano/197385 "2010-10-16T07:09:43Z")

</div>

I have googled and read all I can find, but with my limited knowledge, I cant seem to figure out what is going on, any help would be awesome, as I cant find anyone having the same problem. my setup is a local version …

---

## [IBM Lotus Domino - reverse proxy - do not cache if authenticated web user (based on cookie)](https://www.ruby-forum.com/t/ibm-lotus-domino-reverse-proxy-do-not-cache-if-authenticated-web-user-based-on-cookie/186001)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 3\
**Last updated:** [April 5, 2010, 5:07pm UTC](https://www.ruby-forum.com/t/ibm-lotus-domino-reverse-proxy-do-not-cache-if-authenticated-web-user-based-on-cookie/186001 "2010-04-05T17:07:57Z")

</div>

Hi My backend is IBM Lotus Domino and its HTTP task. I have application that has admin panel thats been used with end-user’s browser. Currently i am using cache but that admin panel goes crazy because of caching. So…

---

## [Sum product of 2 fields?](https://www.ruby-forum.com/t/sum-product-of-2-fields/176283)

<div class="topic-metadata">

**Author:** [@Dudebot](https://www.ruby-forum.com/u/Dudebot)\
**Replies:** 3\
**Last updated:** [September 28, 2009, 5:05pm UTC](https://www.ruby-forum.com/t/sum-product-of-2-fields/176283 "2009-09-28T17:05:53Z")

</div>

I have a db Orders with fields qty and amount, and another linked db Person that has many Orders. I’ve been using this to sum all of the products of qty and amount: Person.find( person ).orders.inject( 0 ){ |sum, ord…

---

## [Merb gets merged into Rails 3!](https://www.ruby-forum.com/t/merb-gets-merged-into-rails-3/156279)

<div class="topic-metadata">

**Author:** [@Sven\_Meyer](https://www.ruby-forum.com/u/Sven_Meyer)\
**Replies:** 3\
**Last updated:** [December 24, 2008, 8:43am UTC](https://www.ruby-forum.com/t/merb-gets-merged-into-rails-3/156279 "2008-12-24T08:43:22Z")

</div>

Merry Xmas !

---

## [How to proxy streaming video](https://www.ruby-forum.com/t/how-to-proxy-streaming-video/153318)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 3\
**Last updated:** [November 15, 2008, 4:12am UTC](https://www.ruby-forum.com/t/how-to-proxy-streaming-video/153318 "2008-11-15T04:12:46Z")

</div>

We have a secure application on the Internet that you have to log into to use. We want to be able to display a video from a streaming media server via this application. The streaming media server is behind a firewal…

---

## [Escaping SQL when using connection.execute?](https://www.ruby-forum.com/t/escaping-sql-when-using-connection-execute/144749)

<div class="topic-metadata">

**Author:** [@starmaerker](https://www.ruby-forum.com/u/starmaerker)\
**Replies:** 3\
**Last updated:** [August 4, 2008, 6:19pm UTC](https://www.ruby-forum.com/t/escaping-sql-when-using-connection-execute/144749 "2008-08-04T18:19:39Z")

</div>

Hi all, Here’s the situation: I’m writing a Rails app that connect to a SQL Server DB via the ODBC adapter. As an outside, non-negotiable requirement, and writes to the DB must be performed using stored procedures. (…

---

## [Invalid authenticity tokens when using subdomains](https://www.ruby-forum.com/t/invalid-authenticity-tokens-when-using-subdomains/127535)

<div class="topic-metadata">

**Author:** [@chrisolsen](https://www.ruby-forum.com/u/chrisolsen)\
**Replies:** 3\
**Last updated:** [April 20, 2008, 4:36pm UTC](https://www.ruby-forum.com/t/invalid-authenticity-tokens-when-using-subdomains/127535 "2008-04-20T16:36:41Z")

</div>

Does anyone have experience with using subdomains and rails? The example that I used to help me out was from the Advanced Rails Recipes book, but I can’t get it working as it should. I continually get authenticity to…

---

## [Pcap et Windows](https://www.ruby-forum.com/t/pcap-et-windows/119854)

<div class="topic-metadata">

**Author:** [@newguy](https://www.ruby-forum.com/u/newguy)\
**Replies:** 3\
**Last updated:** [November 11, 2007, 11:44am UTC](https://www.ruby-forum.com/t/pcap-et-windows/119854 "2007-11-11T11:44:54Z")

</div>

Bonjour Ã tous, je postes car je suis au bord de la crise!!! j’ai besoin pour le taf d’utiliser ruby avec la librerie pcap, mais sous win32 !!! j’ai bien installÃ© ruby pour windows(1.8), mais pour la partie pcap ……

---

## [Any problems with Ruby on Rails - on Win CE](https://www.ruby-forum.com/t/any-problems-with-ruby-on-rails-on-win-ce/50085)

<div class="topic-metadata">

**Author:** [@scottishguy](https://www.ruby-forum.com/u/scottishguy)\
**Replies:** 3\
**Last updated:** [December 18, 2005, 4:06pm UTC](https://www.ruby-forum.com/t/any-problems-with-ruby-on-rails-on-win-ce/50085 "2005-12-18T16:06:57Z")

</div>

Hi, I think the answer is going to be yes, knowing that Ruby runs on Win CE… but can you please let me know if anyone has had any problems installing and using Ruby on Rails on Windows CE. I am going to use SQLite f…

---

## [Storing a result in mysql-database - how to?](https://www.ruby-forum.com/t/storing-a-result-in-mysql-database-how-to/230280)

<div class="topic-metadata">

**Author:** [@jason\_sam](https://www.ruby-forum.com/u/jason_sam)\
**Replies:** 4\
**Last updated:** [June 11, 2014, 2:53am UTC](https://www.ruby-forum.com/t/storing-a-result-in-mysql-database-how-to/230280 "2014-06-11T02:53:11Z")

</div>

helllo dear ruby experts new to Ruby - i need some advices - i plan to do some requests in osm-files. (openstreetmap) Question - how can i store the results on a Database - eg mysql or - (if you prefer postgresql) - …

---

## [Set\_relative\_rate](https://www.ruby-forum.com/t/set-relative-rate/238970)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 4\
**Last updated:** [February 7, 2014, 2:11pm UTC](https://www.ruby-forum.com/t/set-relative-rate/238970 "2014-02-07T14:11:32Z")

</div>

Hi Guys, Is it possible to write a c++ block that takes 2 input streams, produces 1 output streams, but to generate 1000 outputs it needs 1000 inputs of the first kind and 1 input of the second kind? How do I set the…

---

## [Nginx cache files by mime type using ngx\_srcache module](https://www.ruby-forum.com/t/nginx-cache-files-by-mime-type-using-ngx-srcache-module/235283)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 4\
**Last updated:** [June 13, 2013, 9:39pm UTC](https://www.ruby-forum.com/t/nginx-cache-files-by-mime-type-using-ngx-srcache-module/235283 "2013-06-13T21:39:24Z")

</div>

Hi, I’m using ngx\_srcache module with Memcached to cache static contents of the upstream servers. This is based on static file extensions. Now I need to cached them by looking at Content-Type of the header to cache .…

---

## [Rails 3 Upgrade](https://www.ruby-forum.com/t/rails-3-upgrade/204120)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 4\
**Last updated:** [March 18, 2011, 8:15pm UTC](https://www.ruby-forum.com/t/rails-3-upgrade/204120 "2011-03-18T20:15:59Z")

</div>

Hi, I am upgrading a rails 2.1.0 app to Rails 3. Before I started my migration, I wrote all the tests cases for my app in Rspec 1.x version. I am doubting whether rspec test cases written in 1.x version will work whe…

---

## [Ruby gem install mysql compile error](https://www.ruby-forum.com/t/ruby-gem-install-mysql-compile-error/184518)

<div class="topic-metadata">

**Author:** [@ajmccauley](https://www.ruby-forum.com/u/ajmccauley)\
**Replies:** 4\
**Last updated:** [March 4, 2010, 2:51am UTC](https://www.ruby-forum.com/t/ruby-gem-install-mysql-compile-error/184518 "2010-03-04T02:51:21Z")

</div>

I am having an issue installing the mysql gem on my fedora 11 ruby 1.9.1p376 installation. mysql is installed and working. When I try to run sudo gem install mysql I get the following message: Building native extensi…

---

## [Access to session variable in model](https://www.ruby-forum.com/t/access-to-session-variable-in-model/176390)

<div class="topic-metadata">

**Author:** [@adammontgomery](https://www.ruby-forum.com/u/adammontgomery)\
**Replies:** 4\
**Last updated:** [September 30, 2009, 11:54pm UTC](https://www.ruby-forum.com/t/access-to-session-variable-in-model/176390 "2009-09-30T23:54:20Z")

</div>

Hi everyone I am using attachment fu for image uploading. I try to customize the path for pictures be saved. If I call session\[:kwikerhash\] in the image.rb where there method for path definition is I get an undefined…

---

## [FastCGI problem](https://www.ruby-forum.com/t/fastcgi-problem/174155)

<div class="topic-metadata">

**Author:** [@Toni\_M](https://www.ruby-forum.com/u/Toni_M)\
**Replies:** 4\
**Last updated:** [August 21, 2009, 1:23pm UTC](https://www.ruby-forum.com/t/fastcgi-problem/174155 "2009-08-21T13:23:53Z")

</div>

Hi, trying to trackback to some, but not all, articles on a MovableType installation from another MovableType installation, I get this consistently with one entry, but not any other that I tried so far: fastcgi reque…

---

## [Send\_file problem with IE7. Save Image as untitled.bmp](https://www.ruby-forum.com/t/send-file-problem-with-ie7-save-image-as-untitled-bmp/148751)

<div class="topic-metadata">

**Author:** [@noelw](https://www.ruby-forum.com/u/noelw)\
**Replies:** 4\
**Last updated:** [September 17, 2008, 1:51am UTC](https://www.ruby-forum.com/t/send-file-problem-with-ie7-save-image-as-untitled-bmp/148751 "2008-09-17T01:51:42Z")

</div>

Platform = Linux and Mongrel I’m using send\_file to send images from a controller. like this: send\_file( @content.location, :disposition =\> ‘inline’, :type =\> File.mime\_type?(@content.location)) # mime\_type? courtesy …

[Previous page](https://www.ruby-forum.com/top.md?page=797&per_page=50)

[Next page](https://www.ruby-forum.com/top.md?page=799&per_page=50)
