# Top

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

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

---

## [Module include class/instance methods confusion!](https://www.ruby-forum.com/t/module-include-class-instance-methods-confusion/160866)

<div class="topic-metadata">

**Author:** [@hirodusk](https://www.ruby-forum.com/u/hirodusk)\
**Replies:** 2\
**Last updated:** [February 20, 2009, 3:12pm UTC](https://www.ruby-forum.com/t/module-include-class-instance-methods-confusion/160866 "2009-02-20T15:12:55Z")

</div>

I have been having trouble today with a module include in a Rails app. The module file sits in the /lib folder. My problem, I worked out (which I have noticed before) is that I cannot seem to access defined class meth…

---

## [Math::erfinv inverse error function](https://www.ruby-forum.com/t/math-erfinv-inverse-error-function/140442)

<div class="topic-metadata">

**Author:** [@Bil\_K](https://www.ruby-forum.com/u/Bil_K)\
**Replies:** 2\
**Last updated:** [June 14, 2008, 11:02pm UTC](https://www.ruby-forum.com/t/math-erfinv-inverse-error-function/140442 "2008-06-14T23:02:06Z")

</div>

Hi, Does anyone know where to find a Ruby /inverse/ error function?^1 Thanks, Bil kleb \[1\] See for example Error function - Wikipedia

---

## [HOWTO: Upcoming birthdays partial](https://www.ruby-forum.com/t/howto-upcoming-birthdays-partial/88075)

<div class="topic-metadata">

**Author:** [@taylorstrait](https://www.ruby-forum.com/u/taylorstrait)\
**Replies:** 2\
**Last updated:** [March 8, 2007, 1:38am UTC](https://www.ruby-forum.com/t/howto-upcoming-birthdays-partial/88075 "2007-03-08T01:38:38Z")

</div>

I searched for this info earlier and only found other people asking how to do this. So, now that I have done it I though I would add it to the archives: \_UPCOMING\_BIRTHDAYS.RHTML \<% @upcoming\_birthdays = Person.find…

---

## [Engines seems to be a great replacement for Productize](https://www.ruby-forum.com/t/engines-seems-to-be-a-great-replacement-for-productize/62512)

<div class="topic-metadata">

**Author:** [@Daniel\_Einspanjer](https://www.ruby-forum.com/u/Daniel_Einspanjer)\
**Replies:** 2\
**Last updated:** [June 6, 2006, 12:16am UTC](https://www.ruby-forum.com/t/engines-seems-to-be-a-great-replacement-for-productize/62512 "2006-06-06T00:16:43Z")

</div>

I just found the Engines plugin and I’m very happy with the progress I’ve made this morning in getting up and running with it. I’m using it as a replacement for Duane’s Productize concept. I have a generic applicati…

---

## [Seeing performance problems with has\_many :through relation](https://www.ruby-forum.com/t/seeing-performance-problems-with-has-many-through-relation/59169)

<div class="topic-metadata">

**Author:** [@aginghipster](https://www.ruby-forum.com/u/aginghipster)\
**Replies:** 2\
**Last updated:** [May 3, 2006, 6:56pm UTC](https://www.ruby-forum.com/t/seeing-performance-problems-with-has-many-through-relation/59169 "2006-05-03T18:56:53Z")

</div>

Greetings all, I am looking for some insight from some of the more experienced with has\_many :through relationships as I am having a hard time reconciling the performance I am seeing. I have 2 tables that are linked t…

---

## [Rails 2.3.5 and ruby 1.8.7 expert](https://www.ruby-forum.com/t/rails-2-3-5-and-ruby-1-8-7-expert/242737)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 4\
**Last updated:** [August 25, 2015, 4:43pm UTC](https://www.ruby-forum.com/t/rails-2-3-5-and-ruby-1-8-7-expert/242737 "2015-08-25T16:43:19Z")

</div>

I have an app running in rails 2.3.5 and ruby 1.8.7, That require some customization. I’m looking for someone who can work with me at a very minimal budget i have Thanks.

---

## [GSoC participant ; Introduction, progress, plan etc](https://www.ruby-forum.com/t/gsoc-participant-introduction-progress-plan-etc/240721)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 4\
**Last updated:** [June 15, 2014, 5:12pm UTC](https://www.ruby-forum.com/t/gsoc-participant-introduction-progress-plan-etc/240721 "2014-06-15T17:12:51Z")

</div>

Hi everyone, I have been selected for GSoC 2014 under GNU Radio. I will be working on VOLK over the summer - my project proposal and GSoC page are as follows : 1. 2. https://www.google-melange.com/gsoc/project/det…

---

## [Rubygems, rubygems-bundler and bundler](https://www.ruby-forum.com/t/rubygems-rubygems-bundler-and-bundler/227487)

<div class="topic-metadata">

**Author:** [@christophrost](https://www.ruby-forum.com/u/christophrost)\
**Replies:** 4\
**Last updated:** [March 19, 2013, 10:00am UTC](https://www.ruby-forum.com/t/rubygems-rubygems-bundler-and-bundler/227487 "2013-03-19T10:00:36Z")

</div>

Hello, I would like to exactly know how rubygems-bundler and bundler make difference in Rails applications. I am using RVM to manage different Ruby versions and ruby gems. When I have a look into @global gemset for e…

---

## [Adventures with rails, cucumber, selenium, and a database](https://www.ruby-forum.com/t/adventures-with-rails-cucumber-selenium-and-a-database/227381)

<div class="topic-metadata">

**Author:** [@jsnark](https://www.ruby-forum.com/u/jsnark)\
**Replies:** 4\
**Last updated:** [March 15, 2013, 12:32pm UTC](https://www.ruby-forum.com/t/adventures-with-rails-cucumber-selenium-and-a-database/227381 "2013-03-15T12:32:42Z")

</div>

I have a rails 3.0 application with complicated logic and was finding that changes to fix a bug would introduce another bug elsewhere. I needed an automatic regression test tool so I could quickly know if this happen…

---

## [Nginx-1.1.9](https://www.ruby-forum.com/t/nginx-1-1-9/214319)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 4\
**Last updated:** [November 29, 2011, 7:26pm UTC](https://www.ruby-forum.com/t/nginx-1-1-9/214319 "2011-11-29T19:26:26Z")

</div>

Changes with nginx 1.1.9 28 Nov 2011 \*) Change: now double quotes are encoded in an "echo" SSI-command output. Thanks to Zaur Abasmirzoev. \*) Feature: the "valid" paramete…

---

## [Nginx 0.8.25 on an Xen VPS - Ubuntu](https://www.ruby-forum.com/t/nginx-0-8-25-on-an-xen-vps-ubuntu/179098)

<div class="topic-metadata">

**Author:** [@sovok](https://www.ruby-forum.com/u/sovok)\
**Replies:** 4\
**Last updated:** [November 24, 2010, 11:13pm UTC](https://www.ruby-forum.com/t/nginx-0-8-25-on-an-xen-vps-ubuntu/179098 "2010-11-24T23:13:19Z")

</div>

Hello, I just build nginx from source on a new VPS based on Xen. The system is running Ubuntu. The build was fine also the installation, but when starting it, the workers are not starting and have this error in error\_…

---

## [Problems using java.util.concurrent thread pools](https://www.ruby-forum.com/t/problems-using-java-util-concurrent-thread-pools/196116)

<div class="topic-metadata">

**Author:** [@snacktime](https://www.ruby-forum.com/u/snacktime)\
**Replies:** 4\
**Last updated:** [October 7, 2010, 8:08pm UTC](https://www.ruby-forum.com/t/problems-using-java-util-concurrent-thread-pools/196116 "2010-10-07T20:08:17Z")

</div>

I’m playing around with ffi-rzmq which provides bindings to 0mq. I have a block of code that I run in a thread that creates a 0mq socket and then just loops forever reading and writing to it. Pseudo code… @thread\_p…

---

## [Problems with system("...") method in Rails](https://www.ruby-forum.com/t/problems-with-system-method-in-rails/182690)

<div class="topic-metadata">

**Author:** [@christoph\_j](https://www.ruby-forum.com/u/christoph_j)\
**Replies:** 4\
**Last updated:** [February 1, 2010, 5:21pm UTC](https://www.ruby-forum.com/t/problems-with-system-method-in-rails/182690 "2010-02-01T17:21:44Z")

</div>

Hi there, since two days or so my application doesn’t seem to execute the system method. I use it for generating thumbnails like: def create\_thumb(field,image\_name) thumb\_name = "..." path = "..." # call Image…

---

## [Testing alternate css for printing](https://www.ruby-forum.com/t/testing-alternate-css-for-printing/167509)

<div class="topic-metadata">

**Author:** [@colinloretz](https://www.ruby-forum.com/u/colinloretz)\
**Replies:** 4\
**Last updated:** [May 9, 2009, 11:20am UTC](https://www.ruby-forum.com/t/testing-alternate-css-for-printing/167509 "2009-05-09T11:20:57Z")

</div>

I am using an alternate style sheet for printing, loading it via \<%= stylesheet\_link\_tag ‘print’, :media =\> :print %\> which is working as expected. The problem is with testing, I would like to test that the layout is …

---

## [PorquÃ© Rails viene por defecto con MySQL](https://www.ruby-forum.com/t/porqua-rails-viene-por-defecto-con-mysql/161922)

<div class="topic-metadata">

**Author:** [@nettoxic](https://www.ruby-forum.com/u/nettoxic)\
**Replies:** 4\
**Last updated:** [March 4, 2009, 3:31am UTC](https://www.ruby-forum.com/t/porqua-rails-viene-por-defecto-con-mysql/161922 "2009-03-04T03:31:04Z")

</div>

Mi pregunta es la siguiente Â¿Por quÃ© Rails sÃ³lo viene por defecto con MySQL? No lo pregunto de menospreciar a este excelente gestor, pero es que yo no uso MySQL, toda una vida he usado PostgreSQL desde el 1er aÃ±o …

---

## [Undefined method \`prefetch\_primary\_key?' for #\<Connection:0x](https://www.ruby-forum.com/t/undefined-method-prefetch-primary-key-for-connection-0x/161083)

<div class="topic-metadata">

**Author:** [@sdesbure](https://www.ruby-forum.com/u/sdesbure)\
**Replies:** 4\
**Last updated:** [February 23, 2009, 10:05am UTC](https://www.ruby-forum.com/t/undefined-method-prefetch-primary-key-for-connection-0x/161083 "2009-02-23T10:05:08Z")

</div>

Bonjour, dans mon application, je remplie ma base Ã partir d’un fichier XML avec Hpricot. une fois l’ objet fichier sauvegardÃ© en base, je crÃ©e pas mal d’objets, dont des connections. Les connections edge ont les…

---

## [\[ANN\] Tarantula 0.0.1 released!](https://www.ruby-forum.com/t/ann-tarantula-0-0-1-released/130290)

<div class="topic-metadata">

**Author:** [@rsanheim](https://www.ruby-forum.com/u/rsanheim)\
**Replies:** 4\
**Last updated:** [February 27, 2008, 9:07am UTC](https://www.ruby-forum.com/t/ann-tarantula-0-0-1-released/130290 "2008-02-27T09:07:55Z")

</div>

The Tarantula is a fuzzy spider. It crawls your rails app, fuzzing inputs and analyzing what comes back. We have pointed Tarantula at about 20 Rails applications, both commercial and open source, and have never failed…

---

## [How to associate a model's attribute with CSS style](https://www.ruby-forum.com/t/how-to-associate-a-models-attribute-with-css-style/80855)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 4\
**Last updated:** [January 2, 2007, 12:09pm UTC](https://www.ruby-forum.com/t/how-to-associate-a-models-attribute-with-css-style/80855 "2007-01-02T12:09:17Z")

</div>

So this isn’t a question specific to Rails, but I wanted to keep the purity of the MVC architecture as much as possible. I have an AR model, order, which can have a status. I want to style the orders based on what th…

---

## [String#crypt first 8 characters](https://www.ruby-forum.com/t/string-crypt-first-8-characters/78388)

<div class="topic-metadata">

**Author:** [@pjpatten](https://www.ruby-forum.com/u/pjpatten)\
**Replies:** 4\
**Last updated:** [December 7, 2006, 11:50am UTC](https://www.ruby-forum.com/t/string-crypt-first-8-characters/78388 "2006-12-07T11:50:22Z")

</div>

Hello, i had a problem with str.crypt - i got every time the same result. The problem is, that this method only use the first 8 characters of the string: irb(main):022:0\> “1234567”.crypt(‘aa’) =\> “aaOK9MRbwVNmQ” ir…

---

## [Acts\_as\_ferret and searching word docs](https://www.ruby-forum.com/t/acts-as-ferret-and-searching-word-docs/76295)

<div class="topic-metadata">

**Author:** [@Alex\_MacCaw](https://www.ruby-forum.com/u/Alex_MacCaw)\
**Replies:** 4\
**Last updated:** [November 20, 2006, 2:47pm UTC](https://www.ruby-forum.com/t/acts-as-ferret-and-searching-word-docs/76295 "2006-11-20T14:47:16Z")

</div>

I was wondering if it is possible to search word documents using ferret. The actual text in a word document isn’t in a binary format - only the formatting. Surely it would be possible to parse that?

---

## [Version Controling Modifications](https://www.ruby-forum.com/t/version-controling-modifications/101139)

<div class="topic-metadata">

**Author:** [@jjkiesch](https://www.ruby-forum.com/u/jjkiesch)\
**Replies:** 4\
**Last updated:** [August 3, 2006, 1:22pm UTC](https://www.ruby-forum.com/t/version-controling-modifications/101139 "2006-08-03T13:22:19Z")

</div>

When running off Typo-Trunk what is the recommended way to store modifications to core or theme within SVN? Normally one would use SVN:Externals to link in some external libraries, such as vendor/rails, but how are …

---

## [String to date/time?](https://www.ruby-forum.com/t/string-to-date-time/60238)

<div class="topic-metadata">

**Author:** [@isaacrtree](https://www.ruby-forum.com/u/isaacrtree)\
**Replies:** 4\
**Last updated:** [May 11, 2006, 10:29pm UTC](https://www.ruby-forum.com/t/string-to-date-time/60238 "2006-05-11T22:29:03Z")

</div>

Hey All, Anyone know of a library for parsing “human” dates, like “this friday” or “2 days ago”? I used to use strtotime in php, but starting from here; http://wiki.rubyonrails.com/rails/pages/PhpStrtotime and doin…

---

## [Lighttpd file upload issue - sporadic choke?](https://www.ruby-forum.com/t/lighttpd-file-upload-issue-sporadic-choke/48243)

<div class="topic-metadata">

**Author:** [@henryp](https://www.ruby-forum.com/u/henryp)\
**Replies:** 4\
**Last updated:** [December 15, 2005, 11:20am UTC](https://www.ruby-forum.com/t/lighttpd-file-upload-issue-sporadic-choke/48243 "2005-12-15T11:20:19Z")

</div>

This has been driving me crazy: I have a file upload controller/view that finally uploads a file with this code in the controller: File.open("#{filepath}/#{filename}", “wb”) do |f| f.write(@params\[:document\]\[:file\].r…

---

## [Localhost:­3000](https://www.ruby-forum.com/t/localhost-3000/235635)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 5\
**Last updated:** [May 10, 2014, 11:32pm UTC](https://www.ruby-forum.com/t/localhost-3000/235635 "2014-05-10T23:32:54Z")

</div>

My third post here. I’m learning Rails. getting Oops! Google Chrome could not connect to localhost:3000 I reinstalled Ruby and Rails. I create the Rails new ??? then run Rails S or Rails server. still cant get th…

---

## [Different cache time for different locations](https://www.ruby-forum.com/t/different-cache-time-for-different-locations/222529)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 5\
**Last updated:** [September 21, 2012, 3:41pm UTC](https://www.ruby-forum.com/t/different-cache-time-for-different-locations/222529 "2012-09-21T15:41:12Z")

</div>

Hello, All my requests passes in the php location to fastcgi ( location ~ .php$ ) and I would like to have different cache time for different requests. As an example : / -\> cache time for 10 minutes /about -\> cache…

---

## [Problem: jruby -S bundle install - tries to build native extension of yajl-ruby](https://www.ruby-forum.com/t/problem-jruby-s-bundle-install-tries-to-build-native-extension-of-yajl-ruby/218505)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 5\
**Last updated:** [April 3, 2012, 6:10pm UTC](https://www.ruby-forum.com/t/problem-jruby-s-bundle-install-tries-to-build-native-extension-of-yajl-ruby/218505 "2012-04-03T18:10:21Z")

</div>

I am trying to build a rails app I wrote in JRuby. When I run bundle install it errors out on yajl-ruby trying to build it as a native extension. I think it must have some dependency with a different gem. How can I …

---

## [When front proxy meet reverse proxy](https://www.ruby-forum.com/t/when-front-proxy-meet-reverse-proxy/218300)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 5\
**Last updated:** [March 28, 2012, 4:28pm UTC](https://www.ruby-forum.com/t/when-front-proxy-meet-reverse-proxy/218300 "2012-03-28T16:28:36Z")

</div>

Hi: This is a cross post at stackoverflowhttp://stackoverflow.com/questions/9872873/when-front-proxy-meet-reverse-proxy,since I got no answser there,so I post it here. Since I think my question is related to the reve…

---

## [Like writing DSP code? Hate editing makefiles?](https://www.ruby-forum.com/t/like-writing-dsp-code-hate-editing-makefiles/216175)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 5\
**Last updated:** [January 28, 2012, 1:20pm UTC](https://www.ruby-forum.com/t/like-writing-dsp-code-hate-editing-makefiles/216175 "2012-01-28T13:20:18Z")

</div>

Hi everyone, gr\_modtool.py has undergone some heavy revision recently. It’ll now do even more stuff: It’s been changed to the CMake version. The autotools version still exists on the CGRAN SVN server. You can create…

---

## [Disabling basic\_auth with rewrites](https://www.ruby-forum.com/t/disabling-basic-auth-with-rewrites/207155)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 5\
**Last updated:** [May 20, 2011, 10:00am UTC](https://www.ruby-forum.com/t/disabling-basic-auth-with-rewrites/207155 "2011-05-20T10:00:40Z")

</div>

Hi, I would like to generally protect my site but allow one certain path. However, I need rewrites to forward the requested path to a PHP file. Unfortunately the following does not work: location ~ ^/feeds/importer/.…

---

## [TimeZone Select Problemin Rails 3?](https://www.ruby-forum.com/t/timezone-select-problemin-rails-3/205679)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 5\
**Last updated:** [April 19, 2011, 6:37pm UTC](https://www.ruby-forum.com/t/timezone-select-problemin-rails-3/205679 "2011-04-19T18:37:59Z")

</div>

I am running Rails 3.0.3. I am using the below line of code to generate a list of possible time zones. \<%= form.time\_zone\_select :time\_zone, ActiveSupport::TimeZone.us\_zones %\> However, the options at least for the U…

---

## [Mini\_magick stdout](https://www.ruby-forum.com/t/mini-magick-stdout/133782)

<div class="topic-metadata">

**Author:** [@kyleh](https://www.ruby-forum.com/u/kyleh)\
**Replies:** 5\
**Last updated:** [April 4, 2008, 10:56am UTC](https://www.ruby-forum.com/t/mini-magick-stdout/133782 "2008-04-04T10:56:32Z")

</div>

Hello, I’m using mini\_magick to interface imagemagick. My script runs on win32 through rubyw.exe. Unfortunately, everytime mini\_magick performs an operation a command prompt pops up. I’ve already tried specifying $st…

---

## [Scalar and vector streams](https://www.ruby-forum.com/t/scalar-and-vector-streams/85951)

<div class="topic-metadata">

**Author:** [@Vincenzo\_P](https://www.ruby-forum.com/u/Vincenzo_P)\
**Replies:** 5\
**Last updated:** [September 25, 2007, 11:09pm UTC](https://www.ruby-forum.com/t/scalar-and-vector-streams/85951 "2007-09-25T23:09:59Z")

</div>

hello, first of all thanks to everybody in the list for the huge amount of suggestions about hard-disk reading speeds I was provided with a few days ago. :slight\_smile: then another question: which is the wisest way …

---

## [PostgreSQL user-defined type](https://www.ruby-forum.com/t/postgresql-user-defined-type/87654)

<div class="topic-metadata">

**Author:** [@ned.c.amazotz](https://www.ruby-forum.com/u/ned.c.amazotz)\
**Replies:** 5\
**Last updated:** [March 5, 2007, 12:55am UTC](https://www.ruby-forum.com/t/postgresql-user-defined-type/87654 "2007-03-05T00:55:11Z")

</div>

I get the following error: PGError: ERROR: null value in column “person\_id” violates not-null constraint …after I generate a basic scaffold and try to insert a record into a PostgreSQL table that looks like: CREATE …

---

## [Render collection with index](https://www.ruby-forum.com/t/render-collection-with-index/85943)

<div class="topic-metadata">

**Author:** [@starmaerker](https://www.ruby-forum.com/u/starmaerker)\
**Replies:** 5\
**Last updated:** [February 18, 2007, 12:57am UTC](https://www.ruby-forum.com/t/render-collection-with-index/85943 "2007-02-18T00:57:41Z")

</div>

Is there any method for getting the current iteration (for changing row colors) in the category partial? \<%=render(:partial =\> “category”, :collection =\> @categories)%\> thanks, andy – Andrew S.

---

## [Performance comparison: LiteSpeed + Ruby LSAPI vs Ruby FCGI](https://www.ruby-forum.com/t/performance-comparison-litespeed-ruby-lsapi-vs-ruby-fcgi/67179)

<div class="topic-metadata">

**Author:** [@finster](https://www.ruby-forum.com/u/finster)\
**Replies:** 5\
**Last updated:** [September 1, 2006, 11:26am UTC](https://www.ruby-forum.com/t/performance-comparison-litespeed-ruby-lsapi-vs-ruby-fcgi/67179 "2006-09-01T11:26:51Z")

</div>

Hi, I spent some time on benchmarking Ruby LSAPI and Ruby FCGI interface, it might be helpful for people who want to bring the best performance out of Ruby/Rails, if you if you are interested, the result is available …

---

## [H- Undefined Method?](https://www.ruby-forum.com/t/h-undefined-method/99423)

<div class="topic-metadata">

**Author:** [@ben-v](https://www.ruby-forum.com/u/ben-v)\
**Replies:** 5\
**Last updated:** [July 22, 2006, 6:17pm UTC](https://www.ruby-forum.com/t/h-undefined-method/99423 "2006-07-22T18:17:00Z")

</div>

I know you can use the method h() to HTMLEdit varible, but ruby doesn’t seem to think it exists when I did this: @a\_user.firstname = h(params\[:firstname\]) It gave me this error: undefined method \`h’ for #JoinControll…

---

## [Finding an interval in a sorted array?](https://www.ruby-forum.com/t/finding-an-interval-in-a-sorted-array/59717)

<div class="topic-metadata">

**Author:** [@Bil\_K](https://www.ruby-forum.com/u/Bil_K)\
**Replies:** 5\
**Last updated:** [May 10, 2006, 1:20pm UTC](https://www.ruby-forum.com/t/finding-an-interval-in-a-sorted-array/59717 "2006-05-10T13:20:28Z")

</div>

Hello, Surely there is a way to find an interval in a sorted array without resorting to indices? (I’m drawing a blank.) require ‘test/unit’ class Array def interval\_containing( x ) # elegant code goes here end e…

---

## [Ri for stdlib](https://www.ruby-forum.com/t/ri-for-stdlib/93349)

<div class="topic-metadata">

**Author:** [@pool007](https://www.ruby-forum.com/u/pool007)\
**Replies:** 5\
**Last updated:** [March 31, 2006, 9:29pm UTC](https://www.ruby-forum.com/t/ri-for-stdlib/93349 "2006-03-31T21:29:37Z")

</div>

Hi group. I installed stable release of ruby ‘ruby 1.8.4 (2006-03-29) \[i686-linux\]’ in my linux box. But, when I try to run ri on stdlib, say Socket, it says ‘Nothing known about Socket.’ Running ‘ri Resolv’ resulted…

---

## [New Gem for IRCTC (Indian Railway)](https://www.ruby-forum.com/t/new-gem-for-irctc-indian-railway/233632)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 1\
**Last updated:** [December 9, 2016, 1:29pm UTC](https://www.ruby-forum.com/t/new-gem-for-irctc-indian-railway/233632 "2016-12-09T13:29:52Z")

</div>

Hello everyone, Here am releasing new gem called rails-rail-in https://github.com/psaravanan/rails-rail-in to know about Indian Railway information like Train list with code, Stations name, PNR Status, Fare, Seat av…

---

## [Could not parse certificate](https://www.ruby-forum.com/t/could-not-parse-certificate/244067)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 1\
**Last updated:** [March 28, 2016, 3:53pm UTC](https://www.ruby-forum.com/t/could-not-parse-certificate/244067 "2016-03-28T15:53:23Z")

</div>

I am facing below issues when try to initialize X509 certificate . Am I missed something here. Please help store = OpenSSL::X509::Store.new store.add\_cert(OpenSSL::X509::Certificate.new(File.open(’/home/khirod/securit…

---

## [Disposizioni con ripetizione](https://www.ruby-forum.com/t/disposizioni-con-ripetizione/243860)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 1\
**Last updated:** [January 19, 2016, 9:55am UTC](https://www.ruby-forum.com/t/disposizioni-con-ripetizione/243860 "2016-01-19T09:55:15Z")

</div>

Buongiorno, esiste qualche funzione che mi dia tutte le disposizioni con ripetizione di n elementi per k disposizioni? grazie

---

## [Reverse proxy through upstream proxy](https://www.ruby-forum.com/t/reverse-proxy-through-upstream-proxy/230114)

<div class="topic-metadata">

**Author:** [@jason\_sam](https://www.ruby-forum.com/u/jason_sam)\
**Replies:** 1\
**Last updated:** [May 31, 2014, 11:13am UTC](https://www.ruby-forum.com/t/reverse-proxy-through-upstream-proxy/230114 "2014-05-31T11:13:11Z")

</div>

I’m trying to configure nginx as a reverse proxy where the upstream traffic has to go through another proxy (squid in this case) without success. Since nginx does not support (as far as I can tell) passing a proxy fo…

---

## [Help with the following program please](https://www.ruby-forum.com/t/help-with-the-following-program-please/229872)

<div class="topic-metadata">

**Author:** [@wayne\_e](https://www.ruby-forum.com/u/wayne_e)\
**Replies:** 7\
**Last updated:** [February 7, 2013, 6:21pm UTC](https://www.ruby-forum.com/t/help-with-the-following-program-please/229872 "2013-02-07T18:21:25Z")

</div>

Can anyone help me put this program together. It is crucial. If anyone can help me with these it would help me out greatly because I am deeply struggling with these and would love to finish the big program after these…

---

## [\[ruby-trunk - Bug #5768\]\[Assigned\] TestRequire#test race exceptionで競合するケースがまだある](https://www.ruby-forum.com/t/ruby-trunk-bug-5768-assigned-testrequire-test-race-exception/214966)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 7\
**Last updated:** [November 26, 2012, 12:06pm UTC](https://www.ruby-forum.com/t/ruby-trunk-bug-5768-assigned-testrequire-test-race-exception/214966 "2012-11-26T12:06:24Z")

</div>

Issue #5768 has been reported by Yui NARUSE. Bug #5768: TestRequire#test\_race\_exceptionで競合するケースがまだある Author: Yui NARUSE Status: Assigned Priority: Normal Assignee: Nobuyoshi N. Category: Target version: ruby -v…

---

## [What wrong in this nested form?](https://www.ruby-forum.com/t/what-wrong-in-this-nested-form/215607)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 7\
**Last updated:** [January 10, 2012, 5:34pm UTC](https://www.ruby-forum.com/t/what-wrong-in-this-nested-form/215607 "2012-01-10T17:34:26Z")

</div>

I have: class Company \< ActiveRecord::Base has\_many :categorizations has\_many :categories, :through =\> :categorizations has\_many :managements has\_many :managers, :through =\> :managements has\_many :tenders has\_many…

---

## [What about Object#to\_ruby?](https://www.ruby-forum.com/t/what-about-object-to-ruby/208516)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 7\
**Last updated:** [June 21, 2011, 8:10pm UTC](https://www.ruby-forum.com/t/what-about-object-to-ruby/208516 "2011-06-21T20:10:08Z")

</div>

Hi! It’s not the first time that I need a to\_ruby method which would guarantee the following invariant: Kernel.eval(foo.to\_ruby) == foo It actually works when using inspect with most basic objects (Integer, String, …

---

## [Why no \<meta charset="utf-8" /\> in application.html.erb?](https://www.ruby-forum.com/t/why-no-meta-charset-utf-8-in-application-html-erb/192401)

<div class="topic-metadata">

**Author:** [@johnny](https://www.ruby-forum.com/u/johnny)\
**Replies:** 1\
**Last updated:** [July 29, 2010, 4:33pm UTC](https://www.ruby-forum.com/t/why-no-meta-charset-utf-8-in-application-html-erb/192401 "2010-07-29T16:33:44Z")

</div>

I’m reading “Dive into html5” and in http://diveintohtml5.org/semantics.html#encoding , it says every page should contain , otherwise it’s subject to security vulnerabilities (http:// code.google.com/p/doctype/wiki/A…

---

## [scRUBYt! Next Page e fill\_textfield... Un aiutino?](https://www.ruby-forum.com/t/scrubyt-next-page-e-fill-textfield-un-aiutino/187344)

<div class="topic-metadata">

**Author:** [@panthe](https://www.ruby-forum.com/u/panthe)\
**Replies:** 7\
**Last updated:** [April 23, 2010, 11:47am UTC](https://www.ruby-forum.com/t/scrubyt-next-page-e-fill-textfield-un-aiutino/187344 "2010-04-23T11:47:11Z")

</div>

Ciao a tutti, mi sto avvicinando da poco al mondo di Ruby e sto’ provando a fare script di estrapolazione dati. Molto interessante, finora sono riuscito a fare qualcosina. Ad estrarre un elenco da una pagina, raggrup…

---

## [Dynamic Fields (attributes)](https://www.ruby-forum.com/t/dynamic-fields-attributes/173560)

<div class="topic-metadata">

**Author:** [@insect](https://www.ruby-forum.com/u/insect)\
**Replies:** 7\
**Last updated:** [August 14, 2009, 2:52am UTC](https://www.ruby-forum.com/t/dynamic-fields-attributes/173560 "2009-08-14T02:52:02Z")

</div>

Hello! I am looking for a plugin or at least the way how to realize dynamic fields in a model. Why I need: I want to create a product catalog application, each type of product can have different set of fields (e.g. c…

---

## [The question about getaddinfo](https://www.ruby-forum.com/t/the-question-about-getaddinfo/167943)

<div class="topic-metadata">

**Author:** [@zq1956](https://www.ruby-forum.com/u/zq1956)\
**Replies:** 7\
**Last updated:** [May 14, 2009, 2:49pm UTC](https://www.ruby-forum.com/t/the-question-about-getaddinfo/167943 "2009-05-14T14:49:44Z")

</div>

I use getaddinfo to get A machine’s hostname, in B machine,the result is correct. but in A machine,the result is just A machine’s name I use nslookup,the result is also correct. who can tell me why in A machineï¼Œthe…

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

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