# Top

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

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

---

## [Dynamic include](https://www.ruby-forum.com/t/dynamic-include/70671)

<div class="topic-metadata">

**Author:** [@Florian\_ASSSmann](https://www.ruby-forum.com/u/Florian_ASSSmann)\
**Replies:** 5\
**Last updated:** [October 1, 2006, 9:05pm UTC](https://www.ruby-forum.com/t/dynamic-include/70671 "2006-10-01T21:05:30Z")

</div>

Hello, I try to include some modules to a class instance, but I have problems with the scope, here’s what I did: person.roles.each do |role| class \<\< person include role.class.const\_get(‘Functions’) end if role.cla…

---

## [Alert with 3 button](https://www.ruby-forum.com/t/alert-with-3-button/215662)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 8\
**Last updated:** [January 14, 2012, 12:32pm UTC](https://www.ruby-forum.com/t/alert-with-3-button/215662 "2012-01-14T12:32:44Z")

</div>

When you click \[x\] the close button, will show the alert with 3 button like below picture: Show dialog message Do you want to save changes? All details will be lost if you don’t save them. Dont' save | …

---

## [Pregunta sobre libreria](https://www.ruby-forum.com/t/pregunta-sobre-libreria/152726)

<div class="topic-metadata">

**Author:** [@SSWebmasterS\_Yoel\_V](https://www.ruby-forum.com/u/SSWebmasterS_Yoel_V)\
**Replies:** 8\
**Last updated:** [November 6, 2008, 10:38pm UTC](https://www.ruby-forum.com/t/pregunta-sobre-libreria/152726 "2008-11-06T22:38:26Z")

</div>

Saludos compañeros de la lista: Por que me sale esto en mis aplicaciones??? Uso Debian lenny y rails 2.1.0 WARNING: You’re using the Ruby-based MySQL library that ships with Rails. This library is not suited for prod…

---

## [Module Global Hash](https://www.ruby-forum.com/t/module-global-hash/127315)

<div class="topic-metadata">

**Author:** [@lazukars](https://www.ruby-forum.com/u/lazukars)\
**Replies:** 8\
**Last updated:** [January 28, 2008, 2:55pm UTC](https://www.ruby-forum.com/t/module-global-hash/127315 "2008-01-28T14:55:00Z")

</div>

\#!/usr/bin/env ruby module Users class User \< Struct.new(:screenname, :password, :dob, :join\_date, :age) def initialize(sn, pw, dob) self.screenname = sn self.password = pw self.dob = Time.parse(dob) sel…

---

## [DRY naming, or polymorphic join models](https://www.ruby-forum.com/t/dry-naming-or-polymorphic-join-models/85273)

<div class="topic-metadata">

**Author:** [@dean](https://www.ruby-forum.com/u/dean)\
**Replies:** 8\
**Last updated:** [February 19, 2007, 4:53am UTC](https://www.ruby-forum.com/t/dry-naming-or-polymorphic-join-models/85273 "2007-02-19T04:53:44Z")

</div>

I need to DRY up some of my tables. Here is the situation: I have a number of objects that habtm name objects. What I need is some kind of polymorphic join model so each object can relate to the same names table. A…

---

## [Sprintf bug (?)](https://www.ruby-forum.com/t/sprintf-bug/75635)

<div class="topic-metadata">

**Author:** [@splattael](https://www.ruby-forum.com/u/splattael)\
**Replies:** 8\
**Last updated:** [November 14, 2006, 2:19am UTC](https://www.ruby-forum.com/t/sprintf-bug/75635 "2006-11-14T02:19:24Z")

</div>

Hello all, I am wondering if I have just found a bug in (s)printf… According to the PickAxe, table “sprintf flag characters”: ================= snip ================================== 0 (zero) all Pad with zeros,…

---

## [Run-time error when using gsl libraries in a custom block](https://www.ruby-forum.com/t/run-time-error-when-using-gsl-libraries-in-a-custom-block/224014)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 4\
**Last updated:** [October 30, 2012, 12:48pm UTC](https://www.ruby-forum.com/t/run-time-error-when-using-gsl-libraries-in-a-custom-block/224014 "2012-10-30T12:48:31Z")

</div>

All, I have a custom block which uses the GSL libraries to compute the FFT of a sequence. When I run the flow-graph containing my custom block, I get the following error. Traceback (most recent call last): File “/ho…

---

## [Generate user-readable tests from Rspec tests?](https://www.ruby-forum.com/t/generate-user-readable-tests-from-rspec-tests/211713)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 4\
**Last updated:** [September 13, 2011, 12:03pm UTC](https://www.ruby-forum.com/t/generate-user-readable-tests-from-rspec-tests/211713 "2011-09-13T12:03:39Z")

</div>

I have been writing manual tests and dabbled in Cucumber. I like that end users can read the Cucumber tests. Is there a way to generate user-readable tests from Rspec tests or Watir tests? Thank you.

---

## [GNU Radio and GPL licensing issues (again)](https://www.ruby-forum.com/t/gnu-radio-and-gpl-licensing-issues-again/141534)

<div class="topic-metadata">

**Author:** [@mdeering](https://www.ruby-forum.com/u/mdeering)\
**Replies:** 4\
**Last updated:** [June 27, 2008, 12:29am UTC](https://www.ruby-forum.com/t/gnu-radio-and-gpl-licensing-issues-again/141534 "2008-06-27T00:29:36Z")

</div>

This is similar to the original discussion from 2004; see, e.g.: \< discuss-gnuradio (date) msg00086.html \> My dissertation will involve using GNU Radio in some capacity - e.g., through a “compatibility layer” into th…

---

## [Automatically creating associated records with after\_create](https://www.ruby-forum.com/t/automatically-creating-associated-records-with-after-create/65278)

<div class="topic-metadata">

**Author:** [@adambeazley](https://www.ruby-forum.com/u/adambeazley)\
**Replies:** 4\
**Last updated:** [August 18, 2006, 8:13am UTC](https://www.ruby-forum.com/t/automatically-creating-associated-records-with-after-create/65278 "2006-08-18T08:13:34Z")

</div>

Hi all. I am actually using ActiveRecord outside of Rails but I don’t see that it matters for this question. I want to automatically create a registration entry when I add a new user to my application. This works fin…

---

## [Switching database dynamically based on incoming request](https://www.ruby-forum.com/t/switching-database-dynamically-based-on-incoming-request/100752)

<div class="topic-metadata">

**Author:** [@samj](https://www.ruby-forum.com/u/samj)\
**Replies:** 4\
**Last updated:** [August 1, 2006, 8:58pm UTC](https://www.ruby-forum.com/t/switching-database-dynamically-based-on-incoming-request/100752 "2006-08-01T20:58:53Z")

</div>

So I have this idea to reduce code replication in our rails setup. Currently we have our rails app serving two distinct sites, soon to be three. At the moment we check out a separate set of code for each site, and con…

---

## [Login engine:functions in authenticated\_system.rb not workin](https://www.ruby-forum.com/t/login-engine-functions-in-authenticated-system-rb-not-workin/54146)

<div class="topic-metadata">

**Author:** [@rkamthan](https://www.ruby-forum.com/u/rkamthan)\
**Replies:** 4\
**Last updated:** [February 24, 2006, 10:35am UTC](https://www.ruby-forum.com/t/login-engine-functions-in-authenticated-system-rb-not-workin/54146 "2006-02-24T10:35:20Z")

</div>

hi all here, I hav installed the login engine plugin for rails and trying to integrate it with my application.It works fine while i try register a new account but when i tried to verify it through mailed link it says- …

---

## [Project Ideas for a Ruby on Rails Beginners](https://www.ruby-forum.com/t/project-ideas-for-a-ruby-on-rails-beginners/244949)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 2\
**Last updated:** [July 15, 2016, 6:55pm UTC](https://www.ruby-forum.com/t/project-ideas-for-a-ruby-on-rails-beginners/244949 "2016-07-15T18:55:29Z")

</div>

Hi, I’m Jose Lugo, I’m new in the Ruby on Rails and the community. I wonder if anyone Can help me out with Project Ideas to learn Ruby on Rails. Jose

---

## [Htaccess to nginx conversion?](https://www.ruby-forum.com/t/htaccess-to-nginx-conversion/242045)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 2\
**Last updated:** [September 7, 2015, 9:36am UTC](https://www.ruby-forum.com/t/htaccess-to-nginx-conversion/242045 "2015-09-07T09:36:37Z")

</div>

Hello, I am working with a panel in which requires the pages to function properly from the .htaccess file. However, I am no longer using Apache and have decided to do a Centmin Mod LEMP web stack to improve performan…

---

## [Rails: action helper for controller specs](https://www.ruby-forum.com/t/rails-action-helper-for-controller-specs/209417)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 2\
**Last updated:** [July 13, 2011, 7:52pm UTC](https://www.ruby-forum.com/t/rails-action-helper-for-controller-specs/209417 "2011-07-13T19:52:05Z")

</div>

Hey guys, just wrote a helper for controller specs in the rails. Link to the gist action helper for rspec · GitHub - to view with syntax highlight. Helper +action+ allows you to write something like describe “GET i…

---

## [How can I find out the state of capslock?](https://www.ruby-forum.com/t/how-can-i-find-out-the-state-of-capslock/149956)

<div class="topic-metadata">

**Author:** [@rossgoodell](https://www.ruby-forum.com/u/rossgoodell)\
**Replies:** 2\
**Last updated:** [October 1, 2008, 5:18pm UTC](https://www.ruby-forum.com/t/how-can-i-find-out-the-state-of-capslock/149956 "2008-10-01T17:18:07Z")

</div>

Although I can use KeyEvent#shift\_down to find out if the shift key was held down when a key is pressed, I don’t know how to find out if the capslock key is in effect (the capslock key was pressed the capslock LED is …

---

## [Capistrano deploy:stop](https://www.ruby-forum.com/t/capistrano-deploy-stop/147342)

<div class="topic-metadata">

**Author:** [@surge](https://www.ruby-forum.com/u/surge)\
**Replies:** 2\
**Last updated:** [August 31, 2008, 8:37pm UTC](https://www.ruby-forum.com/t/capistrano-deploy-stop/147342 "2008-08-31T20:37:51Z")

</div>

Hello, everybody. After following like 20 sources on how to set up a mongrel cluster, I got most of it working. There are some nagging questions though… In my mongrel\_cluster.yml, I specified the pid name to be mong…

---

## [Deleting empty directories](https://www.ruby-forum.com/t/deleting-empty-directories/113228)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [August 29, 2007, 3:50pm UTC](https://www.ruby-forum.com/t/deleting-empty-directories/113228 "2007-08-29T15:50:45Z")

</div>

Hello, I’m putting together a script to automatically update a repository working copy. The scenario is such that the versioned working copy itself is not being modified, but I am simply rsync’ing changes from an un…

---

## [Addslashes()](https://www.ruby-forum.com/t/addslashes/107718)

<div class="topic-metadata">

**Author:** [@no137b](https://www.ruby-forum.com/u/no137b)\
**Replies:** 2\
**Last updated:** [June 25, 2007, 9:19pm UTC](https://www.ruby-forum.com/t/addslashes/107718 "2007-06-25T21:19:32Z")

</div>

\-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Is there a built-in function in Ruby similar to PHP’s addslashes() function? MySQL keeps breaking… -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (GNU/Linux) iD8D…

---

## [GeoIP blocking behind AWS ELB + proxy protocol](https://www.ruby-forum.com/t/geoip-blocking-behind-aws-elb-proxy-protocol/232820)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 1\
**Last updated:** [October 30, 2014, 12:05am UTC](https://www.ruby-forum.com/t/geoip-blocking-behind-aws-elb-proxy-protocol/232820 "2014-10-30T00:05:34Z")

</div>

Hi - I have nginx servers behind an AWS ELB. Because web sockets are leveraged, the ELB is configured as TCP load balancing with the proxy protocol option set. The true IP address of the client is extracted as variab…

---

## [Rubymine Install Missing Gems](https://www.ruby-forum.com/t/rubymine-install-missing-gems/223574)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 1\
**Last updated:** [October 10, 2012, 9:13am UTC](https://www.ruby-forum.com/t/rubymine-install-missing-gems/223574 "2012-10-10T09:13:56Z")

</div>

Hello All, I am using JRuby in Linux Ubuntu 10.10. In Rubymine IDE, I am getting as “Install Missing Gems” link. After clicking on that link, I am getting this error :- Installing pg (0.14.1) with native extensions …

---

## [Cache purge](https://www.ruby-forum.com/t/cache-purge/179069)

<div class="topic-metadata">

**Author:** [@SSSSSSSSSSSSS\_SS](https://www.ruby-forum.com/u/SSSSSSSSSSSSS_SS)\
**Replies:** 7\
**Last updated:** [November 17, 2009, 10:53am UTC](https://www.ruby-forum.com/t/cache-purge/179069 "2009-11-17T10:53:46Z")

</div>

Hi, I’m investigating cache purge in nginx and currently we have some success with this patch: FRiCKLE Labs / nginx / cache\_purge. The reason I said “some” is the patch works normally but blows out (the message was …

---

## [Problemi con Ruby 1.9.1](https://www.ruby-forum.com/t/problemi-con-ruby-1-9-1/172954)

<div class="topic-metadata">

**Author:** [@sergio](https://www.ruby-forum.com/u/sergio)\
**Replies:** 7\
**Last updated:** [August 24, 2009, 12:50pm UTC](https://www.ruby-forum.com/t/problemi-con-ruby-1-9-1/172954 "2009-08-24T12:50:14Z")

</div>

Ho installato ruby 1.9.1 p0 su windows xp. tutto ok come da verifica sotto indicata: C:\\ruby191\>ruby -v ruby 1.9.1p0 (2009-01-30 revision 21907) \[i386-mswin32\] Ho seguito le istruzioni di questo link per quanto rig…

---

## [Deploy class-files of a RoR-Application in a .war File](https://www.ruby-forum.com/t/deploy-class-files-of-a-ror-application-in-a-war-file/154965)

<div class="topic-metadata">

**Author:** [@cneuhaus](https://www.ruby-forum.com/u/cneuhaus)\
**Replies:** 7\
**Last updated:** [December 10, 2008, 3:10pm UTC](https://www.ruby-forum.com/t/deploy-class-files-of-a-ror-application-in-a-war-file/154965 "2008-12-10T15:10:56Z")

</div>

\-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, I’d like to package a RoR app using warble in such a way that the main part of the application is being precompiled into Java bytecode using jrubyc. What I currently…

---

## [How to change the text in a text\_field\_tag](https://www.ruby-forum.com/t/how-to-change-the-text-in-a-text-field-tag/92146)

<div class="topic-metadata">

**Author:** [@jay](https://www.ruby-forum.com/u/jay)\
**Replies:** 7\
**Last updated:** [April 16, 2007, 10:46pm UTC](https://www.ruby-forum.com/t/how-to-change-the-text-in-a-text-field-tag/92146 "2007-04-16T22:46:38Z")

</div>

This is my first post here. Hope someone can help. I have what I think is a simple problem but I can’t find a solution. I have these two forms: \<% @general\_canned\_text.each do | bit\_of\_text | %\> \<% form\_remote\_tag…

---

## [Looking for suggestions processing and comparing 2 very large files](https://www.ruby-forum.com/t/looking-for-suggestions-processing-and-comparing-2-very-large-files/223895)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 6\
**Last updated:** [October 24, 2012, 10:25am UTC](https://www.ruby-forum.com/t/looking-for-suggestions-processing-and-comparing-2-very-large-files/223895 "2012-10-24T10:25:58Z")

</div>

Team, Every week I get a large file, over 50 millions records with record length 150 chars. These files can actually be over 15GB. I need to take the new file and compare it against the one from the previous week. …

---

## [Ruby Java Proxy scanning entire Map](https://www.ruby-forum.com/t/ruby-java-proxy-scanning-entire-map/210966)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 6\
**Last updated:** [August 25, 2011, 3:30pm UTC](https://www.ruby-forum.com/t/ruby-java-proxy-scanning-entire-map/210966 "2011-08-25T15:30:47Z")

</div>

Hello All, In my project I am exposing a Java Map (a custom java.util.Map instance) to JRuby code. From the Ruby code the map seems to have been proxied by an instance of org.jruby.RubyHash. I’ve noticed that seems …

---

## [IntÃ©gration continue](https://www.ruby-forum.com/t/inta-gration-continue/172277)

<div class="topic-metadata">

**Author:** [@ALAHYANE\_Rachid](https://www.ruby-forum.com/u/ALAHYANE_Rachid)\
**Replies:** 6\
**Last updated:** [July 22, 2009, 5:02pm UTC](https://www.ruby-forum.com/t/inta-gration-continue/172277 "2009-07-22T17:02:19Z")

</div>

Bonjour, Je suis un nouveau dans le monde de Rails, et je suis Ã la recherche d’un serveur d’intÃ©gration pour les applications Rails. J’ai testÃ© Capistrano et Ã§a marche trÃ¨s bien, sauf que les tÃ¢ches (deploy et …

---

## [Fire event when the value of a variable is changed](https://www.ruby-forum.com/t/fire-event-when-the-value-of-a-variable-is-changed/140440)

<div class="topic-metadata">

**Author:** [@addame](https://www.ruby-forum.com/u/addame)\
**Replies:** 6\
**Last updated:** [June 14, 2008, 6:37pm UTC](https://www.ruby-forum.com/t/fire-event-when-the-value-of-a-variable-is-changed/140440 "2008-06-14T18:37:06Z")

</div>

hi ! what is the best way to execute a given method each time the value of a given variable is changed. I have told that if the value of the variable is changed via a sitter, it’s possible to use a method chaining. H…

---

## [Newbie question - how to get current directory into a variab](https://www.ruby-forum.com/t/newbie-question-how-to-get-current-directory-into-a-variab/117337)

<div class="topic-metadata">

**Author:** [@wpvanpaassen](https://www.ruby-forum.com/u/wpvanpaassen)\
**Replies:** 6\
**Last updated:** [October 16, 2007, 2:36am UTC](https://www.ruby-forum.com/t/newbie-question-how-to-get-current-directory-into-a-variab/117337 "2007-10-16T02:36:42Z")

</div>

I’m running Ruby on Ubuntu Linux, and I need to be able to get the current directory that the program is running in into a variable in my program. Is there a simple way to do this? Also, is there a way to change dir…

---

## [RegEx to avoid numbers?](https://www.ruby-forum.com/t/regex-to-avoid-numbers/79447)

<div class="topic-metadata">

**Author:** [@taylorstrait](https://www.ruby-forum.com/u/taylorstrait)\
**Replies:** 6\
**Last updated:** [December 15, 2006, 1:14pm UTC](https://www.ruby-forum.com/t/regex-to-avoid-numbers/79447 "2006-12-15T13:14:34Z")

</div>

Yes I’ve tried it myself and even went to Regular Expression Library with no luck. I suppose my request is too basic. All I want to do is prevent users from adding numbers to a field. Any character (UTF8) is fine, …

---

## [Call SharePoint web services in Ruby](https://www.ruby-forum.com/t/call-sharepoint-web-services-in-ruby/224695)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 3\
**Last updated:** [November 22, 2012, 2:33pm UTC](https://www.ruby-forum.com/t/call-sharepoint-web-services-in-ruby/224695 "2012-11-22T14:33:23Z")

</div>

Hello Team, I am new to to Ruby, but have fare knowledge of SharePoint. I need to call SharePoint web service using Ruby. Please help me if you have implemented similar kind of requirement. Thanks in Advance, Baba.

---

## [Is sendfile\_max\_chunk needed when using aio on FreeBSD 9?](https://www.ruby-forum.com/t/is-sendfile-max-chunk-needed-when-using-aio-on-freebsd-9/216581)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 3\
**Last updated:** [February 8, 2012, 4:34pm UTC](https://www.ruby-forum.com/t/is-sendfile-max-chunk-needed-when-using-aio-on-freebsd-9/216581 "2012-02-08T16:34:41Z")

</div>

Hi all, Following Igor’s advice \[1\], I’m using the following configuration for file handling on FreeBSD 9.0 amd64: sendfile on; aio sendfile; tcp\_nopush on; read\_ahead 256K; My understanding of this setup is that …

---

## [\`require': no such file to load on Windows](https://www.ruby-forum.com/t/require-no-such-file-to-load-on-windows/189375)

<div class="topic-metadata">

**Author:** [@f3tus](https://www.ruby-forum.com/u/f3tus)\
**Replies:** 3\
**Last updated:** [May 30, 2010, 6:39pm UTC](https://www.ruby-forum.com/t/require-no-such-file-to-load-on-windows/189375 "2010-05-30T18:39:33Z")

</div>

Hello, I’m new to Ruby and came across this error when trying to run: spec “C:\\Ruby19\\wwwjdic2db\\spec\\p4\_importer\_spec.rb” The output is as follows: C:\\Ruby19\\bin\>spec “C:\\Ruby19\\project4\\spec\\p4\_importer\_spec.rb” C:…

---

## [Getting the current Action in the Model](https://www.ruby-forum.com/t/getting-the-current-action-in-the-model/51842)

<div class="topic-metadata">

**Author:** [@markh](https://www.ruby-forum.com/u/markh)\
**Replies:** 3\
**Last updated:** [January 8, 2006, 6:20am UTC](https://www.ruby-forum.com/t/getting-the-current-action-in-the-model/51842 "2006-01-08T06:20:59Z")

</div>

Is it possible to get the current Controller’s action from within the Model? I have a situation where I want a piece of validation to run on edits, but not on new creates. Thanks, Mark

---

## [Block without work function won't stop](https://www.ruby-forum.com/t/block-without-work-function-wont-stop/242090)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 5\
**Last updated:** [September 2, 2015, 3:38pm UTC](https://www.ruby-forum.com/t/block-without-work-function-wont-stop/242090 "2015-09-02T15:38:03Z")

</div>

Hi all, I have a block that is used only for acepting messages and writing their content into database. The block is written in python and it has no work function, but only constructor and message handler. However whe…

---

## [A Corresponding between C++ AND Ruby](https://www.ruby-forum.com/t/a-corresponding-between-c-and-ruby/210635)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 5\
**Last updated:** [August 16, 2011, 1:24am UTC](https://www.ruby-forum.com/t/a-corresponding-between-c-and-ruby/210635 "2011-08-16T01:24:55Z")

</div>

Hi I am C++ programmer and in C++ I used some thing that I want corresponding those things in Ruby. please help me. 1 - In C++ , I can write this program but in Ruby I can’t: int i,x; int sum=0; for( x=0 ; x \<= 50…

---

## [Hash form of stub\_chain returning nil for chains with shared first message](https://www.ruby-forum.com/t/hash-form-of-stub-chain-returning-nil-for-chains-with-shared-first-message/203026)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 5\
**Last updated:** [February 13, 2011, 9:39am UTC](https://www.ruby-forum.com/t/hash-form-of-stub-chain-returning-nil-for-chains-with-shared-first-message/203026 "2011-02-13T09:39:58Z")

</div>

I’m new using rspec, so please forgive me if I’m barking up the wrong tree, but… I’d expect this to pass (using rspec 2.5.1) describe ‘stub\_chain’ do it “returns expected value from two chains with hash” do subject …

---

## [ActiveRecord model relationship with YAML file](https://www.ruby-forum.com/t/activerecord-model-relationship-with-yaml-file/189434)

<div class="topic-metadata">

**Author:** [@judge](https://www.ruby-forum.com/u/judge)\
**Replies:** 5\
**Last updated:** [June 1, 2010, 8:34pm UTC](https://www.ruby-forum.com/t/activerecord-model-relationship-with-yaml-file/189434 "2010-06-01T20:34:57Z")

</div>

Hi, I have an ActiveRecord model Group and a YAML table stored in config/users.yaml just like: - {login: titi, password: 123456, group\_id: 2} - {login: toto, password: 987654, group\_id: 7} And I would like to link th…

---

## [Rails 3 MongoMapper et Mongoid](https://www.ruby-forum.com/t/rails-3-mongomapper-et-mongoid/186456)

<div class="topic-metadata">

**Author:** [@did](https://www.ruby-forum.com/u/did)\
**Replies:** 5\
**Last updated:** [April 9, 2010, 1:15pm UTC](https://www.ruby-forum.com/t/rails-3-mongomapper-et-mongoid/186456 "2010-04-09T13:15:52Z")

</div>

Ola la communaute, Je suis en train de migrer une appli utilisant MongoMapper vers Rails 3. Comme je suis un gars dans le vent, je voudrais utiliser Devise pour l’authentification et cie. Sauf que Devise pour Rails 3…

---

## [Calendarios en Rails](https://www.ruby-forum.com/t/calendarios-en-rails/126940)

<div class="topic-metadata">

**Author:** [@moctan](https://www.ruby-forum.com/u/moctan)\
**Replies:** 5\
**Last updated:** [January 28, 2008, 10:31pm UTC](https://www.ruby-forum.com/t/calendarios-en-rails/126940 "2008-01-28T22:31:53Z")

</div>

Hola, Â¿ CuÃ¡l calendario ustedes utilizan en sus aplicaciones ? Agradezco la ayuda. Saludos. Jaime Mora R.

---

## [C extension: can rb\_ivar\_set be used to set class variable?](https://www.ruby-forum.com/t/c-extension-can-rb-ivar-set-be-used-to-set-class-variable/123118)

<div class="topic-metadata">

**Author:** [@lianliming](https://www.ruby-forum.com/u/lianliming)\
**Replies:** 5\
**Last updated:** [December 14, 2007, 4:38pm UTC](https://www.ruby-forum.com/t/c-extension-can-rb-ivar-set-be-used-to-set-class-variable/123118 "2007-12-14T16:38:59Z")

</div>

Hi all, This is a question on Ruby C extension. I have been hacking some existed ruby c extension, and found following code: VALUE klass = rb\_define\_class(name, pClass); rb\_ivar\_set(klass, id\_some\_var, someValue); F…

---

## [Get remaing characters in a string](https://www.ruby-forum.com/t/get-remaing-characters-in-a-string/81300)

<div class="topic-metadata">

**Author:** [@Claus\_G](https://www.ruby-forum.com/u/Claus_G)\
**Replies:** 5\
**Last updated:** [January 7, 2007, 1:29am UTC](https://www.ruby-forum.com/t/get-remaing-characters-in-a-string/81300 "2007-01-07T01:29:37Z")

</div>

Hi. I need to get the last three characters in a string. I couldn’t find a function in the String class so I came up with this: class Remainder attr\_writer :n def initialize(t = “”, n = 0) @t = t.to\_s @n = n.to\_i …

---

## [Dependencies and Edge Rails?](https://www.ruby-forum.com/t/dependencies-and-edge-rails/69002)

<div class="topic-metadata">

**Author:** [@jay-levitt](https://www.ruby-forum.com/u/jay-levitt)\
**Replies:** 5\
**Last updated:** [October 16, 2006, 7:51pm UTC](https://www.ruby-forum.com/t/dependencies-and-edge-rails/69002 "2006-10-16T19:51:30Z")

</div>

There’s an open ticket (http://dev.rails-engines.org/tickets/197) to support the new Dependencies included in Edge Rails. Martin Landers attached a patch, but for reasons I can’t figure out, the patch doesn’t want to…

---

## [Dir.entires and UTF-8](https://www.ruby-forum.com/t/dir-entires-and-utf-8/52292)

<div class="topic-metadata">

**Author:** [@thoepfner](https://www.ruby-forum.com/u/thoepfner)\
**Replies:** 5\
**Last updated:** [January 17, 2006, 2:33pm UTC](https://www.ruby-forum.com/t/dir-entires-and-utf-8/52292 "2006-01-17T14:33:35Z")

</div>

Hi, What’s going on here? Ths is on MacOS X 10.4.4. Looks like Dir#entries returns strings encoded with some encoding I didn’t expect. How can I convert the string to UTF8? $KCODE=‘UTF8’ require ‘jcode’ s=“äöüßÄÖÜ” …

---

## [Nested loop for xpath](https://www.ruby-forum.com/t/nested-loop-for-xpath/227978)

<div class="topic-metadata">

**Author:** [@soujiro0725](https://www.ruby-forum.com/u/soujiro0725)\
**Replies:** 2\
**Last updated:** [April 10, 2013, 9:15am UTC](https://www.ruby-forum.com/t/nested-loop-for-xpath/227978 "2013-04-10T09:15:36Z")

</div>

Rails 1.9.3 I am scraping a web page, using Nokogiri and Xpath I want all the names of the birds listed there. xpath1 = ‘//div\[@id=‘bodyContent’\]/div\[@id=‘mw-content-text’\]/ul\[1\]’ should get a group of birds Great…

---

## [Enable XHTML in Webrick](https://www.ruby-forum.com/t/enable-xhtml-in-webrick/263571)

<div class="topic-metadata">

**Author:** [@NU2rb](https://www.ruby-forum.com/u/NU2rb)\
**Replies:** 1\
**Last updated:** [April 2, 2023, 9:20pm UTC](https://www.ruby-forum.com/t/enable-xhtml-in-webrick/263571 "2023-04-02T21:20:45Z")

</div>

I’m having trouble having WEBrick return XHTML to the browser - the browser renders the identical file with an ‘html’ extension perfectly but won’t render xhtml and its associated CSS stylesheet. I’ve tried two things: …

---

## ["limit\_req\_zone" unknown directive in Nginx](https://www.ruby-forum.com/t/limit-req-zone-unknown-directive-in-nginx/181846)

<div class="topic-metadata">

**Author:** [@partysoft](https://www.ruby-forum.com/u/partysoft)\
**Replies:** 1\
**Last updated:** [January 19, 2010, 9:45am UTC](https://www.ruby-forum.com/t/limit-req-zone-unknown-directive-in-nginx/181846 "2010-01-19T09:45:22Z")

</div>

Hi i have CENT OS and installed nginx from RPM using this guide, all works fine except it doesn’t have some basic modules http://www.cyberciti.biz/faq/rhel-fedora-install-configure-nginx-php5/ i get unknown directiv…

---

## [Filename in file source from GRC and automatic clear reports?](https://www.ruby-forum.com/t/filename-in-file-source-from-grc-and-automatic-clear-reports/242248)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 4\
**Last updated:** [June 9, 2015, 2:06pm UTC](https://www.ruby-forum.com/t/filename-in-file-source-from-grc-and-automatic-clear-reports/242248 "2015-06-09T14:06:59Z")

</div>

It’s not a critical issue. How could I put filename which contains variables? After I define a variable time with a value of 20150609. I want to use a file /my/file/path/sample20150609 as a file source. In file fie…

---

## [Working with bitboards, bit words, binary, not sure?](https://www.ruby-forum.com/t/working-with-bitboards-bit-words-binary-not-sure/217506)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 4\
**Last updated:** [March 5, 2012, 3:38pm UTC](https://www.ruby-forum.com/t/working-with-bitboards-bit-words-binary-not-sure/217506 "2012-03-05T15:38:36Z")

</div>

I am trying to build a chess board interface for the use on the net. I want to use bitboards to do it rather than the traditional way. An example of a bitboard is the following: 00000000 00000000 00000000 00000000 …

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

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