# Top

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

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

---

## [Invalid gem format on ruby 1.9](https://www.ruby-forum.com/t/invalid-gem-format-on-ruby-1-9/217069)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 3\
**Last updated:** [February 21, 2012, 10:03am UTC](https://www.ruby-forum.com/t/invalid-gem-format-on-ruby-1-9/217069 "2012-02-21T10:03:44Z")

</div>

Hi, I have developed a small wxruby app on my old mac using wxruby 2.0.1 on ruby 1.8.6. I am trying to upgrade now, and have encountered some problems. I use rvm to install ruby 1.9.2, then I run gem install wxruby-…

---

## [Array.map! + delete\_if possible?](https://www.ruby-forum.com/t/array-map-delete-if-possible/211915)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 8\
**Last updated:** [September 20, 2011, 10:00am UTC](https://www.ruby-forum.com/t/array-map-delete-if-possible/211915 "2011-09-20T10:00:12Z")

</div>

I have an array of strings that I need to modify. I either need to replace the string or delete the entry altogether. The only way I have been able to do this is : arr.delete("") (0…arr.size).each do |i| if arr\[i\].t…

---

## [Unit Test: Mocking the User-Agent](https://www.ruby-forum.com/t/unit-test-mocking-the-user-agent/141391)

<div class="topic-metadata">

**Author:** [@farfignugen](https://www.ruby-forum.com/u/farfignugen)\
**Replies:** 3\
**Last updated:** [June 26, 2008, 5:54pm UTC](https://www.ruby-forum.com/t/unit-test-mocking-the-user-agent/141391 "2008-06-26T17:54:41Z")

</div>

Hi, Im trying to test the following method: def notice 65 userAgent = request.env\[‘HTTP\_USER\_AGENT’\] 66 67 if userAgent.index(‘MSIE 7.0;’) != nil 68 @ie7 = true 69 elsif userAgent.index(‘MSIE 6.0;…

---

## [Rails truncating raw\_post\_data?](https://www.ruby-forum.com/t/rails-truncating-raw-post-data/112589)

<div class="topic-metadata">

**Author:** [@ktheory](https://www.ruby-forum.com/u/ktheory)\
**Replies:** 8\
**Last updated:** [September 9, 2007, 9:26am UTC](https://www.ruby-forum.com/t/rails-truncating-raw-post-data/112589 "2007-09-09T09:26:08Z")

</div>

Has anyone ever run into any problems with rails truncating raw\_post\_data. My situation is this: I’m the developer for RubyAMF (wiki.rubyamf.org). Which is a flash remoting application server. With the rails plugin, i…

---

## [List of Checkboxes](https://www.ruby-forum.com/t/list-of-checkboxes/83876)

<div class="topic-metadata">

**Author:** [@laurin1](https://www.ruby-forum.com/u/laurin1)\
**Replies:** 8\
**Last updated:** [February 1, 2007, 7:37am UTC](https://www.ruby-forum.com/t/list-of-checkboxes/83876 "2007-02-01T07:37:42Z")

</div>

Hi, Does anyone have a link or information on how to handle lists of checkboxes in rails? I am working on a property site and each property has a list of features which are rendered as a list of checkboxes. I am tr…

---

## [Alternative Bash commands in Ruby](https://www.ruby-forum.com/t/alternative-bash-commands-in-ruby/245150)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 6\
**Last updated:** [November 24, 2016, 8:42am UTC](https://www.ruby-forum.com/t/alternative-bash-commands-in-ruby/245150 "2016-11-24T08:42:57Z")

</div>

Hello. I’m learning Ruby. And I have a question with respect to working with files. How can I get the number of rows in a file similar to the wc -l from Bash?

---

## [No CORS Workaround - SSL Proxy](https://www.ruby-forum.com/t/no-cors-workaround-ssl-proxy/230510)

<div class="topic-metadata">

**Author:** [@jason\_sam](https://www.ruby-forum.com/u/jason_sam)\
**Replies:** 6\
**Last updated:** [July 2, 2014, 1:27pm UTC](https://www.ruby-forum.com/t/no-cors-workaround-ssl-proxy/230510 "2014-07-02T13:27:08Z")

</div>

We run a API web service and have two web sites that access the web service via AJAX. The web sites are accessed via HTTPS and, for security reasons, we need to have the API web service also accessed by HTTPS. Due to …

---

## [Possible to run rails 1.2.x and 2.0.x on the same host?](https://www.ruby-forum.com/t/possible-to-run-rails-1-2-x-and-2-0-x-on-the-same-host/145784)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 6\
**Last updated:** [November 7, 2008, 3:31am UTC](https://www.ruby-forum.com/t/possible-to-run-rails-1-2-x-and-2-0-x-on-the-same-host/145784 "2008-11-07T03:31:01Z")

</div>

Hello, Does anyone have experience running multiple versions of rails on a single host? Is this even a reasonable suggestion? Thanks.

---

## [Self in method name](https://www.ruby-forum.com/t/self-in-method-name/106582)

<div class="topic-metadata">

**Author:** [@iskaldur](https://www.ruby-forum.com/u/iskaldur)\
**Replies:** 6\
**Last updated:** [June 12, 2007, 6:11pm UTC](https://www.ruby-forum.com/t/self-in-method-name/106582 "2007-06-12T18:11:10Z")

</div>

Is there any difference between using self in a method name, and not using it? For example, I’ve seen a lot something like class Foo def self.bar … end end Is this the same thing as class Foo def bar … end e…

---

## [Can after\_filter contain redirect\_to?](https://www.ruby-forum.com/t/can-after-filter-contain-redirect-to/90483)

<div class="topic-metadata">

**Author:** [@rick](https://www.ruby-forum.com/u/rick)\
**Replies:** 6\
**Last updated:** [March 29, 2007, 9:54pm UTC](https://www.ruby-forum.com/t/can-after-filter-contain-redirect-to/90483 "2007-03-29T21:54:41Z")

</div>

I want to occasionally render a certain page after an action (other than the default rendering). I was thinking that an after\_filter would be the ticket. However, my initial attempts at including redirect\_to in an a…

---

## [Detecting browser type?](https://www.ruby-forum.com/t/detecting-browser-type/57427)

<div class="topic-metadata">

**Author:** [@mshah](https://www.ruby-forum.com/u/mshah)\
**Replies:** 6\
**Last updated:** [April 15, 2006, 5:22pm UTC](https://www.ruby-forum.com/t/detecting-browser-type/57427 "2006-04-15T17:22:32Z")

</div>

I’m wondering how i can detect the browser type for the client. I know this is possible, but i cant seem to find how to do this, nor any example code for this. I would appreciate if someone could point me to some i…

---

## [Migrate tables FromOracle To Mysql](https://www.ruby-forum.com/t/migrate-tables-fromoracle-to-mysql/213737)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 1\
**Last updated:** [November 10, 2011, 6:28pm UTC](https://www.ruby-forum.com/t/migrate-tables-fromoracle-to-mysql/213737 "2011-11-10T18:28:37Z")

</div>

How can i migrate the oracle tables to mysql tables.

---

## [Nginx always returns 206 with HTTP header 'Range: bytes=0-'](https://www.ruby-forum.com/t/nginx-always-returns-206-with-http-header-range-bytes-0/192871)

<div class="topic-metadata">

**Author:** [@huandu](https://www.ruby-forum.com/u/huandu)\
**Replies:** 1\
**Last updated:** [August 7, 2010, 12:41pm UTC](https://www.ruby-forum.com/t/nginx-always-returns-206-with-http-header-range-bytes-0/192871 "2010-08-07T12:41:48Z")

</div>

When requesting a static file with HTTP header “Range: bytes=0-”, nginx always return 206 Partial Content. Is it a bug? This issue can be reproduced like this: curl -v -o /dev/null -H “Range: bytes=0-” ‘http://wiki.n…

---

## [Recursive self-referential many-to-many relationship](https://www.ruby-forum.com/t/recursive-self-referential-many-to-many-relationship/190142)

<div class="topic-metadata">

**Author:** [@tobyr](https://www.ruby-forum.com/u/tobyr)\
**Replies:** 7\
**Last updated:** [June 18, 2010, 2:04pm UTC](https://www.ruby-forum.com/t/recursive-self-referential-many-to-many-relationship/190142 "2010-06-18T14:04:15Z")

</div>

I have a ‘Circuit’ table, and a ‘Glue’ table to perform a many-to-many join on the circuit records, such at a circuit can have many subcircuits (its component parts) and many supercircuits (circuits which it itself is…

---

## [Remote Rake without SSH](https://www.ruby-forum.com/t/remote-rake-without-ssh/181356)

<div class="topic-metadata">

**Author:** [@c8h10n4o2](https://www.ruby-forum.com/u/c8h10n4o2)\
**Replies:** 7\
**Last updated:** [January 12, 2010, 7:43pm UTC](https://www.ruby-forum.com/t/remote-rake-without-ssh/181356 "2010-01-12T19:43:05Z")

</div>

Is there a way to remotely complete Rake tasks/execute Rake files without SSH access? I’m using a hosting company that provides Ruby-on-Rails, but does not allows SSH access.I just want to install the Radiant CMS, but…

---

## ["too few arguments" sur count\_by\_sql](https://www.ruby-forum.com/t/too-few-arguments-sur-count-by-sql/179808)

<div class="topic-metadata">

**Author:** [@pestak](https://www.ruby-forum.com/u/pestak)\
**Replies:** 7\
**Last updated:** [December 4, 2009, 4:23pm UTC](https://www.ruby-forum.com/t/too-few-arguments-sur-count-by-sql/179808 "2009-12-04T16:23:57Z")

</div>

Bonjour, Lorsque j’essaye de compter le nombre d’enregistrement de ma table saisies suivant une date et une personne j’obtiens l’erreur “too few arguments”. Comment dois-je procéder? Merci d’avance recherche si la …

---

## [Initializing a Global Instance of a Ruby Class](https://www.ruby-forum.com/t/initializing-a-global-instance-of-a-ruby-class/134364)

<div class="topic-metadata">

**Author:** [@M\_P](https://www.ruby-forum.com/u/M_P)\
**Replies:** 1\
**Last updated:** [April 10, 2008, 10:10am UTC](https://www.ruby-forum.com/t/initializing-a-global-instance-of-a-ruby-class/134364 "2008-04-10T10:10:34Z")

</div>

Hello, I want to have an instance of a Ruby class I wrote initialized as a single instance on app startup, and have that instance accessible from my controllers. I assume this is simple, but have not been able to fig…

---

## [Hello! What did I overlook? Newb](https://www.ruby-forum.com/t/hello-what-did-i-overlook-newb/106424)

<div class="topic-metadata">

**Author:** [@Mason\_Galindo](https://www.ruby-forum.com/u/Mason_Galindo)\
**Replies:** 7\
**Last updated:** [June 10, 2007, 9:16am UTC](https://www.ruby-forum.com/t/hello-what-did-i-overlook-newb/106424 "2007-06-10T09:16:44Z")

</div>

Hello everyone, I’m very new to Ruby, Rails, and Radiant and recently attempted a fresh install of Radiant 0.6.1 on a VPS I have running CentOS-4. I didn’t receive any error messages during any of the installations bu…

---

## [Update\_all without callbacks](https://www.ruby-forum.com/t/update-all-without-callbacks/195006)

<div class="topic-metadata">

**Author:** [@paulbutcher](https://www.ruby-forum.com/u/paulbutcher)\
**Replies:** 2\
**Last updated:** [September 15, 2010, 11:34am UTC](https://www.ruby-forum.com/t/update-all-without-callbacks/195006 "2010-09-15T11:34:33Z")

</div>

How do I stop callbacks when using Model.update\_all? Or stop it for certain columns?

---

## [Radio buttons and :onchange](https://www.ruby-forum.com/t/radio-buttons-and-onchange/187325)

<div class="topic-metadata">

**Author:** [@snantz](https://www.ruby-forum.com/u/snantz)\
**Replies:** 2\
**Last updated:** [April 21, 2010, 7:33pm UTC](https://www.ruby-forum.com/t/radio-buttons-and-onchange/187325 "2010-04-21T19:33:17Z")

</div>

Hi all, I have three radio buttons that when clicked are supposed to show a particular div and hide other divs, pretty straight forward. But what I have noticed is that while the code works perfectly in Chrome and Fi…

---

## [Log4r configuration: "/dev/null" outputter question](https://www.ruby-forum.com/t/log4r-configuration-dev-null-outputter-question/109638)

<div class="topic-metadata">

**Author:** [@ronaldfischer](https://www.ruby-forum.com/u/ronaldfischer)\
**Replies:** 2\
**Last updated:** [July 18, 2007, 10:03am UTC](https://www.ruby-forum.com/t/log4r-configuration-dev-null-outputter-question/109638 "2007-07-18T10:03:57Z")

</div>

Well, my code does seem to work, but I have the feeling that I could have done it much simpler… So here is my problem: I would like to control log4r via an environment variable, which can contain one of 4 types of va…

---

## [\[Ruby\] Why is a dictionary called a dictionary](https://www.ruby-forum.com/t/ruby-why-is-a-dictionary-called-a-dictionary/259550)

<div class="topic-metadata">

**Author:** [@PaulGureghian](https://www.ruby-forum.com/u/PaulGureghian)\
**Replies:** 4\
**Last updated:** [May 15, 2020, 4:05pm UTC](https://www.ruby-forum.com/t/ruby-why-is-a-dictionary-called-a-dictionary/259550 "2020-05-15T16:05:55Z")

</div>

\[Ruby\] Why is a dictionary called a dictionary in Python and the same thing is called a hash in Ruby ?

---

## [PDF to text covertor?](https://www.ruby-forum.com/t/pdf-to-text-covertor/145539)

<div class="topic-metadata">

**Author:** [@martin\_mercy2001](https://www.ruby-forum.com/u/martin_mercy2001)\
**Replies:** 4\
**Last updated:** [August 19, 2008, 7:43pm UTC](https://www.ruby-forum.com/t/pdf-to-text-covertor/145539 "2008-08-19T19:43:29Z")

</div>

Dear all, Could anyone explain how to do convert PDF to text format. Thanks in advance Regards, Jose Martin

---

## [Rexml & nested loops](https://www.ruby-forum.com/t/rexml-nested-loops/139839)

<div class="topic-metadata">

**Author:** [@Paul\_Ash](https://www.ruby-forum.com/u/Paul_Ash)\
**Replies:** 4\
**Last updated:** [June 9, 2008, 9:21pm UTC](https://www.ruby-forum.com/t/rexml-nested-loops/139839 "2008-06-09T21:21:03Z")

</div>

I’m a bit of a newbie to Ruby, and to xpath… and hoping someone here can give me the one-liner version of why this is failing. I have an XML structure like: Foo1 foobar1 foobar2 …

---

## [Mac OS Roma to UTF-8 (Kconv | Iconv\]](https://www.ruby-forum.com/t/mac-os-roma-to-utf-8-kconv-iconv/76524)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 4\
**Last updated:** [December 27, 2005, 3:00pm UTC](https://www.ruby-forum.com/t/mac-os-roma-to-utf-8-kconv-iconv/76524 "2005-12-27T15:00:03Z")

</div>

i’ve a small test using rubyaeosa-0.2.3, works great if i let the output “as is”. In that case, according to SubEthaEdit (a MacOS X editor) the output string is encoded in MacOS Roman. Because i’ll use the output in …

---

## [Noob Install Failed 0.0.0.0:3000](https://www.ruby-forum.com/t/noob-install-failed-0-0-0-0-3000/180504)

<div class="topic-metadata">

**Author:** [@BearState](https://www.ruby-forum.com/u/BearState)\
**Replies:** 3\
**Last updated:** [December 20, 2009, 8:01pm UTC](https://www.ruby-forum.com/t/noob-install-failed-0-0-0-0-3000/180504 "2009-12-20T20:01:55Z")

</div>

Happy Holidays, I am new to RoR and have just run through the install, which well seemed to be vaquely documented as some ‘Do this’ type of thing on the http://rubyonrails.org/download page. download gem setup.rb …

---

## [Possible to set flash within link\_to?](https://www.ruby-forum.com/t/possible-to-set-flash-within-link-to/178767)

<div class="topic-metadata">

**Author:** [@mr\_november](https://www.ruby-forum.com/u/mr_november)\
**Replies:** 3\
**Last updated:** [November 11, 2009, 10:47pm UTC](https://www.ruby-forum.com/t/possible-to-set-flash-within-link-to/178767 "2009-11-11T22:47:44Z")

</div>

hi all, i’d like to set the flash to some text when a user clicks a link. i know it’s possible set a random variable and then it’s available in the params hash but is it possible to do so with the flash? or do i have …

---

## [Escaping and Unescaping text in ERb](https://www.ruby-forum.com/t/escaping-and-unescaping-text-in-erb/53011)

<div class="topic-metadata">

**Author:** [@olbrich](https://www.ruby-forum.com/u/olbrich)\
**Replies:** 0\
**Last updated:** [January 22, 2006, 8:27pm UTC](https://www.ruby-forum.com/t/escaping-and-unescaping-text-in-erb/53011 "2006-01-22T20:27:25Z")

</div>

Instead of continuing the thread hijack, I’ve started a new one… Douglas L. wrote: 2006/1/22, Kevin O. removed\_email\_address@domain.invalid: You know, this has been bothering me a bit lately. If the point of doing…

---

## [Large\_client\_header\_buffers does not work in in server context](https://www.ruby-forum.com/t/large-client-header-buffers-does-not-work-in-in-server-context/243093)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 1\
**Last updated:** [August 21, 2015, 5:25pm UTC](https://www.ruby-forum.com/t/large-client-header-buffers-does-not-work-in-in-server-context/243093 "2015-08-21T17:25:12Z")

</div>

Hello, large\_client\_header\_buffers does not seem to work in server context, however it works fine in http context. Documentation says it should work for both \[1\] and looking at the application code it seems like it sh…

---

## [Ruby\_sysinit causes errors](https://www.ruby-forum.com/t/ruby-sysinit-causes-errors/232003)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 1\
**Last updated:** [September 13, 2014, 11:10am UTC](https://www.ruby-forum.com/t/ruby-sysinit-causes-errors/232003 "2014-09-13T11:10:11Z")

</div>

Hey, i have the fallowing simple code: #include \<ruby.h\> int main(int argc, char \*\*argv) { ruby\_sysinit(&argc, &argv); } I get here (win32: function: rb\_w32\_cmdvector) : http://www.loaditup.de/files/827637\_3ng9qk…

---

## [Sizers + StaticText](https://www.ruby-forum.com/t/sizers-statictext/223124)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 1\
**Last updated:** [September 24, 2012, 12:09am UTC](https://www.ruby-forum.com/t/sizers-statictext/223124 "2012-09-24T00:09:11Z")

</div>

I’ve got some Problems with sizers and StaticTexts. My Code: @sizer = VBoxSizer.new @sizer.add\_item(StaticText.new(self, -1, “Test”), flag: ALIGN\_CENTRE) Until here, everything is OK, Text appears on screen at the ri…

---

## [Using ñ on rails 3](https://www.ruby-forum.com/t/using-n-on-rails-3/209036)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 1\
**Last updated:** [September 13, 2011, 11:10pm UTC](https://www.ruby-forum.com/t/using-n-on-rails-3/209036 "2011-09-13T23:10:04Z")

</div>

my es.yml looks like this es: attributes: user: password: “contraseña” but when loading on my browser I get invalid byte sequence in UTF-8 Extracted source (around line #12): 9: \<%= f.text\_field :email %\> 10…

---

## [RSA public\_encrypt bug?](https://www.ruby-forum.com/t/rsa-public-encrypt-bug/151153)

<div class="topic-metadata">

**Author:** [@dani](https://www.ruby-forum.com/u/dani)\
**Replies:** 5\
**Last updated:** [October 17, 2008, 6:05pm UTC](https://www.ruby-forum.com/t/rsa-public-encrypt-bug/151153 "2008-10-17T18:05:37Z")

</div>

Hi, I’m trying to encrypt some data with an RSA public key, this is the code which is failing: require ‘openssl’ f=File.open(‘public\_key.txt’) rsa = OpenSSL::PKey::RSA rsa.n = OpenSSL::BN.new f.gets rsa.e = OpenS…

---

## [MySQL client ran out of memory](https://www.ruby-forum.com/t/mysql-client-ran-out-of-memory/73117)

<div class="topic-metadata">

**Author:** [@Nicholas\_Van\_W](https://www.ruby-forum.com/u/Nicholas_Van_W)\
**Replies:** 5\
**Last updated:** [February 26, 2006, 2:11am UTC](https://www.ruby-forum.com/t/mysql-client-ran-out-of-memory/73117 "2006-02-26T02:11:09Z")

</div>

I’m getting the following error unexpectedly for my rails app. I just exported the databae from dreamhost and imported it on textdrive for my rails app. Mysql::Error: MySQL client ran out of memory: SELECT COUNT(\*) FR…

---

## [Win .Net form](https://www.ruby-forum.com/t/win-net-form/211553)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 2\
**Last updated:** [May 23, 2012, 7:18pm UTC](https://www.ruby-forum.com/t/win-net-form/211553 "2012-05-23T19:18:01Z")

</div>

I am in need of a grid that has a very high performance for my .Net winform application. I already have a solution but it is just too slow and the API doesn’t meet my requirements. Any kind of help will be welcomed.

---

## [Errors when using sqlite3's query and prepare methods](https://www.ruby-forum.com/t/errors-when-using-sqlite3s-query-and-prepare-methods/178706)

<div class="topic-metadata">

**Author:** [@cluettr](https://www.ruby-forum.com/u/cluettr)\
**Replies:** 2\
**Last updated:** [November 10, 2009, 1:59pm UTC](https://www.ruby-forum.com/t/errors-when-using-sqlite3s-query-and-prepare-methods/178706 "2009-11-10T13:59:15Z")

</div>

Hello all, I’m trying to prepare a sql statement to send to sqlite3 via ruby and am getting errors when using the query and prepare methods. Here’s my code: #!/usr/bin/env ruby require ‘sqlite3’ db = SQLite3::Data…

---

## [Toggle use of bad versions of Boost](https://www.ruby-forum.com/t/toggle-use-of-bad-versions-of-boost/229880)

<div class="topic-metadata">

**Author:** [@tomrobinson](https://www.ruby-forum.com/u/tomrobinson)\
**Replies:** 8\
**Last updated:** [February 26, 2013, 7:14pm UTC](https://www.ruby-forum.com/t/toggle-use-of-bad-versions-of-boost/229880 "2013-02-26T19:14:56Z")

</div>

GNU Radio: now allowing you to shoot yourself in the foot! We’ve identified a few versions of Boost that don’t work well with GNU Radio, 1.46, 1.47, and 1.52. A little while ago, I updated our cmake build files to lo…

---

## [Message expectations without explicit receiver](https://www.ruby-forum.com/t/message-expectations-without-explicit-receiver/165252)

<div class="topic-metadata">

**Author:** [@barunio](https://www.ruby-forum.com/u/barunio)\
**Replies:** 8\
**Last updated:** [April 11, 2009, 12:17am UTC](https://www.ruby-forum.com/t/message-expectations-without-explicit-receiver/165252 "2009-04-11T00:17:08Z")

</div>

A model I’m trying to spec looks something like this class MyClass def methodA do some stuff methodB end def methodB do some stuff end end my spec looks something like this: x = MyClass.new x.should\_receive(:…

---

## [Use sub folder url with share\_layouts](https://www.ruby-forum.com/t/use-sub-folder-url-with-share-layouts/155681)

<div class="topic-metadata">

**Author:** [@vpredoehl](https://www.ruby-forum.com/u/vpredoehl)\
**Replies:** 8\
**Last updated:** [January 4, 2009, 10:47pm UTC](https://www.ruby-forum.com/t/use-sub-folder-url-with-share-layouts/155681 "2009-01-04T22:47:55Z")

</div>

Hello, I’m using share\_layouts in a page ‘/project’ which is using a layout ‘Content’. I created an extension, with routes, controllers etc. to map the project page. Everything is working, the ‘part’ is display than…

---

## [\[SURVEY\] Sysadmin Stupidity Check](https://www.ruby-forum.com/t/survey-sysadmin-stupidity-check/91230)

<div class="topic-metadata">

**Author:** [@Zed\_ASShaw](https://www.ruby-forum.com/u/Zed_ASShaw)\
**Replies:** 8\
**Last updated:** [May 1, 2007, 9:46pm UTC](https://www.ruby-forum.com/t/survey-sysadmin-stupidity-check/91230 "2007-05-01T21:46:47Z")

</div>

Not really a survey on whether sysadmins are stupid, but more a question about how people are doing things with their Mongrel management. Do you have different management commands in your monit configuration vs. your…

---

## [Establish a connection between two computers?](https://www.ruby-forum.com/t/establish-a-connection-between-two-computers/239260)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 6\
**Last updated:** [February 20, 2014, 4:57pm UTC](https://www.ruby-forum.com/t/establish-a-connection-between-two-computers/239260 "2014-02-20T16:57:12Z")

</div>

I’d like to know how to establish a connection between me and another computer via a ruby script. Also If you happen to know a good place where I can learn networking on ruby that’d be great.

---

## [Blog tags - Please please HELP!](https://www.ruby-forum.com/t/blog-tags-please-please-help/161044)

<div class="topic-metadata">

**Author:** [@bartee](https://www.ruby-forum.com/u/bartee)\
**Replies:** 6\
**Last updated:** [February 28, 2009, 1:48pm UTC](https://www.ruby-forum.com/t/blog-tags-please-please-help/161044 "2009-02-28T13:48:20Z")

</div>

I installed the tags extension. However I do not see how I would add “tags” to a blog. I have read all of the docs. They all explain what to do with tags but I CANNOT find what you do to acutally get a tag attached t…

---

## [Use the same page header/footer across apps within a domain?](https://www.ruby-forum.com/t/use-the-same-page-header-footer-across-apps-within-a-domain/81998)

<div class="topic-metadata">

**Author:** [@perezda](https://www.ruby-forum.com/u/perezda)\
**Replies:** 6\
**Last updated:** [January 21, 2007, 5:57am UTC](https://www.ruby-forum.com/t/use-the-same-page-header-footer-across-apps-within-a-domain/81998 "2007-01-21T05:57:11Z")

</div>

Let’s say I have four different rails apps which use different databases… blog.mydomain.com store.mydomain.com links.mydomain.com news.mydomain.com I’d like each app to have a consistent look and feel starting with…

---

## [Everything's an object, right?](https://www.ruby-forum.com/t/everythings-an-object-right/72674)

<div class="topic-metadata">

**Author:** [@Nathan\_Morse](https://www.ruby-forum.com/u/Nathan_Morse)\
**Replies:** 6\
**Last updated:** [February 24, 2006, 2:24pm UTC](https://www.ruby-forum.com/t/everythings-an-object-right/72674 "2006-02-24T14:24:12Z")

</div>

I was talking to a coworker today about the Ruby, and we were discussing how in Ruby everything is an object. He wondered if everything was call-by-reference, and my knee jerk reaction was yes. Then I ran the followi…

---

## [Test d'un module avec rspec](https://www.ruby-forum.com/t/test-dun-module-avec-rspec/162460)

<div class="topic-metadata">

**Author:** [@gilles](https://www.ruby-forum.com/u/gilles)\
**Replies:** 7\
**Last updated:** [March 12, 2009, 2:24pm UTC](https://www.ruby-forum.com/t/test-dun-module-avec-rspec/162460 "2009-03-12T14:24:16Z")

</div>

Bonjour à tous, Voila j’utilise un module pour gérer des sous domaines, placé dans le dossier lib/ qui me retourne une instance particulière d’un modele selon le sous sous-domaine. Ce module placé dans application.rb …

---

## [How to Catch a Status 401 with htpasswd?](https://www.ruby-forum.com/t/how-to-catch-a-status-401-with-htpasswd/151007)

<div class="topic-metadata">

**Author:** [@ziggles](https://www.ruby-forum.com/u/ziggles)\
**Replies:** 7\
**Last updated:** [October 30, 2008, 8:05am UTC](https://www.ruby-forum.com/t/how-to-catch-a-status-401-with-htpasswd/151007 "2008-10-30T08:05:46Z")

</div>

Hi All, I would love to hear your thoughts on this. I am using the htpasswd plugin located here: http://wota.jp/svn/rails/plugins/branches/stable/htpasswd/ To validate access against a .htpasswd file. The plugin is …

---

## [Utf8\_unicode\_ci,](https://www.ruby-forum.com/t/utf8-unicode-ci/203117)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 4\
**Last updated:** [February 14, 2011, 7:05am UTC](https://www.ruby-forum.com/t/utf8-unicode-ci/203117 "2011-02-14T07:05:46Z")

</div>

Hej Jag har en rails applikation som anvnder MYSQL och har definierat tabellerna enligt create\_table :places, :force =\> true, :force =\> true, :options =\> ‘ENGINE=InnoDB DEFAULT CHARSET=utf8’ do |table| och html file…

---

## [Capistrano and vpn secured svn](https://www.ruby-forum.com/t/capistrano-and-vpn-secured-svn/83303)

<div class="topic-metadata">

**Author:** [@Brian\_LeRoux](https://www.ruby-forum.com/u/Brian_LeRoux)\
**Replies:** 4\
**Last updated:** [January 25, 2007, 5:43pm UTC](https://www.ruby-forum.com/t/capistrano-and-vpn-secured-svn/83303 "2007-01-25T17:43:59Z")

</div>

So, I would really like to be using Capistrano but I’m running into a problem when I cap deploy. It looks like cap will try and connect to my subversion repo but its behind a windows VPN. The production server is cent…

---

## [Is there any way to set req\_limit per hour or day like r/s and r/m in nginx?](https://www.ruby-forum.com/t/is-there-any-way-to-set-req-limit-per-hour-or-day-like-r-s-and-r-m-in-nginx/252706)

<div class="topic-metadata">

**Author:** [@aggholamyy](https://www.ruby-forum.com/u/aggholamyy)\
**Replies:** 0\
**Last updated:** [July 14, 2019, 7:36am UTC](https://www.ruby-forum.com/t/is-there-any-way-to-set-req-limit-per-hour-or-day-like-r-s-and-r-m-in-nginx/252706 "2019-07-14T07:36:55Z")

</div>

Is there any way to set req\_limit per hour or day like r/s and r/m in nginx? I’m trying to set limits in nginx.conf for different zones by different threshold. in document just said r/s and r/m.

---

## ["writev() failed (134: Transport endpoint is not connected)" when upstream down](https://www.ruby-forum.com/t/writev-failed-134-transport-endpoint-is-not-connected-when-upstream-down/227975)

<div class="topic-metadata">

**Author:** [@Branden\_V](https://www.ruby-forum.com/u/Branden_V)\
**Replies:** 3\
**Last updated:** [April 22, 2013, 12:24pm UTC](https://www.ruby-forum.com/t/writev-failed-134-transport-endpoint-is-not-connected-when-upstream-down/227975 "2013-04-22T12:24:34Z")

</div>

Hello, I’ve found that when there are upstream servers unavailable in my upstream group, applying a little bit of load on the server (i.e., just myself browsing around quickly, 2-3 req/s max) results in the following …

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

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