# Top

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

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

---

## [String to hash](https://www.ruby-forum.com/t/string-to-hash/155149)

<div class="topic-metadata">

**Author:** [@jc71229](https://www.ruby-forum.com/u/jc71229)\
**Replies:** 5\
**Last updated:** [December 15, 2008, 3:11pm UTC](https://www.ruby-forum.com/t/string-to-hash/155149 "2008-12-15T15:11:12Z")

</div>

Hi All, I am in the need of a method that does the following: get 2 arguments a string and an integer (int\_val). The string has the following form “a.b.c.d” the method should return a nested hash like that: { :a =\> …

---

## [Neither from\_xml nor from\_Json work in rails 2.1](https://www.ruby-forum.com/t/neither-from-xml-nor-from-json-work-in-rails-2-1/154336)

<div class="topic-metadata">

**Author:** [@Tim\_U](https://www.ruby-forum.com/u/Tim_U)\
**Replies:** 5\
**Last updated:** [November 27, 2008, 11:27pm UTC](https://www.ruby-forum.com/t/neither-from-xml-nor-from-json-work-in-rails-2-1/154336 "2008-11-27T23:27:29Z")

</div>

If you have the need to do a lot of XML processing you are better off staying away from rails completely. The State of SOAP on rails is a mess to the point of being practically unusable. The XML and json deserializa…

---

## [Nginx + Glassfish breaks HTTP Headers?](https://www.ruby-forum.com/t/nginx-glassfish-breaks-http-headers/146283)

<div class="topic-metadata">

**Author:** [@sharkie](https://www.ruby-forum.com/u/sharkie)\
**Replies:** 5\
**Last updated:** [August 20, 2008, 11:02pm UTC](https://www.ruby-forum.com/t/nginx-glassfish-breaks-http-headers/146283 "2008-08-20T23:02:12Z")

</div>

I tried the following combinations Nginx + Mongrel (MRI) Nginx + Mongrel (Jruby) Nginx + Glassfish Gem Glassfish Gem Basically for 1), 2) and 3) I use Nginx to service static files and Mongrel/Glassfish to service ra…

---

## [Problemas de rutas en aplicacion en servidor](https://www.ruby-forum.com/t/problemas-de-rutas-en-aplicacion-en-servidor/137560)

<div class="topic-metadata">

**Author:** [@miguel](https://www.ruby-forum.com/u/miguel)\
**Replies:** 5\
**Last updated:** [May 15, 2008, 2:49am UTC](https://www.ruby-forum.com/t/problemas-de-rutas-en-aplicacion-en-servidor/137560 "2008-05-15T02:49:13Z")

</div>

Hola gente, tengo un problema con una aplicacion que estoy subiendo al servidor, tengo un controller /home/blogs, estas son las rutas /home/blogs {:controller=\>“home/blogs”} mi problema es que con algunas acciones q…

---

## [Render doesn't find an html.erb file when called from a xml/atom builder?](https://www.ruby-forum.com/t/render-doesnt-find-an-html-erb-file-when-called-from-a-xml-atom-builder/126413)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 5\
**Last updated:** [January 25, 2008, 1:48am UTC](https://www.ruby-forum.com/t/render-doesnt-find-an-html-erb-file-when-called-from-a-xml-atom-builder/126413 "2008-01-25T01:48:46Z")

</div>

I’m trying to put together an atom feed. In trying to keep things DRY it seemed to make sense to render each item in the feed with the same html partial that we used to render it on our website. Unfortunately render…

---

## [Has\_many :through y belongs\_to](https://www.ruby-forum.com/t/has-many-through-y-belongs-to/123282)

<div class="topic-metadata">

**Author:** [@Pablo\_MartSSS\_nez\_S](https://www.ruby-forum.com/u/Pablo_MartSSS_nez_S)\
**Replies:** 5\
**Last updated:** [December 22, 2007, 11:05pm UTC](https://www.ruby-forum.com/t/has-many-through-y-belongs-to/123282 "2007-12-22T23:05:52Z")

</div>

Escribo porque hay una cosa que no tengo del todo claro, y me gustaríapreguntar sobre ello. Tengo 3 modelos con distintas relaciones tal y como describo a continuación: class City \< ActiveRecord::Base has\_many :peop…

---

## [When to save, session reflect saves?](https://www.ruby-forum.com/t/when-to-save-session-reflect-saves/122136)

<div class="topic-metadata">

**Author:** [@tomn](https://www.ruby-forum.com/u/tomn)\
**Replies:** 5\
**Last updated:** [December 5, 2007, 1:10am UTC](https://www.ruby-forum.com/t/when-to-save-session-reflect-saves/122136 "2007-12-05T01:10:33Z")

</div>

I am trying to clean up unnecessary lines (even as I hack my way forward adding more garbage) I have two questions on lines I have trying to keep the database and session info reflecting changes: def associate\_pupil\_…

---

## [Mongrel startup](https://www.ruby-forum.com/t/mongrel-startup/84762)

<div class="topic-metadata">

**Author:** [@jcontonio](https://www.ruby-forum.com/u/jcontonio)\
**Replies:** 5\
**Last updated:** [September 25, 2007, 11:03pm UTC](https://www.ruby-forum.com/t/mongrel-startup/84762 "2007-09-25T23:03:31Z")

</div>

Hello. I have mongrel working perfectly, other than it doesn’t start when my server reboots (not good). So my setup is this. I have the mongrel\_cluster startup file in /usr/local/etc/rc.d/ and then a directory of sym…

---

## [Ruby access to Win Forms application](https://www.ruby-forum.com/t/ruby-access-to-win-forms-application/113010)

<div class="topic-metadata">

**Author:** [@bigjimmyk3](https://www.ruby-forum.com/u/bigjimmyk3)\
**Replies:** 5\
**Last updated:** [August 26, 2007, 11:29am UTC](https://www.ruby-forum.com/t/ruby-access-to-win-forms-application/113010 "2007-08-26T11:29:39Z")

</div>

I am a QA Engineer implementing a Ruby-based test framework to test the applications in my organization…the issue I have is about 20% of what we do is Windows Forms (.NET) applications…can I use Win32OLE for this, or …

---

## [Question: referencing a variable with a variable](https://www.ruby-forum.com/t/question-referencing-a-variable-with-a-variable/106771)

<div class="topic-metadata">

**Author:** [@knohr](https://www.ruby-forum.com/u/knohr)\
**Replies:** 5\
**Last updated:** [June 30, 2007, 1:52pm UTC](https://www.ruby-forum.com/t/question-referencing-a-variable-with-a-variable/106771 "2007-06-30T13:52:20Z")

</div>

I come from a perl background. I have gotten in the habit of using references to variables instead of specifically calling said variable/ class/whatever. Basically, I am wondering how I would translate the following …

---

## [Cannot connect to mongrel running typo](https://www.ruby-forum.com/t/cannot-connect-to-mongrel-running-typo/70924)

<div class="topic-metadata">

**Author:** [@bradphelan](https://www.ruby-forum.com/u/bradphelan)\
**Replies:** 5\
**Last updated:** [October 5, 2006, 10:17pm UTC](https://www.ruby-forum.com/t/cannot-connect-to-mongrel-running-typo/70924 "2006-10-05T22:17:41Z")

</div>

I just installed Typo 4 on my Ubuntu box. I run typo install foo Starting Typo on port 4821 I then try wget http://127.0.0.1:4821 but no connection is made. Same problem in firefox. No connection. The mongr…

---

## [Plugin & session](https://www.ruby-forum.com/t/plugin-session/68803)

<div class="topic-metadata">

**Author:** [@FrSSSSdSSSSric\_Logi](https://www.ruby-forum.com/u/FrSSSSdSSSSric_Logi)\
**Replies:** 5\
**Last updated:** [September 15, 2006, 5:14pm UTC](https://www.ruby-forum.com/t/plugin-session/68803 "2006-09-15T17:14:48Z")

</div>

Bonjour, je suis en train de dÃ©velopper un plugin, et Ã l’intÃ©rieur de celui-ci j’appele la mÃ©thode session. Le problÃ¨me est que mon plugin n’a pas accÃ¨s Ã la mÃ©thode session. J’ai bien inclue les diffÃ©rent…

---

## [Using Win32OLE library for DAO](https://www.ruby-forum.com/t/using-win32ole-library-for-dao/100853)

<div class="topic-metadata">

**Author:** [@Jatinder\_S](https://www.ruby-forum.com/u/Jatinder_S)\
**Replies:** 5\
**Last updated:** [August 3, 2006, 12:52pm UTC](https://www.ruby-forum.com/t/using-win32ole-library-for-dao/100853 "2006-08-03T12:52:34Z")

</div>

I am trying to do something like following to connect to a MS Access db from ruby db = WIN32OLE.new(“DAO.Database”) but it gives me an error “accessQuery.rb:17:in initialize': unknown OLE server:DAO.Database’ (WIN32…

---

## [Encrypting source / application licensing](https://www.ruby-forum.com/t/encrypting-source-application-licensing/55456)

<div class="topic-metadata">

**Author:** [@janovetz](https://www.ruby-forum.com/u/janovetz)\
**Replies:** 5\
**Last updated:** [March 21, 2006, 6:53pm UTC](https://www.ruby-forum.com/t/encrypting-source-application-licensing/55456 "2006-03-21T18:53:36Z")

</div>

Hey folks- If I wanted to distribute my code to users that would run the code on their own machine, how could I go about encrypting the source to run on a user’s machine? PHP has the Zend Encoder among others, I beli…

---

## [Multiple Apps running under Lighttpd with scgi on a Windows](https://www.ruby-forum.com/t/multiple-apps-running-under-lighttpd-with-scgi-on-a-windows/97878)

<div class="topic-metadata">

**Author:** [@ericgoodwin](https://www.ruby-forum.com/u/ericgoodwin)\
**Replies:** 5\
**Last updated:** [January 27, 2006, 7:46pm UTC](https://www.ruby-forum.com/t/multiple-apps-running-under-lighttpd-with-scgi-on-a-windows/97878 "2006-01-27T19:46:35Z")

</div>

I’ve run into a problem on one of my development machines. I’m trying to run multiple rails apps on one dev machine that runs Windows. Problem is that is seems that I can only run one scgi\_service at a time, meaning t…

---

## [\[GAMEDEV\] Ruby game development](https://www.ruby-forum.com/t/gamedev-ruby-game-development/243496)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 1\
**Last updated:** [November 19, 2015, 10:51am UTC](https://www.ruby-forum.com/t/gamedev-ruby-game-development/243496 "2015-11-19T10:51:06Z")

</div>

Hello! This is my first post. I have a few questions about game development in ruby. What should I use, ruby game or ruby gosu? What gems are the best for gui making? Is it possible to make shoes (gem shoes) gui for …

---

## [Alias or rewrite to get Horde rpc.php to work](https://www.ruby-forum.com/t/alias-or-rewrite-to-get-horde-rpc-php-to-work/230415)

<div class="topic-metadata">

**Author:** [@jason\_sam](https://www.ruby-forum.com/u/jason_sam)\
**Replies:** 1\
**Last updated:** [June 25, 2014, 10:10am UTC](https://www.ruby-forum.com/t/alias-or-rewrite-to-get-horde-rpc-php-to-work/230415 "2014-06-25T10:10:22Z")

</div>

Hello all, I’m trying to setup a nginx server on a RaspberryPi to host a Horde Groupware. The Webinterface is working so far. But I have problems setting up the Microsoft-Server-ActiveSync URL to sync my Smartphone a…

---

## [Jconsole mbeans connection](https://www.ruby-forum.com/t/jconsole-mbeans-connection/230260)

<div class="topic-metadata">

**Author:** [@jason\_sam](https://www.ruby-forum.com/u/jason_sam)\
**Replies:** 1\
**Last updated:** [June 6, 2014, 9:21pm UTC](https://www.ruby-forum.com/t/jconsole-mbeans-connection/230260 "2014-06-06T21:21:49Z")

</div>

Hello I am trying to use jruby to connect to the jconsole’s Mbeans to get counter values in the output. I installed jmx4r gems for that purpose. so this is what I am doing: as follows "- jirb (takes me to the jruby…

---

## [Fastcgi-cache and expires](https://www.ruby-forum.com/t/fastcgi-cache-and-expires/227836)

<div class="topic-metadata">

**Author:** [@Ian\_MSEvans](https://www.ruby-forum.com/u/Ian_MSEvans)\
**Replies:** 1\
**Last updated:** [March 30, 2013, 12:00pm UTC](https://www.ruby-forum.com/t/fastcgi-cache-and-expires/227836 "2013-03-30T12:00:09Z")

</div>

Just curious… In a lot of examples I’ve seen on the net for setting up fastcgi-cache the directives fastcgi\_ignore\_headers Cache-Control Expires; expires epoch; are included. Is there any major reason for that? For…

---

## [Noob (mock/stub) ActiveMerchant](https://www.ruby-forum.com/t/noob-mock-stub-activemerchant/213370)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 1\
**Last updated:** [October 31, 2011, 8:02pm UTC](https://www.ruby-forum.com/t/noob-mock-stub-activemerchant/213370 "2011-10-31T20:02:38Z")

</div>

Hi Group I’m still waiting for the light to come on with stubbing/mocking and the syntax for each. I have simple method in my Order class like so… def credit\_card ActiveMerchant::Billing::CreditCard.new( :type …

---

## [Please help:Can't initialize a new Rails application within the directory of another](https://www.ruby-forum.com/t/please-help-cant-initialize-a-new-rails-application-within-the-directory-of-another/205910)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 1\
**Last updated:** [April 18, 2011, 7:16pm UTC](https://www.ruby-forum.com/t/please-help-cant-initialize-a-new-rails-application-within-the-directory-of-another/205910 "2011-04-18T19:16:46Z")

</div>

I have just install Netbeans 7.0. then install the plugins. But when I create a rails project I get the following errors: Can’t initialize a new Rails application within the directory of another, please change to a n…

---

## [Uninitialized constant ActiveSupport::Dependencies::Mutex (NameError)](https://www.ruby-forum.com/t/uninitialized-constant-activesupport-mutex-nameerror/204115)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 1\
**Last updated:** [March 5, 2011, 11:57am UTC](https://www.ruby-forum.com/t/uninitialized-constant-activesupport-mutex-nameerror/204115 "2011-03-05T11:57:43Z")

</div>

Hi all i have installed rails 2.3.8 in my machine. after the installation when i create a new project it gives the error “uninitialized constant ActiveSupport::Dependencies::Mutex (NameError)”. can any one please hel…

---

## [Remove\_const does not play nice with require](https://www.ruby-forum.com/t/remove-const-does-not-play-nice-with-require/188493)

<div class="topic-metadata">

**Author:** [@dorelal](https://www.ruby-forum.com/u/dorelal)\
**Replies:** 1\
**Last updated:** [May 12, 2010, 10:35pm UTC](https://www.ruby-forum.com/t/remove-const-does-not-play-nice-with-require/188493 "2010-05-12T22:35:52Z")

</div>

$ ruby -v ruby 1.8.7 (2009-06-12 patchlevel 174) \[i686-darwin10.2.0\] Step 1 irb(main):002:0\> require ‘ostruct’ =\> true Step 2 irb(main):005:0\* Object.send(:remove\_const, :OpenStruct) =\> OpenStruct Step 3 ensure tha…

---

## [Wrong number of arguments (1 for 0)](https://www.ruby-forum.com/t/wrong-number-of-arguments-1-for-0/169485)

<div class="topic-metadata">

**Author:** [@springbok](https://www.ruby-forum.com/u/springbok)\
**Replies:** 1\
**Last updated:** [June 4, 2009, 12:26pm UTC](https://www.ruby-forum.com/t/wrong-number-of-arguments-1-for-0/169485 "2009-06-04T12:26:20Z")

</div>

Hi, I hope someone can help me because this is driving me crazy, I’ve spent hours trying to track this down. I’m trying to convert a Rails 1.1 to Rails 2.3.2 and I’m getting the following error when trying to save a …

---

## [Assert\_select with count 0](https://www.ruby-forum.com/t/assert-select-with-count-0/159273)

<div class="topic-metadata">

**Author:** [@aawilson](https://www.ruby-forum.com/u/aawilson)\
**Replies:** 1\
**Last updated:** [February 3, 2009, 5:13pm UTC](https://www.ruby-forum.com/t/assert-select-with-count-0/159273 "2009-02-03T17:13:21Z")

</div>

Hello, all. This is short and simple. I have this statement in a functional test: assert\_select ‘input’ do assert\_select “\[name=?\]”, {:count =\> 0,:text =\>/areas\[1\]/} end This assertion gives me the following: Fa…

---

## [What is the difference between render partial and component?](https://www.ruby-forum.com/t/what-is-the-difference-between-render-partial-and-component/55439)

<div class="topic-metadata">

**Author:** [@guest](https://www.ruby-forum.com/u/guest)\
**Replies:** 1\
**Last updated:** [March 21, 2006, 8:40am UTC](https://www.ruby-forum.com/t/what-is-the-difference-between-render-partial-and-component/55439 "2006-03-21T08:40:36Z")

</div>

What is the difference between the render(:partial =\> ‘article’) and render\_component?

---

## [Problem with undefined symbol in new block created by gr\_modtool in 3.7.2](https://www.ruby-forum.com/t/problem-with-undefined-symbol-in-new-block-created-by-gr-modtool-in-3-7-2/239587)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 6\
**Last updated:** [March 6, 2014, 10:56am UTC](https://www.ruby-forum.com/t/problem-with-undefined-symbol-in-new-block-created-by-gr-modtool-in-3-7-2/239587 "2014-03-06T10:56:54Z")

</div>

Hello all, I am dealing with the problem of undefined symbol when trying to execute a python script for testing my new custom block created in GNU Radio 3.7.2. I used gr\_modtool for creating the new block and also f…

---

## [Playback](https://www.ruby-forum.com/t/playback/238239)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 6\
**Last updated:** [January 2, 2014, 2:44am UTC](https://www.ruby-forum.com/t/playback/238239 "2014-01-02T02:44:00Z")

</div>

Is there a way to slow the playback of a data file through an FFT Sink? If I recorded at 50M and I set my FFT rate to 25M, would that result in playback twice as long? Thanks.

---

## [Location matching](https://www.ruby-forum.com/t/location-matching/228907)

<div class="topic-metadata">

**Author:** [@interactivenyc](https://www.ruby-forum.com/u/interactivenyc)\
**Replies:** 6\
**Last updated:** [May 13, 2013, 1:07pm UTC](https://www.ruby-forum.com/t/location-matching/228907 "2013-05-13T13:07:58Z")

</div>

I’ve just had to move subversion onto a server that’s already serving network wordpress via nginx. Most things work via /svn in a subversion client but I can’t for the life of me figure out how to stop /svn.\*.php hitt…

---

## [Rdoc cannot find ruby files](https://www.ruby-forum.com/t/rdoc-cannot-find-ruby-files/226772)

<div class="topic-metadata">

**Author:** [@hakben](https://www.ruby-forum.com/u/hakben)\
**Replies:** 6\
**Last updated:** [February 23, 2013, 11:29am UTC](https://www.ruby-forum.com/t/rdoc-cannot-find-ruby-files/226772 "2013-02-23T11:29:51Z")

</div>

I am new to ruby and I am going through Peter C.’s book (Novice to Professional). I am stuck on a chapter that deals with “Generating Documentation with RDoc”. I am using Ruby 1.9.3 on Mac OS with Eclipse. I am tryin…

---

## [Calculation of heights](https://www.ruby-forum.com/t/calculation-of-heights/223448)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 6\
**Last updated:** [October 6, 2012, 11:20am UTC](https://www.ruby-forum.com/t/calculation-of-heights/223448 "2012-10-06T11:20:58Z")

</div>

Hi All The question I have is how to load a hash where the key is not numeric or does not follow a cycle. I’m doing an exercise where I have to go asking people’s names and their corresponding heights, these the incom…

---

## [Ereditarietà](https://www.ruby-forum.com/t/ereditarieta/218002)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 6\
**Last updated:** [March 18, 2012, 8:41pm UTC](https://www.ruby-forum.com/t/ereditarieta/218002 "2012-03-18T20:41:35Z")

</div>

Ciao a tutti, ho un problema di ereditarietà. Utilizzando questo codice #Class and Object class Album def initialize(artist=“unknown”,title\_album=“unknown”) @artist=artist @title\_album=title\_album end def to\_s “A…

---

## [Has\_many through saving more than one field](https://www.ruby-forum.com/t/has-many-through-saving-more-than-one-field/212735)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 6\
**Last updated:** [October 15, 2011, 1:21am UTC](https://www.ruby-forum.com/t/has-many-through-saving-more-than-one-field/212735 "2011-10-15T01:21:31Z")

</div>

Please how can I save more than one field ? I have Product has many colors by quantity. This works #controller: products action: new file:\_form.erb \<% for color in Color.all %\> \<%= check\_box\_tag “product\[color\_…

---

## [Block access to every file in the site but index.htm](https://www.ruby-forum.com/t/block-access-to-every-file-in-the-site-but-index-htm/203342)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 6\
**Last updated:** [February 18, 2011, 12:41pm UTC](https://www.ruby-forum.com/t/block-access-to-every-file-in-the-site-but-index-htm/203342 "2011-02-18T12:41:07Z")

</div>

I have a site with just one file: index.htm witch have some ajax linked to php files. I’d like to make thouse php files only accessable via ajax (post and get) coming from this index file and block access to all files …

---

## [Formatting directory listings](https://www.ruby-forum.com/t/formatting-directory-listings/193075)

<div class="topic-metadata">

**Author:** [@simonh](https://www.ruby-forum.com/u/simonh)\
**Replies:** 6\
**Last updated:** [August 12, 2010, 9:20pm UTC](https://www.ruby-forum.com/t/formatting-directory-listings/193075 "2010-08-12T21:20:47Z")

</div>

Hi. Given an (imaginary) directory structure like so: Movies/ film1/film1.avi film2/film2.avi film3/film3.avi etc. I’d like to get a directory listing like so: Movies film1 film2 film3 etc. I don’t want anyone…

---

## [Is there anything else I can use besides rails?](https://www.ruby-forum.com/t/is-there-anything-else-i-can-use-besides-rails/192897)

<div class="topic-metadata">

**Author:** [@merc](https://www.ruby-forum.com/u/merc)\
**Replies:** 6\
**Last updated:** [August 8, 2010, 4:26pm UTC](https://www.ruby-forum.com/t/is-there-anything-else-i-can-use-besides-rails/192897 "2010-08-08T16:26:26Z")

</div>

Can ruby be on anything else besides rails?

---

## [Multi-cpu and ruby Threading](https://www.ruby-forum.com/t/multi-cpu-and-ruby-threading/190865)

<div class="topic-metadata">

**Author:** [@raubarede](https://www.ruby-forum.com/u/raubarede)\
**Replies:** 6\
**Last updated:** [June 30, 2010, 7:58pm UTC](https://www.ruby-forum.com/t/multi-cpu-and-ruby-threading/190865 "2010-06-30T19:58:57Z")

</div>

Hello, We receive a new PC based on I Core 7 on Windows 7. So i try to compare the use processors resources of each Ruby interpretor (JRuby,IronRuby,Ruby 1.9.1 ). I do the same (stupid) treatment by 1 to 8 threads, a…

---

## [File.basename bug?](https://www.ruby-forum.com/t/file-basename-bug/167694)

<div class="topic-metadata">

**Author:** [@lycanthrope](https://www.ruby-forum.com/u/lycanthrope)\
**Replies:** 6\
**Last updated:** [May 11, 2009, 10:35pm UTC](https://www.ruby-forum.com/t/file-basename-bug/167694 "2009-05-11T22:35:39Z")

</div>

How often do people get bitten by this? When operating on a file in the current directory, ‘./’ must be prepended to a filename for File.basename to work… or is this unexpected behavior? $ cat bug.rb DATAFORMAT\_VERS…

---

## [Is unit testing really that necessary?](https://www.ruby-forum.com/t/is-unit-testing-really-that-necessary/165868)

<div class="topic-metadata">

**Author:** [@adistarmid](https://www.ruby-forum.com/u/adistarmid)\
**Replies:** 6\
**Last updated:** [April 20, 2009, 7:05am UTC](https://www.ruby-forum.com/t/is-unit-testing-really-that-necessary/165868 "2009-04-20T07:05:25Z")

</div>

I watched the Railscasts video about Cucumber and BDD testing and he mentions to also do unit testing. I figure if the application functions how I want it by passing the functional tests through Cucumber’s BDD testing…

---

## [How best to share code between apps?](https://www.ruby-forum.com/t/how-best-to-share-code-between-apps/160409)

<div class="topic-metadata">

**Author:** [@snowbird122](https://www.ruby-forum.com/u/snowbird122)\
**Replies:** 6\
**Last updated:** [February 16, 2009, 12:31pm UTC](https://www.ruby-forum.com/t/how-best-to-share-code-between-apps/160409 "2009-02-16T12:31:34Z")

</div>

I come from a PHP environment where we have a “library” of sorts that contains various functionality in the form of object-oriented classes. The classes can be tied into any new project and the functionality of that …

---

## [Data stream variables](https://www.ruby-forum.com/t/data-stream-variables/157510)

<div class="topic-metadata">

**Author:** [@helpy](https://www.ruby-forum.com/u/helpy)\
**Replies:** 6\
**Last updated:** [January 12, 2009, 8:45pm UTC](https://www.ruby-forum.com/t/data-stream-variables/157510 "2009-01-12T20:45:54Z")

</div>

Hi I want to print all lines wihtch contains the string “Open” from a bunch of ‘xml’ files. Additionally I want to print the filename and the line number of the match. The problem with the following snippet is, that …

---

## [Sqlite3 installation problem](https://www.ruby-forum.com/t/sqlite3-installation-problem/143257)

<div class="topic-metadata">

**Author:** [@robertjames](https://www.ruby-forum.com/u/robertjames)\
**Replies:** 6\
**Last updated:** [August 11, 2008, 8:28pm UTC](https://www.ruby-forum.com/t/sqlite3-installation-problem/143257 "2008-08-11T20:28:38Z")

</div>

After installing sqlite3 using command line I face this problem in application environment; RuntimeError in Rails/infoController#properties unknown error RAILS\_ROOT: C:/Users/User/project\_home Application Trace | Fr…

---

## [Installing copy/move in 0.6.4](https://www.ruby-forum.com/t/installing-copy-move-in-0-6-4/125086)

<div class="topic-metadata">

**Author:** [@gblakeman](https://www.ruby-forum.com/u/gblakeman)\
**Replies:** 6\
**Last updated:** [January 7, 2008, 4:27am UTC](https://www.ruby-forum.com/t/installing-copy-move-in-0-6-4/125086 "2008-01-07T04:27:56Z")

</div>

Hi, I’m trying to get the copy/move extension installed in 0.6.4, but when I try to run the rake, it aborts and says: rake aborted! The Shards extension is required and must be loaded first! The weird thing though i…

---

## [A little advice on writing a logWriter](https://www.ruby-forum.com/t/a-little-advice-on-writing-a-logwriter/88923)

<div class="topic-metadata">

**Author:** [@alexander\_j](https://www.ruby-forum.com/u/alexander_j)\
**Replies:** 6\
**Last updated:** [September 25, 2007, 11:05pm UTC](https://www.ruby-forum.com/t/a-little-advice-on-writing-a-logwriter/88923 "2007-09-25T23:05:44Z")

</div>

Hello everyone, I’m new to Ruby and not so experienced programmer in overall but i manage to do “ok”. Now I started to program a bit in Ruby and wanted to write a logWriter program but the problem is that Ruby doesnt …

---

## [Alternate Stylesheets For Radiant CMS](https://www.ruby-forum.com/t/alternate-stylesheets-for-radiant-cms/112290)

<div class="topic-metadata">

**Author:** [@glenatron](https://www.ruby-forum.com/u/glenatron)\
**Replies:** 6\
**Last updated:** [August 17, 2007, 3:47am UTC](https://www.ruby-forum.com/t/alternate-stylesheets-for-radiant-cms/112290 "2007-08-17T03:47:44Z")

</div>

I made an alternate stylesheet in the Layout section, made the page that will use this stylesheet. Assigned it’s Layout as Stylesheet02, Page Type: normal however when I load the page, all I see is the unformatted st…

---

## [Calling dynamic method from symbol or string](https://www.ruby-forum.com/t/calling-dynamic-method-from-symbol-or-string/86849)

<div class="topic-metadata">

**Author:** [@bigdaddy71](https://www.ruby-forum.com/u/bigdaddy71)\
**Replies:** 6\
**Last updated:** [February 26, 2007, 8:21pm UTC](https://www.ruby-forum.com/t/calling-dynamic-method-from-symbol-or-string/86849 "2007-02-26T20:21:49Z")

</div>

i have several dynamic methods such as: def assign! def close! being added to my models via a plugin. my question is how might i call these methods if the method name is passed as a symbol or string parameter to an…

---

## [RE: Date transform](https://www.ruby-forum.com/t/re-date-transform/94877)

<div class="topic-metadata">

**Author:** [@BergerS\_Daniel](https://www.ruby-forum.com/u/BergerS_Daniel)\
**Replies:** 6\
**Last updated:** [May 18, 2006, 1:17am UTC](https://www.ruby-forum.com/t/re-date-transform/94877 "2006-05-18T01:17:30Z")

</div>

i want my users to enter a date in “ddmmyyyy” format, do someone know how may i transform it in “yyyy-mm-dd” in the controler before i add it to the base please? See Time#strftime. Regards, Dan This communicatio…

---

## [Disk Free Space](https://www.ruby-forum.com/t/disk-free-space/96344)

<div class="topic-metadata">

**Author:** [@micktaiwan](https://www.ruby-forum.com/u/micktaiwan)\
**Replies:** 6\
**Last updated:** [January 28, 2006, 12:55pm UTC](https://www.ruby-forum.com/t/disk-free-space/96344 "2006-01-28T12:55:25Z")

</div>

Hi, Is a way to know free disk space left other that using Win32 API or a system call on linux ? Mickael.

---

## [RE: Re: Re: Auto refreshing a page based on select change](https://www.ruby-forum.com/t/re-re-re-auto-refreshing-a-page-based-on-select-change/51951)

<div class="topic-metadata">

**Author:** [@BergerS\_Daniel](https://www.ruby-forum.com/u/BergerS_Daniel)\
**Replies:** 6\
**Last updated:** [January 11, 2006, 9:48pm UTC](https://www.ruby-forum.com/t/re-re-re-auto-refreshing-a-page-based-on-select-change/51951 "2006-01-11T21:48:06Z")

</div>

HTML onChange - HTML Code Tutorial Thanks Kevin, but I’m still confused as to how this should look on the Ruby/Rails side of the house, i.e within the .rhtml file. Can you please provide an example? Thanks, Dan

---

## ["Basic" problem with Threads (?)](https://www.ruby-forum.com/t/basic-problem-with-threads/48523)

<div class="topic-metadata">

**Author:** [@cosmocracy](https://www.ruby-forum.com/u/cosmocracy)\
**Replies:** 6\
**Last updated:** [November 22, 2005, 5:26pm UTC](https://www.ruby-forum.com/t/basic-problem-with-threads/48523 "2005-11-22T17:26:27Z")

</div>

I just upraded to Ruby 1.8.3 (from sources) on my Redhat Linux box. When I attempt to do anything that starts a new thread, I receive the message “ThreadError: uninitialized thread - check \`Thread#initialize’”. Below…

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

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