# Top

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

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

---

## [Reverse proxy and URL rewrite](https://www.ruby-forum.com/t/reverse-proxy-and-url-rewrite/165316)

<div class="topic-metadata">

**Author:** [@gefafwisp](https://www.ruby-forum.com/u/gefafwisp)\
**Replies:** 2\
**Last updated:** [April 12, 2009, 8:53pm UTC](https://www.ruby-forum.com/t/reverse-proxy-and-url-rewrite/165316 "2009-04-12T20:53:04Z")

</div>

Hi all, I have a Python twisted server running behind nginx. The twisted server expects to be deployed to serve results relative to / However, I actually want it deployed at /buildbot. Is there a way to mangle the re…

---

## [Some quastions about Webby](https://www.ruby-forum.com/t/some-quastions-about-webby/140990)

<div class="topic-metadata">

**Author:** [@antonk](https://www.ruby-forum.com/u/antonk)\
**Replies:** 2\
**Last updated:** [June 20, 2008, 3:47pm UTC](https://www.ruby-forum.com/t/some-quastions-about-webby/140990 "2008-06-20T15:47:21Z")

</div>

Hello. I want to build my oown simple application based on Webby for making prototypes of web-sies. I plan to use my custom CSS Framework and HAML. How I can change settings of this gem that use my css instead Bluepr…

---

## [Form\_for hidden \_method input, wrapped in div?!](https://www.ruby-forum.com/t/form-for-hidden-method-input-wrapped-in-div/125848)

<div class="topic-metadata">

**Author:** [@goodieboy](https://www.ruby-forum.com/u/goodieboy)\
**Replies:** 2\
**Last updated:** [March 11, 2008, 7:04pm UTC](https://www.ruby-forum.com/t/form-for-hidden-method-input-wrapped-in-div/125848 "2008-03-11T19:04:22Z")

</div>

Hi, I’m rendering a form using form\_for, and Rails (2.0.2) is automatically generating the \_method tag for me. Great! But why would the Rails team decide to wrap the thing in a div tag? Here is the output I’m getting…

---

## [Can't update ActiveSupport gem](https://www.ruby-forum.com/t/cant-update-activesupport-gem/121571)

<div class="topic-metadata">

**Author:** [@stasch](https://www.ruby-forum.com/u/stasch)\
**Replies:** 2\
**Last updated:** [November 29, 2007, 2:19am UTC](https://www.ruby-forum.com/t/cant-update-activesupport-gem/121571 "2007-11-29T02:19:08Z")

</div>

I’m getting the message ERROR: While executing gem … (ArgumentError) string contains null byte My RAILS implementation is now completely out of sync. All other gems are updated to latest except ActiveSupport. rake…

---

## [REST: Do I have to use the primary\_key in the path?](https://www.ruby-forum.com/t/rest-do-i-have-to-use-the-primary-key-in-the-path/121328)

<div class="topic-metadata">

**Author:** [@scott](https://www.ruby-forum.com/u/scott)\
**Replies:** 2\
**Last updated:** [November 27, 2007, 5:33am UTC](https://www.ruby-forum.com/t/rest-do-i-have-to-use-the-primary-key-in-the-path/121328 "2007-11-27T05:33:40Z")

</div>

Is there a way to use something other than the an object’s ID in a REST-ful API? For example, if an application stores a collection of plants, can a plant be referenced by the ‘scientific\_name’ rather than the ‘prima…

---

## [Blocking UDP recv() interaction with select()](https://www.ruby-forum.com/t/blocking-udp-recv-interaction-with-select/113626)

<div class="topic-metadata">

**Author:** [@zvilius](https://www.ruby-forum.com/u/zvilius)\
**Replies:** 2\
**Last updated:** [September 3, 2007, 4:30pm UTC](https://www.ruby-forum.com/t/blocking-udp-recv-interaction-with-select/113626 "2007-09-03T16:30:43Z")

</div>

I want to use Ruby for a UDP server application under Windows XP. I intend to use two threads: one for a simple UI, and a separate thread for the UDP server (with blocking calls). As a proof of concept I wrote the fol…

---

## [Strange behavior after switching to DRb server](https://www.ruby-forum.com/t/strange-behavior-after-switching-to-drb-server/90821)

<div class="topic-metadata">

**Author:** [@johnnybutler7](https://www.ruby-forum.com/u/johnnybutler7)\
**Replies:** 2\
**Last updated:** [April 2, 2007, 8:52pm UTC](https://www.ruby-forum.com/t/strange-behavior-after-switching-to-drb-server/90821 "2007-04-02T20:52:11Z")

</div>

After switching to the DRb server, I am experiencing strange behavior when sorting on score. My app was working as expected before the switch. Both before and after the switch, my app sorts properly on other fields, s…

---

## [One liner quiz!](https://www.ruby-forum.com/t/one-liner-quiz/241895)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 4\
**Last updated:** [May 9, 2015, 2:26pm UTC](https://www.ruby-forum.com/t/one-liner-quiz/241895 "2015-05-09T14:26:50Z")

</div>

Hi! My quiz suggestion is to generate such a string in Ruby: ±-==72wanfuiy==–+ | yourwebsite.com | ±-==yiufnaw27==–+ Some kind of ascii art, with a frame where we can see a random string in the upper border and its…

---

## [Script on hash sort - is it possible to optimize?](https://www.ruby-forum.com/t/script-on-hash-sort-is-it-possible-to-optimize/238720)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 4\
**Last updated:** [January 29, 2014, 3:00am UTC](https://www.ruby-forum.com/t/script-on-hash-sort-is-it-possible-to-optimize/238720 "2014-01-29T03:00:44Z")

</div>

I wrote a ruby script hash sort related, but feel it’s not good, is it possible to optimize? ========================================== There is a string(“string\_sample”, every line end with “\\n”), I want the strings…

---

## [How to add gdal with rails application , now working with gdal 1.8 in ubuntu 10.10](https://www.ruby-forum.com/t/how-to-add-gdal-with-rails-application-now-working-with-gdal-1-8-in-ubuntu-10-10/235221)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 4\
**Last updated:** [June 7, 2013, 3:40pm UTC](https://www.ruby-forum.com/t/how-to-add-gdal-with-rails-application-now-working-with-gdal-1-8-in-ubuntu-10-10/235221 "2013-06-07T15:40:14Z")

</div>

I need to downgrade the gdal version , i am working in remote system so have only command prompt so if anybudy know how to either downgrade gdal version from 1.8 to 1.7 or any other way to use gdal in rails app which …

---

## [Initialization of local variables](https://www.ruby-forum.com/t/initialization-of-local-variables/219802)

<div class="topic-metadata">

**Author:** [@Gurdipe\_D](https://www.ruby-forum.com/u/Gurdipe_D)\
**Replies:** 4\
**Last updated:** [May 17, 2012, 3:17pm UTC](https://www.ruby-forum.com/t/initialization-of-local-variables/219802 "2012-05-17T15:17:59Z")

</div>

For some reason I feel a need to initialize variables in some cases as the way “rec” is done in the code below where I do “rec = nil”. I know ruby would initialize it by default, but there are some scenarios where I a…

---

## [Aggiungere un metodo: dove sbaglio?](https://www.ruby-forum.com/t/aggiungere-un-metodo-dove-sbaglio/219087)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 4\
**Last updated:** [April 20, 2012, 11:25am UTC](https://www.ruby-forum.com/t/aggiungere-un-metodo-dove-sbaglio/219087 "2012-04-20T11:25:18Z")

</div>

Buongiorno lista/forum. Altra richiesta di aiuto dal profondo della mia ignoranza. Sto facendo un accrocchio che dovrebbe modificare il database se lanciato… un po’ quello che fa il comando “migrate” sotto rails, ma …

---

## [Are there two kinds of 'require'?](https://www.ruby-forum.com/t/are-there-two-kinds-of-require/213566)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 4\
**Last updated:** [November 5, 2011, 3:59pm UTC](https://www.ruby-forum.com/t/are-there-two-kinds-of-require/213566 "2011-11-05T15:59:26Z")

</div>

I’m reading a tutorial and it has an example like this" require ‘rubygems’ require ‘RedCloth’ The tutorial says: "…the RubyGems library over-rides the require method and enables it to be used to load gems as if the…

---

## [Problem with N200 and waterfall display in grc](https://www.ruby-forum.com/t/problem-with-n200-and-waterfall-display-in-grc/210751)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 4\
**Last updated:** [August 16, 2011, 9:28pm UTC](https://www.ruby-forum.com/t/problem-with-n200-and-waterfall-display-in-grc/210751 "2011-08-16T21:28:36Z")

</div>

Hi Everyone, I have a USRP N200 rev 2. I created a simple graph using the gnu radio companion (grc) which is composed of three blocks, a UHD source, a variable slider, and a WX FFT Waterfall display. When I run thi…

---

## [Undefined method \`rewrite' for #\<String](https://www.ruby-forum.com/t/undefined-method-rewrite-for-string/70264)

<div class="topic-metadata">

**Author:** [@3nd3r](https://www.ruby-forum.com/u/3nd3r)\
**Replies:** 4\
**Last updated:** [December 27, 2010, 6:50pm UTC](https://www.ruby-forum.com/t/undefined-method-rewrite-for-string/70264 "2010-12-27T18:50:04Z")

</div>

Hi. i made a simple controller thats\_not\_users then have a simple line in my layout rhtml file: \<%= link\_to “Users”, :controller =\> “users”, :action =\> “index” %\> And I’m getting this error message within the…

---

## [First Post (Best Practices)](https://www.ruby-forum.com/t/first-post-best-practices/188530)

<div class="topic-metadata">

**Author:** [@Ants\_P](https://www.ruby-forum.com/u/Ants_P)\
**Replies:** 4\
**Last updated:** [May 14, 2010, 12:48am UTC](https://www.ruby-forum.com/t/first-post-best-practices/188530 "2010-05-14T00:48:17Z")

</div>

Hello everyone, I’m just working my way through the RSpec/Cucumber book, I love the tool but not so much the learning curve :frowning: Starting with my first view, is it okay for me, in the BDD world, to do the fol…

---

## [Nginx proxy-caching Apache autoindex](https://www.ruby-forum.com/t/nginx-proxy-caching-apache-autoindex/180420)

<div class="topic-metadata">

**Author:** [@christogouws](https://www.ruby-forum.com/u/christogouws)\
**Replies:** 4\
**Last updated:** [December 19, 2009, 3:25pm UTC](https://www.ruby-forum.com/t/nginx-proxy-caching-apache-autoindex/180420 "2009-12-19T15:25:34Z")

</div>

I’m having difficulty getting nginx to proxy in front of a Apache server, the Apache server displays a auto generated directory list, but when I try from nginx all I get is a 403 error message. Is there some kind of …

---

## [String and fixnum(float) concatenation](https://www.ruby-forum.com/t/string-and-fixnum-float-concatenation/161181)

<div class="topic-metadata">

**Author:** [@Jun\_YSKim](https://www.ruby-forum.com/u/Jun_YSKim)\
**Replies:** 4\
**Last updated:** [February 24, 2009, 8:52am UTC](https://www.ruby-forum.com/t/string-and-fixnum-float-concatenation/161181 "2009-02-24T08:52:31Z")

</div>

hi, forks… see this source irb(main):015:0\> puts “%\*s” % \[ “1”, 2 \] TypeError: can’t convert String into Integer from (irb):15:in \`%’ from (irb):15 from :0 irb(main):016:0\> AIK, “%\*s” is to use for concatenation …

---

## [Ssi, reverse-proxy and compression](https://www.ruby-forum.com/t/ssi-reverse-proxy-and-compression/158821)

<div class="topic-metadata">

**Author:** [@teenage](https://www.ruby-forum.com/u/teenage)\
**Replies:** 4\
**Last updated:** [January 28, 2009, 2:45pm UTC](https://www.ruby-forum.com/t/ssi-reverse-proxy-and-compression/158821 "2009-01-28T14:45:12Z")

</div>

Hello, we’re using ssi with reverse-proxy on NginX 0.6.34, but have a problem when contents is compressed on the fly by the backend. As we can’t disable this on the backend, we would like setup NginX to don’t send th…

---

## [Des docs Ã  jour pour Rails!](https://www.ruby-forum.com/t/des-docs-a-jour-pour-rails/148801)

<div class="topic-metadata">

**Author:** [@gbenoit79](https://www.ruby-forum.com/u/gbenoit79)\
**Replies:** 4\
**Last updated:** [September 18, 2008, 8:27am UTC](https://www.ruby-forum.com/t/des-docs-a-jour-pour-rails/148801 "2008-09-18T08:27:19Z")

</div>

Salut ! Vous trouverez ici de très jolies docs, qui j’espère seront maintenues à jour au fur-et-à-mesure que Rails évolue : http://guides.rails.info/ Si j’ai bien compris il s’agit du résultat d’une espèce de concours…

---

## [Spec\_server doesn't update 'required' files](https://www.ruby-forum.com/t/spec-server-doesnt-update-required-files/118357)

<div class="topic-metadata">

**Author:** [@steve](https://www.ruby-forum.com/u/steve)\
**Replies:** 4\
**Last updated:** [October 26, 2007, 1:37pm UTC](https://www.ruby-forum.com/t/spec-server-doesnt-update-required-files/118357 "2007-10-26T13:37:38Z")

</div>

I have some specs that ‘require’ other files. When running spec\_server, if these required files are changed, it’s not picked up when the specs are run. I have to restart spec\_server to get the changes recognized. Is …

---

## [Mongrel Cluster](https://www.ruby-forum.com/t/mongrel-cluster/116935)

<div class="topic-metadata">

**Author:** [@FEj](https://www.ruby-forum.com/u/FEj)\
**Replies:** 4\
**Last updated:** [October 11, 2007, 3:00pm UTC](https://www.ruby-forum.com/t/mongrel-cluster/116935 "2007-10-11T15:00:30Z")

</div>

Hi guys, qualcuno di voi ha mai usato mongrel in cluster? Dove posso trovare info dettagliate? La replica della sessione tra i nodi e\` gestita correttamente? In altre parole quali sono i pro e i contro? Ciao, FEj

---

## [Re: interacting with another program](https://www.ruby-forum.com/t/re-interacting-with-another-program/105270)

<div class="topic-metadata">

**Author:** [@scoundrel](https://www.ruby-forum.com/u/scoundrel)\
**Replies:** 4\
**Last updated:** [May 30, 2007, 6:30am UTC](https://www.ruby-forum.com/t/re-interacting-with-another-program/105270 "2007-05-30T06:30:30Z")

</div>

To summarize: Read data from another program by ruby program Data analysis by ruby program action perform in the other program by ruby program As far as I understand you want to interact with Win32 GUI application. …

---

## [How to pass"page" parameter to xxx\_path or xxx\_url](https://www.ruby-forum.com/t/how-to-pass-page-parameter-to-xxx-path-or-xxx-url/90155)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 4\
**Last updated:** [March 27, 2007, 8:50am UTC](https://www.ruby-forum.com/t/how-to-pass-page-parameter-to-xxx-path-or-xxx-url/90155 "2007-03-27T08:50:54Z")

</div>

Dear all, In my app, i uses named route to point to a list page. This is a paginated list. I try to go to a specific page by passing the “page” parameter to the xxx\_path method in link\_to call, but this method doesn’…

---

## [Attr\_protected and id](https://www.ruby-forum.com/t/attr-protected-and-id/84978)

<div class="topic-metadata">

**Author:** [@PeteSalty](https://www.ruby-forum.com/u/PeteSalty)\
**Replies:** 4\
**Last updated:** [February 9, 2007, 12:32am UTC](https://www.ruby-forum.com/t/attr-protected-and-id/84978 "2007-02-09T00:32:30Z")

</div>

Is it necessarty to protect the autogenerated id of an object from mass assignment in each model. i.e.do I have to do this: attr\_protected :id in each model if I don’t want users to be able to override the id of an o…

---

## [Ferret Indexing](https://www.ruby-forum.com/t/ferret-indexing/99008)

<div class="topic-metadata">

**Author:** [@guest](https://www.ruby-forum.com/u/guest)\
**Replies:** 4\
**Last updated:** [July 19, 2006, 8:07pm UTC](https://www.ruby-forum.com/t/ferret-indexing/99008 "2006-07-19T20:07:51Z")

</div>

Does ferret only index, when you create, or udpate a record? Is there a way to make it index prexisting records? Thanks.

---

## [\[NEWS\] Ruby-on-Rails reached second place in Dutch Rapid-App](https://www.ruby-forum.com/t/news-ruby-on-rails-reached-second-place-in-dutch-rapid-app/56358)

<div class="topic-metadata">

**Author:** [@Erik\_van\_Oosten](https://www.ruby-forum.com/u/Erik_van_Oosten)\
**Replies:** 4\
**Last updated:** [March 30, 2006, 4:38pm UTC](https://www.ruby-forum.com/t/news-ruby-on-rails-reached-second-place-in-dutch-rapid-app/56358 "2006-03-30T16:38:10Z")

</div>

Hi there, The results have just been in and the Ruby-on-Rails team from Finalist IT Group reached an incredible second place! We’re actually so surprised, that I personally expect the start of RoR projects here soon.…

---

## [Rails to Java](https://www.ruby-forum.com/t/rails-to-java/99255)

<div class="topic-metadata">

**Author:** [@aboudank](https://www.ruby-forum.com/u/aboudank)\
**Replies:** 4\
**Last updated:** [January 31, 2006, 12:13pm UTC](https://www.ruby-forum.com/t/rails-to-java/99255 "2006-01-31T12:13:39Z")

</div>

Hello, I just started playing with RubyOnRails. It is indeed fascinating! I have a question about using rails models to connect to backend Java (i.e. EJBs) instead of database. Any pointers will be appreciated. Than…

---

## [Ruport 0.2.5: Enumerable DataSets, and things that go bump i](https://www.ruby-forum.com/t/ruport-0-2-5-enumerable-datasets-and-things-that-go-bump-i/48381)

<div class="topic-metadata">

**Author:** [@gregory.t.brown](https://www.ruby-forum.com/u/gregory.t.brown)\
**Replies:** 4\
**Last updated:** [November 28, 2005, 5:18am UTC](https://www.ruby-forum.com/t/ruport-0-2-5-enumerable-datasets-and-things-that-go-bump-i/48381 "2005-11-28T05:18:44Z")

</div>

Welcome to the release of Ruport 0.2.5: The “I’m releasing too often” edition. What is Ruport? Right now, Ruport is alpha software, but it is already useful. It is both a report generation and formatting framework A…

---

## [G-WAN assumptions: Part of truth/lies?](https://www.ruby-forum.com/t/g-wan-assumptions-part-of-truth-lies/234117)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 3\
**Last updated:** [February 10, 2015, 10:28am UTC](https://www.ruby-forum.com/t/g-wan-assumptions-part-of-truth-lies/234117 "2015-02-10T10:28:38Z")

</div>

Hello, Documentating myself on proper benchmarking, I ran into the following page: Their conclusion is that their product is the best of all. Well, ‘of course’ one might say… ;o) What surprised me most that they cl…

---

## ["unable to find valid certification path to requested target" error in java based server while acces](https://www.ruby-forum.com/t/unable-to-find-valid-certification-path-to-requested-target-error-in-java-based-server-while-acces/234056)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 0\
**Last updated:** [February 3, 2015, 10:05am UTC](https://www.ruby-forum.com/t/unable-to-find-valid-certification-path-to-requested-target-error-in-java-based-server-while-acces/234056 "2015-02-03T10:05:32Z")

</div>

Hi, I have two java based servers. We call it server A and server B. I can call directly from A to B server. Then I configured call server A to server B though nginx instance. Then I get following error. TID: \[0\] \[A…

---

## [\[ruby-trunk - Bug #10648\] \[Open\] libffi can't build on mswin32](https://www.ruby-forum.com/t/ruby-trunk-bug-10648-open-libffi-cant-build-on-mswin32/233572)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 0\
**Last updated:** [December 25, 2014, 11:04am UTC](https://www.ruby-forum.com/t/ruby-trunk-bug-10648-open-libffi-cant-build-on-mswin32/233572 "2014-12-25T11:04:12Z")

</div>

Issue #10648 has been reported by Koichi Sasada. Bug #10648: libffi can’t build on mswin32 Author: Koichi Sasada Status: Open Priority: Normal Assignee: Category: ext Target version: current: 2.2.0 ruby -v: ruby 2.2…

---

## [AS400 database connectivity(aka iSeries, i5, System i)](https://www.ruby-forum.com/t/as400-database-connectivity-aka-iseries-i5-system-i/189267)

<div class="topic-metadata">

**Author:** [@frank\_programmer](https://www.ruby-forum.com/u/frank_programmer)\
**Replies:** 3\
**Last updated:** [November 4, 2014, 5:08am UTC](https://www.ruby-forum.com/t/as400-database-connectivity-aka-iseries-i5-system-i/189267 "2014-11-04T05:08:41Z")

</div>

I am looking for a working open-source RUBY example that demonstrates how to connect to an AS400 database and query a file. If someone has an example using a free AS400 account from rzkh.de that would excellent. Than…

---

## [My First Project Help](https://www.ruby-forum.com/t/my-first-project-help/232036)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 3\
**Last updated:** [September 15, 2014, 5:48pm UTC](https://www.ruby-forum.com/t/my-first-project-help/232036 "2014-09-15T17:48:21Z")

</div>

I just need somebody to point me in the right direction on how to start off. I have so far got experience on creating todo lists, user authentication and jumping into a real life project which is a big moment for me. …

---

## [Header Vary: Accept-Encoding - security risk?](https://www.ruby-forum.com/t/header-vary-accept-encoding-security-risk/230062)

<div class="topic-metadata">

**Author:** [@jason\_sam](https://www.ruby-forum.com/u/jason_sam)\
**Replies:** 3\
**Last updated:** [May 29, 2014, 5:49pm UTC](https://www.ruby-forum.com/t/header-vary-accept-encoding-security-risk/230062 "2014-05-29T17:49:13Z")

</div>

Dear list, I have enabled gzip with … gzip on; gzip\_http\_version 1.0; gzip\_vary on; … to satisfy incoming HTTP 1.0 requests. In a very similiar setup which got OWASP-evaluated, I read this - marked as a defect: …

---

## [Validates :uniqueness apparently doesn't](https://www.ruby-forum.com/t/validates-uniqueness-apparently-doesnt/228774)

<div class="topic-metadata">

**Author:** [@fritza](https://www.ruby-forum.com/u/fritza)\
**Replies:** 3\
**Last updated:** [May 8, 2013, 2:02pm UTC](https://www.ruby-forum.com/t/validates-uniqueness-apparently-doesnt/228774 "2013-05-08T14:02:53Z")

</div>

ruby 2.0.0p0 (2013-02-24 revision 39474) \[x86\_64-darwin12.3.0\] Rails 3.2.13 I have a validates … :uniqueness constraint on one of the attributes of an ActiveRecord class. In my test suite, I set the attribute from th…

---

## [Class instance variables vs class variables](https://www.ruby-forum.com/t/class-instance-variables-vs-class-variables/217398)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 3\
**Last updated:** [March 4, 2012, 1:56am UTC](https://www.ruby-forum.com/t/class-instance-variables-vs-class-variables/217398 "2012-03-04T01:56:07Z")

</div>

I’m trying to understand the difference between “class instance” variables (@var defined at class level) and “class” variables (@@var), and when to use each. It seems like they are the same, except that “class” varia…

---

## [Nginx & Range header & proxy cache](https://www.ruby-forum.com/t/nginx-range-header-proxy-cache/211770)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 3\
**Last updated:** [September 13, 2011, 6:05pm UTC](https://www.ruby-forum.com/t/nginx-range-header-proxy-cache/211770 "2011-09-13T18:05:30Z")

</div>

Hi If a Range request is sent to nginx proxy (e.g. header “Range: bytes=50-”) and the file isn’t in cache yet (cache MISS), the range is ignored and full file sent When the file has been cached (cache HIT), Range req…

---

## [Javascript\_include\_tag error](https://www.ruby-forum.com/t/javascript-include-tag-error/210550)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 3\
**Last updated:** [August 11, 2011, 7:51am UTC](https://www.ruby-forum.com/t/javascript-include-tag-error/210550 "2011-08-11T07:51:59Z")

</div>

\<%= @title %\> \<%= csrf\_meta\_tag %\> \<%= javascript\_include\_tag "http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js", "jquery.rails.js" %\> ...app/views/layouts/application.html.erb:7: syntax error, u…

---

## [Error during installing gem named mysql2](https://www.ruby-forum.com/t/error-during-installing-gem-named-mysql2/204487)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 3\
**Last updated:** [March 15, 2011, 12:05pm UTC](https://www.ruby-forum.com/t/error-during-installing-gem-named-mysql2/204487 "2011-03-15T12:05:52Z")

</div>

hello everyone, \* \* \*im getting this error when im installing a gem via command prompt \* can any one help me out? please \* \* thanks. \* \* C:\>gem i mysql2 Temporarily enhancing PATH to include DevKit… Building …

---

## [Followup: M-Audio Revolution 7.1 as audio source at 192KHz: Fedora 14/Alsa/ICE1724 driver](https://www.ruby-forum.com/t/followup-m-audio-revolution-7-1-as-audio-source-at-192khz-fedora-14-alsa-ice1724-driver/201121)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 3\
**Last updated:** [December 31, 2010, 1:53am UTC](https://www.ruby-forum.com/t/followup-m-audio-revolution-7-1-as-audio-source-at-192khz-fedora-14-alsa-ice1724-driver/201121 "2010-12-31T01:53:13Z")

</div>

I’d noticed a problem with running the M-Audio Revolution 7.1 sound card at 192KHz as a source in Gnu Radio – the spectrum was all “funny”, with the spectrum getting “reflected” about 48KHz, almost as if the actual sa…

---

## [Best way to get 3/2 == 1.5?](https://www.ruby-forum.com/t/best-way-to-get-3-2-1-5/200885)

<div class="topic-metadata">

**Author:** [@nikuSESS](https://www.ruby-forum.com/u/nikuSESS)\
**Replies:** 3\
**Last updated:** [December 24, 2010, 1:35am UTC](https://www.ruby-forum.com/t/best-way-to-get-3-2-1-5/200885 "2010-12-24T01:35:17Z")

</div>

I really like to get “real/float” division results. I know that there are cases where one may need integer results, but for most of my applications I do not want it. For example for may cairo drawing test at Homepage …

---

## [Nginx: : unknown "secure\_download" variable](https://www.ruby-forum.com/t/nginx-unknown-secure-download-variable/200238)

<div class="topic-metadata">

**Author:** [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Replies:** 3\
**Last updated:** [December 7, 2010, 5:28pm UTC](https://www.ruby-forum.com/t/nginx-unknown-secure-download-variable/200238 "2010-12-07T17:28:23Z")

</div>

I was following the example in Secure Download | NGINX but when I added this: if ($secure\_download = "-1") { rewrite /expired.html break; } if ($secure\_download = "-2") { …

---

## [The {{key}} interpolation syntax in I18n messages is deprecated](https://www.ruby-forum.com/t/the-key-interpolation-syntax-in-i18n-messages-is-deprecated/192539)

<div class="topic-metadata">

**Author:** [@ntk](https://www.ruby-forum.com/u/ntk)\
**Replies:** 3\
**Last updated:** [August 2, 2010, 5:08pm UTC](https://www.ruby-forum.com/t/the-key-interpolation-syntax-in-i18n-messages-is-deprecated/192539 "2010-08-02T17:08:42Z")

</div>

All, Has anyone seen this - I am getting the following deprecation warning when running my functional tests under rails 2.3.8 (just moved an app from 2.3.4 up to 2.3.8 in prep to move to Rails 3 — if you think this …

---

## [How to specify working directory in config/database.yml?](https://www.ruby-forum.com/t/how-to-specify-working-directory-in-config-database-yml/174731)

<div class="topic-metadata">

**Author:** [@Josef\_W](https://www.ruby-forum.com/u/Josef_W)\
**Replies:** 3\
**Last updated:** [September 3, 2009, 9:02pm UTC](https://www.ruby-forum.com/t/how-to-specify-working-directory-in-config-database-yml/174731 "2009-09-03T21:02:58Z")

</div>

Hello folks, I’d like to use postgresql with unix domain sockets for testinng/development to avoid mismatches when tests from multiple working copies are run concurrently. I can almost get what I want with the follo…

---

## [Comparing date problem](https://www.ruby-forum.com/t/comparing-date-problem/196882)

<div class="topic-metadata">

**Author:** [@staypufd](https://www.ruby-forum.com/u/staypufd)\
**Replies:** 8\
**Last updated:** [April 22, 2009, 2:22am UTC](https://www.ruby-forum.com/t/comparing-date-problem/196882 "2009-04-22T02:22:25Z")

</div>

I have a set of dates in my database and would like to only get the latest one or the one closest to the current date. I’m trying to come up with a way of doing it but had no luck. If any one could help I would apprec…

---

## [Custom matcher, use other helpers and matchers from rspec-rails](https://www.ruby-forum.com/t/custom-matcher-use-other-helpers-and-matchers-from-rspec-rails/165356)

<div class="topic-metadata">

**Author:** [@devbanana](https://www.ruby-forum.com/u/devbanana)\
**Replies:** 3\
**Last updated:** [April 13, 2009, 4:07am UTC](https://www.ruby-forum.com/t/custom-matcher-use-other-helpers-and-matchers-from-rspec-rails/165356 "2009-04-13T04:07:20Z")

</div>

Hi, I am creating an improved version of route\_for that is more intuitive to me. However, I keep getting NoMethodError exceptions, so am trying to find all the includes I have to put into my class. What’s the best …

---

## [Migration : value between 1 and 7](https://www.ruby-forum.com/t/migration-value-between-1-and-7/161352)

<div class="topic-metadata">

**Author:** [@loader](https://www.ruby-forum.com/u/loader)\
**Replies:** 8\
**Last updated:** [February 25, 2009, 8:06pm UTC](https://www.ruby-forum.com/t/migration-value-between-1-and-7/161352 "2009-02-25T20:06:38Z")

</div>

Hello everyone! I want to add a column to a table. So here is my migration. My question is : Is it possible to say that this value must be between 1 and 7 and must no be a float (1.4 shouldn’t be possible) ? class Ad…

---

## [Rake et cap completion bour bash](https://www.ruby-forum.com/t/rake-et-cap-completion-bour-bash/156853)

<div class="topic-metadata">

**Author:** [@SSSSSbastien\_Gruhie](https://www.ruby-forum.com/u/SSSSSbastien_Gruhie)\
**Replies:** 3\
**Last updated:** [January 5, 2009, 3:10pm UTC](https://www.ruby-forum.com/t/rake-et-cap-completion-bour-bash/156853 "2009-01-05T15:10:31Z")

</div>

Salut tout le monde, AprÃ¨s pas mal de frustrations du manque de complÃ©tion des taches rake et cap en ligne de commande, j’ai cherchÃ© sur Google et lu un peu de code pour enfin avoir cette complÃ©tion bien utile. V…

---

## [Access to method in superclass](https://www.ruby-forum.com/t/access-to-method-in-superclass/146815)

<div class="topic-metadata">

**Author:** [@crucoba](https://www.ruby-forum.com/u/crucoba)\
**Replies:** 8\
**Last updated:** [September 2, 2008, 12:49am UTC](https://www.ruby-forum.com/t/access-to-method-in-superclass/146815 "2008-09-02T00:49:37Z")

</div>

LIKE ACCEDING TO THE METHOD " setSpeed" OF THE SUPERCLASS “Airplane”. Thak you

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

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