# Ruby

**URL:** https://www.ruby-forum.com/c/ruby/7.md?page=967

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

---

## [Web framework for Ruby 1.9](https://www.ruby-forum.com/t/web-framework-for-ruby-1-9/153333)

<div class="topic-metadata">

**Author:** [@stefanl38](https://www.ruby-forum.com/u/stefanl38)\
**Replies:** 9\
**Last updated:** [November 16, 2008, 9:47pm UTC](https://www.ruby-forum.com/t/web-framework-for-ruby-1-9/153333 "2008-11-16T21:47:30Z")

</div>

I’m looking for a web framework that: really works with Ruby 1.9 pure Ruby code (i.e. doesn’t depend on C-extensions, Java libraries…) has an active community bonus points: doesn’t follow the “let’s exten…

---

## [Erb & action\_view outside rails](https://www.ruby-forum.com/t/erb-action-view-outside-rails/153393)

<div class="topic-metadata">

**Author:** [@drlelon](https://www.ruby-forum.com/u/drlelon)\
**Replies:** 3\
**Last updated:** [November 16, 2008, 9:37pm UTC](https://www.ruby-forum.com/t/erb-action-view-outside-rails/153393 "2008-11-16T21:37:47Z")

</div>

I’m using erb as a templating package to generate html files – not in Rails. Question – is there a way to use the action\_view package to augment the templates? For example – link\_to( “clickable text”, href\_path) is in …

---

## [Gsub and reg expressions](https://www.ruby-forum.com/t/gsub-and-reg-expressions/153409)

<div class="topic-metadata">

**Author:** [@sclarke](https://www.ruby-forum.com/u/sclarke)\
**Replies:** 8\
**Last updated:** [November 16, 2008, 9:29pm UTC](https://www.ruby-forum.com/t/gsub-and-reg-expressions/153409 "2008-11-16T21:29:35Z")

</div>

I am having a few problems getting gsub to work with my regular expressions. I have a field full of data and therefore I am using a regular expression to extract one part of it - #{event.description\[/Logon Type:\\t2/…

---

## [Win32-file 0.6.0](https://www.ruby-forum.com/t/win32-file-0-6-0/153338)

<div class="topic-metadata">

**Author:** [@danielb](https://www.ruby-forum.com/u/danielb)\
**Replies:** 1\
**Last updated:** [November 16, 2008, 5:14pm UTC](https://www.ruby-forum.com/t/win32-file-0-6-0/153338 "2008-11-16T17:14:20Z")

</div>

Hi everyone, The Win32Utils Team is happy to announce release 0.6.0 of win32-file. = What is it? A version of the File class that includes extra and redefined methods for use on MS Windows. = What’s new? For Windo…

---

## [Newbie question - Problem understanding W(p)GTR](https://www.ruby-forum.com/t/newbie-question-problem-understanding-w-p-gtr/153383)

<div class="topic-metadata">

**Author:** [@ziga](https://www.ruby-forum.com/u/ziga)\
**Replies:** 2\
**Last updated:** [November 16, 2008, 3:47pm UTC](https://www.ruby-forum.com/t/newbie-question-problem-understanding-w-p-gtr/153383 "2008-11-16T15:47:22Z")

</div>

In w§gtr I have found myself facing a code which, for the life of me, I just could not understand a few thing in! Seeing as this is the closest board realting to the subject, I shall post my question here - The code I…

---

## [One-Click Ruby Installer project stopped?](https://www.ruby-forum.com/t/one-click-ruby-installer-project-stopped/153274)

<div class="topic-metadata">

**Author:** [@Claus\_Folke\_B](https://www.ruby-forum.com/u/Claus_Folke_B)\
**Replies:** 8\
**Last updated:** [November 16, 2008, 1:17pm UTC](https://www.ruby-forum.com/t/one-click-ruby-installer-project-stopped/153274 "2008-11-16T13:17:49Z")

</div>

Hi, I am wondering if work on the One-Click Ruby Installer for Windows has been stopped? This is taken from the announcement of the OCI 186-27 RC1 two months ago: —oOo— NOTE: Keep in mind this is a Release Candida…

---

## [Dynamically create a hash of a objects variables values](https://www.ruby-forum.com/t/dynamically-create-a-hash-of-a-objects-variables-values/153397)

<div class="topic-metadata">

**Author:** [@scudco](https://www.ruby-forum.com/u/scudco)\
**Replies:** 3\
**Last updated:** [November 16, 2008, 12:45pm UTC](https://www.ruby-forum.com/t/dynamically-create-a-hash-of-a-objects-variables-values/153397 "2008-11-16T12:45:36Z")

</div>

Tried my best to make this title as informative as possible but its ended up a bit cryptic. Say I have a class Record which represents records in a database and a particular object has these instance variables @a = …

---

## [Active Directory access - not just users, but computers too](https://www.ruby-forum.com/t/active-directory-access-not-just-users-but-computers-too/153251)

<div class="topic-metadata">

**Author:** [@trevoke](https://www.ruby-forum.com/u/trevoke)\
**Replies:** 9\
**Last updated:** [November 16, 2008, 12:27pm UTC](https://www.ruby-forum.com/t/active-directory-access-not-just-users-but-computers-too/153251 "2008-11-16T12:27:29Z")

</div>

Most Active Directory access really just goes through LDAP and I don’t know if it’s possible through LDAP – and if it’s possible, how to do it, or who has implemented it in Ruby. I’d like to be able to get a list of c…

---

## [Re: ScriptScope.SetVariable - pass in a function](https://www.ruby-forum.com/t/re-scriptscope-setvariable-pass-in-a-function/153395)

<div class="topic-metadata">

**Author:** [@raker\_t](https://www.ruby-forum.com/u/raker_t)\
**Replies:** 0\
**Last updated:** [November 16, 2008, 6:55am UTC](https://www.ruby-forum.com/t/re-scriptscope-setvariable-pass-in-a-function/153395 "2008-11-16T06:55:17Z")

</div>

Correction: Methods are first-class, they just can’t be invoked from their objects with (). JD

---

## [Error in jruby script](https://www.ruby-forum.com/t/error-in-jruby-script/153261)

<div class="topic-metadata">

**Author:** [@moredip](https://www.ruby-forum.com/u/moredip)\
**Replies:** 2\
**Last updated:** [November 16, 2008, 6:12am UTC](https://www.ruby-forum.com/t/error-in-jruby-script/153261 "2008-11-16T06:12:38Z")

</div>

I am trying to backport some script changes that were needed to get jruby to run in i5/OS AIX runtime (called PASE). The jruby script I started with was from 1.1RC2 and it does work in 1.1.5 except I am getting an er…

---

## [Having problem in printing out correct character](https://www.ruby-forum.com/t/having-problem-in-printing-out-correct-character/153380)

<div class="topic-metadata">

**Author:** [@alex-osu3](https://www.ruby-forum.com/u/alex-osu3)\
**Replies:** 2\
**Last updated:** [November 16, 2008, 6:12am UTC](https://www.ruby-forum.com/t/having-problem-in-printing-out-correct-character/153380 "2008-11-16T06:12:03Z")

</div>

Hi all, I copy some texts from a pdf file and save them in a text file. I extract some info from the text file, write them to a yaml file. Then I use a script to print out the yaml file. It works OK most of the time. …

---

## [Rubygems error](https://www.ruby-forum.com/t/rubygems-error/153331)

<div class="topic-metadata">

**Author:** [@moredip](https://www.ruby-forum.com/u/moredip)\
**Replies:** 1\
**Last updated:** [November 16, 2008, 5:58am UTC](https://www.ruby-forum.com/t/rubygems-error/153331 "2008-11-16T05:58:36Z")

</div>

I am trying to get to the bottom of the following error: jruby script/server /usr/local/jruby-1.1.5/lib/ruby/site\_ruby/1.8/rubygems.rb:723:in set\_paths': undefined methoduid’ for nil:NilClass (NoMethodError) from …

---

## [Ruby equivalent to a Java context Listener](https://www.ruby-forum.com/t/ruby-equivalent-to-a-java-context-listener/153392)

<div class="topic-metadata">

**Author:** [@thiago](https://www.ruby-forum.com/u/thiago)\
**Replies:** 0\
**Last updated:** [November 16, 2008, 5:58am UTC](https://www.ruby-forum.com/t/ruby-equivalent-to-a-java-context-listener/153392 "2008-11-16T05:58:01Z")

</div>

Hi people, Is there any Ruby equivalente to a Java Context Listener? So I can execute some code and gather some data at the start of a Ruby container and keep it on and accessible at any time and from everywhere in my …

---

## [ScriptScope.SetVariable - pass in a function](https://www.ruby-forum.com/t/scriptscope-setvariable-pass-in-a-function/153385)

<div class="topic-metadata">

**Author:** [@bvanderveen](https://www.ruby-forum.com/u/bvanderveen)\
**Replies:** 1\
**Last updated:** [November 16, 2008, 3:11am UTC](https://www.ruby-forum.com/t/scriptscope-setvariable-pass-in-a-function/153385 "2008-11-16T03:11:27Z")

</div>

Hi, I’d like do something like this: public void AddFunction() { aScriptScope.SetVariable(“my\_function”, (Action)MyFunction); } public void MyFunction(string value) { // do stuff! } Currently if I execute a scrip…

---

## [Rake finds & runs task, but doesn't show in --tasks list](https://www.ruby-forum.com/t/rake-finds-runs-task-but-doesnt-show-in-tasks-list/153346)

<div class="topic-metadata">

**Author:** [@Hugh\_JSDevlin](https://www.ruby-forum.com/u/Hugh_JSDevlin)\
**Replies:** 3\
**Last updated:** [November 16, 2008, 1:38am UTC](https://www.ruby-forum.com/t/rake-finds-runs-task-but-doesnt-show-in-tasks-list/153346 "2008-11-16T01:38:26Z")

</div>

hi, rake & ruby-talk newbie, a boy’s 1st rake task, lib/tasks/load.rake: namespace :load do task :hello\_world do |t| puts ‘hello, world!’ end end runs fine: rake load:hello\_world (in … ) hello, world! but it’s a…

---

## [StackOverflowException when accessing object properties](https://www.ruby-forum.com/t/stackoverflowexception-when-accessing-object-properties/153347)

<div class="topic-metadata">

**Author:** [@bvanderveen](https://www.ruby-forum.com/u/bvanderveen)\
**Replies:** 4\
**Last updated:** [November 16, 2008, 1:08am UTC](https://www.ruby-forum.com/t/stackoverflowexception-when-accessing-object-properties/153347 "2008-11-16T01:08:37Z")

</div>

Hello all, Why does the stack overflow? class Program { static void Main(string\[\] args) { ScriptRuntime runtime = Ruby.CreateRuntime(); ScriptEngine engine = runtime.GetRubyEngine(); ScriptScope scope = engin…

---

## [Re: Executables](https://www.ruby-forum.com/t/re-executables/153379)

<div class="topic-metadata">

**Author:** [@raker\_t](https://www.ruby-forum.com/u/raker_t)\
**Replies:** 0\
**Last updated:** [November 16, 2008, 12:07am UTC](https://www.ruby-forum.com/t/re-executables/153379 "2008-11-16T00:07:12Z")

</div>

We’ll have both types of interactive tests eventually.

---

## [Executables](https://www.ruby-forum.com/t/executables/153249)

<div class="topic-metadata">

**Author:** [@grujildo](https://www.ruby-forum.com/u/grujildo)\
**Replies:** 8\
**Last updated:** [November 15, 2008, 11:55pm UTC](https://www.ruby-forum.com/t/executables/153249 "2008-11-15T23:55:29Z")

</div>

Today we have ir.exe that combines functionality of ruby.exe and a command line REPL. Shouldn’t we have also iruby.exe that mimics ruby.exe (ie. if no file is given it reads input from standard input)? Some specs expe…

---

## [Simple Question](https://www.ruby-forum.com/t/simple-question/153370)

<div class="topic-metadata">

**Author:** [@joe-black](https://www.ruby-forum.com/u/joe-black)\
**Replies:** 2\
**Last updated:** [November 15, 2008, 10:19pm UTC](https://www.ruby-forum.com/t/simple-question/153370 "2008-11-15T22:19:27Z")

</div>

I saw the following in a book. def deleted\_roles=(values) roles.find(\*values).each(&:destroy) end I understand that this method finds all the roles with the given ids and calls destroy on all of them. My question is…

---

## [How to force 'const\_missing' in 'YAML.load'?](https://www.ruby-forum.com/t/how-to-force-const-missing-in-yaml-load/153369)

<div class="topic-metadata">

**Author:** [@axyd80](https://www.ruby-forum.com/u/axyd80)\
**Replies:** 0\
**Last updated:** [November 15, 2008, 9:47pm UTC](https://www.ruby-forum.com/t/how-to-force-const-missing-in-yaml-load/153369 "2008-11-15T21:47:41Z")

</div>

Hello! Is there a way to force ‘const\_missing’ exception in ‘YAML.load’ if the Class definition is not found? By default if it can’t find the class definition it just silently instantiates the YAML::Object stub. One…

---

## [Ruby Mendicant Post-Mortem](https://www.ruby-forum.com/t/ruby-mendicant-post-mortem/153317)

<div class="topic-metadata">

**Author:** [@naething](https://www.ruby-forum.com/u/naething)\
**Replies:** 2\
**Last updated:** [November 15, 2008, 9:16pm UTC](https://www.ruby-forum.com/t/ruby-mendicant-post-mortem/153317 "2008-11-15T21:16:48Z")

</div>

Hi folks, I finally did a writeup complete with acknowledgments about the Ruby Mendicant Project, the grass roots effort where 70 individual donors along with Ruby Central, Inc. and MountainWest RubyConf made it pos…

---

## [Rb\_sys\_fail(socket(2)) Ticket #9438](https://www.ruby-forum.com/t/rb-sys-fail-socket-2-ticket-9438/152216)

<div class="topic-metadata">

**Author:** [@shawnfessenden](https://www.ruby-forum.com/u/shawnfessenden)\
**Replies:** 8\
**Last updated:** [November 15, 2008, 6:31pm UTC](https://www.ruby-forum.com/t/rb-sys-fail-socket-2-ticket-9438/152216 "2008-11-15T18:31:34Z")

</div>

Where are we with respect to the (Windows) one click installer & this issue? I don’t have VC++ 8 & so can’t compile. Are there binaries available somewhere? If so can I just plop 'em in \\ruby\\bin? Should I fall back t…

---

## [Overriding methods in a class using a mixin](https://www.ruby-forum.com/t/overriding-methods-in-a-class-using-a-mixin/153327)

<div class="topic-metadata">

**Author:** [@james-calivar](https://www.ruby-forum.com/u/james-calivar)\
**Replies:** 4\
**Last updated:** [November 15, 2008, 6:05pm UTC](https://www.ruby-forum.com/t/overriding-methods-in-a-class-using-a-mixin/153327 "2008-11-15T18:05:09Z")

</div>

Hi list, I just had this idea and thought I’d share it in case someone can improve upon it, make it more robust. Basically, I’ve run into a situation a few times where I want to override methods in a class but retain…

---

## [Ruby Compilation](https://www.ruby-forum.com/t/ruby-compilation/153045)

<div class="topic-metadata">

**Author:** [@rejikumarrv](https://www.ruby-forum.com/u/rejikumarrv)\
**Replies:** 2\
**Last updated:** [November 15, 2008, 5:43pm UTC](https://www.ruby-forum.com/t/ruby-compilation/153045 "2008-11-15T17:43:09Z")

</div>

Hi, I am compiling Ruby on IBM AIX 5.3.0.0. Version of Ruby is 1.8.6. I am compiling ruby in 32 bit mode (OBJECT\_MODE=32). Commands I used are configure --with-gcc --prefix=$INSTALLPATH gmake && gmake install Config…

---

## [Ruby equivalent for Lua first-class functions?](https://www.ruby-forum.com/t/ruby-equivalent-for-lua-first-class-functions/153356)

<div class="topic-metadata">

**Author:** [@Dolazy](https://www.ruby-forum.com/u/Dolazy)\
**Replies:** 1\
**Last updated:** [November 15, 2008, 4:20pm UTC](https://www.ruby-forum.com/t/ruby-equivalent-for-lua-first-class-functions/153356 "2008-11-15T16:20:44Z")

</div>

I think one of Lua’s nice features is that all functions are first- class functions. That makes it possible to override behavior like this: – Sample stolen from Wikipedia local oldprint = print – Store curr…

---

## [Class.new and class keyword not the same?](https://www.ruby-forum.com/t/class-new-and-class-keyword-not-the-same/153306)

<div class="topic-metadata">

**Author:** [@tcsnide](https://www.ruby-forum.com/u/tcsnide)\
**Replies:** 2\
**Last updated:** [November 15, 2008, 4:09pm UTC](https://www.ruby-forum.com/t/class-new-and-class-keyword-not-the-same/153306 "2008-11-15T16:09:36Z")

</div>

Here the normal scenario: class X def self.inherited(s) p “here” end end class Z \< X p “race” end result: “here” “race” But in a test case of mine I need the class to be a variable, but: z = Class.new(X) do …

---

## [International language encoding conversion](https://www.ruby-forum.com/t/international-language-encoding-conversion/153305)

<div class="topic-metadata">

**Author:** [@newbie](https://www.ruby-forum.com/u/newbie)\
**Replies:** 1\
**Last updated:** [November 15, 2008, 2:33pm UTC](https://www.ruby-forum.com/t/international-language-encoding-conversion/153305 "2008-11-15T14:33:36Z")

</div>

Now that Ruby 1.9.1 supports utf-8, it will be great to play with some international languages in Ruby. But I have a question about encoding other than utf-8. As for Chinese, some people still use gb2312 or big5 encod…

---

## [How to call operator as function](https://www.ruby-forum.com/t/how-to-call-operator-as-function/153352)

<div class="topic-metadata">

**Author:** [@Vladimir\_F](https://www.ruby-forum.com/u/Vladimir_F)\
**Replies:** 5\
**Last updated:** [November 15, 2008, 12:24pm UTC](https://www.ruby-forum.com/t/how-to-call-operator-as-function/153352 "2008-11-15T12:24:36Z")

</div>

Hi \*, could you help me please ? I’m trying to write a code where I could have operators’ functions as values of hash and executing them in way like this (formal code): #============================= operators = {…

---

## [Module.nesting for anonymous modules?](https://www.ruby-forum.com/t/module-nesting-for-anonymous-modules/153351)

<div class="topic-metadata">

**Author:** [@james-calivar](https://www.ruby-forum.com/u/james-calivar)\
**Replies:** 0\
**Last updated:** [November 15, 2008, 11:20am UTC](https://www.ruby-forum.com/t/module-nesting-for-anonymous-modules/153351 "2008-11-15T11:20:10Z")

</div>

Hi list, I’m trying to get a reference to the module that a method is defined in, problem being that the module is generated dynamically so is not part of the AST. foo = Module.new do def m Module.nesting end en…

---

## [Ffi and array](https://www.ruby-forum.com/t/ffi-and-array/153349)

<div class="topic-metadata">

**Author:** [@fla](https://www.ruby-forum.com/u/fla)\
**Replies:** 0\
**Last updated:** [November 15, 2008, 10:55am UTC](https://www.ruby-forum.com/t/ffi-and-array/153349 "2008-11-15T10:55:45Z")

</div>

Hello, how can I call this C function: int\*\* add\_arr(int\*\* array1, int\*\* array2, int nrows, int ncols) { int i, j; int\*\* res; res = allocate2D(nrows, ncols); for(i = 0; i \< nrows; i++) { for(j = 0; j \< ncol…

[Previous page](https://www.ruby-forum.com/c/ruby/7.md?page=966)

[Next page](https://www.ruby-forum.com/c/ruby/7.md?page=968)
