# Ruby

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

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

---

## [Format.html {} and block](https://www.ruby-forum.com/t/format-html-and-block/137674)

<div class="topic-metadata">

**Author:** [@sijo](https://www.ruby-forum.com/u/sijo)\
**Replies:** 1\
**Last updated:** [May 15, 2008, 9:13am UTC](https://www.ruby-forum.com/t/format-html-and-block/137674 "2008-05-15T09:13:14Z")

</div>

Hi I have code like format.html {redirect\_to :action =\> ‘define\_sd\_resolution\_ui’,:id =\> params\[:id\], :sd\_resolution\_id=\>params\[:sd\_resolution\_id\]} Here if the format is html then i have to do @sd\_ticket\_resolution.…

---

## [\[ruby1.9\] fork $B$H(B thread](https://www.ruby-forum.com/t/ruby1-9-fork-b-h-b-thread/137580)

<div class="topic-metadata">

**Author:** [@Hidetoshi\_NAGAI](https://www.ruby-forum.com/u/Hidetoshi_NAGAI)\
**Replies:** 6\
**Last updated:** [May 15, 2008, 8:42am UTC](https://www.ruby-forum.com/t/ruby1-9-fork-b-h-b-thread/137580 "2008-05-15T08:42:26Z")

</div>

e$B1J0f!wCNG=!%6e9)Bg$G$9!%e(B native thread e$B$N4X78$H$O;W$$$^$9$,!$e(B Ruby 1.9 e$B$Ge(B fork e$B$7$?e(B thread e$B0J30$Ge(B waitpid e$B$G$-$J$$$N$O!$e(B e$B;EMM$H$7$FHr$1$h$&$,$J$$$3$H$J$N$G$7$g$&$+!)e(B $ ruby…

---

## [Array assignment with multiple args](https://www.ruby-forum.com/t/array-assignment-with-multiple-args/137629)

<div class="topic-metadata">

**Author:** [@jhorner](https://www.ruby-forum.com/u/jhorner)\
**Replies:** 5\
**Last updated:** [May 15, 2008, 7:57am UTC](https://www.ruby-forum.com/t/array-assignment-with-multiple-args/137629 "2008-05-15T07:57:11Z")

</div>

Hi all. I’m just starting to learn Ruby and have hit a problem that is being extremely difficult to find information on. When given a line of code such as: a = “this”, b = “that”, c = “those” Is there a concise and e…

---

## [Removing Array#nitems {}](https://www.ruby-forum.com/t/removing-array-nitems/137460)

<div class="topic-metadata">

**Author:** [@Akinori\_MUSHA](https://www.ruby-forum.com/u/Akinori_MUSHA)\
**Replies:** 7\
**Last updated:** [May 15, 2008, 7:56am UTC](https://www.ruby-forum.com/t/removing-array-nitems/137460 "2008-05-15T07:56:36Z")

</div>

ã€€Array#nitems ã¯nilã§ãªã„è¦ç´ ã‚’æ•°ãˆã‚‹ãƒ¡ã‚½ãƒƒãƒ‰ã§ã™ãŒã€ãƒ–ãƒ­ãƒƒã‚¯ã‚’ ä¸ŽãˆãŸå ´åˆã¯ãƒ–ãƒ­ãƒƒã‚¯è©•ä¾¡å€¤ãŒçœŸã‚’è¿”ã™ã‚‚ã®ã‚’æ•°ãˆã‚‹ã€ã¨ã„ã†ä»•æ§˜ãŒ 1.9ã§è¿½åŠ ã•ã‚Œã¾ã—ãŸã€‚ ã€€…

---

## [Need help for finding difference between files](https://www.ruby-forum.com/t/need-help-for-finding-difference-between-files/137531)

<div class="topic-metadata">

**Author:** [@cheyne](https://www.ruby-forum.com/u/cheyne)\
**Replies:** 8\
**Last updated:** [May 15, 2008, 7:19am UTC](https://www.ruby-forum.com/t/need-help-for-finding-difference-between-files/137531 "2008-05-15T07:19:07Z")

</div>

Hi, there Is there a simple way to find the difference between two files? I’m a new ruby learner. I’m not familiar with the Stander class in Ruby. Is there any can find the difference between two files and return a st…

---

## [Can platform agnosticism be achieved?](https://www.ruby-forum.com/t/can-platform-agnosticism-be-achieved/137649)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 6\
**Last updated:** [May 15, 2008, 4:00am UTC](https://www.ruby-forum.com/t/can-platform-agnosticism-be-achieved/137649 "2008-05-15T04:00:42Z")

</div>

Hello List, I’ve been asking myself this question for quite some time, as Windows user need to break the rules and do things that don’t work out of the box with Ruby. I know Ruby has it’s root in posix and \*nix OS, …

---

## [Override methods from a module](https://www.ruby-forum.com/t/override-methods-from-a-module/117328)

<div class="topic-metadata">

**Author:** [@dfg59](https://www.ruby-forum.com/u/dfg59)\
**Replies:** 7\
**Last updated:** [May 15, 2008, 2:56am UTC](https://www.ruby-forum.com/t/override-methods-from-a-module/117328 "2008-05-15T02:56:15Z")

</div>

All - I’d like to create a module that adds some specific functionality to my setup and teardown methods within a few of my test cases. I’d like to be able to do something to the effect of: module Stuff method\_alias…

---

## [Is IronRuby avoided in .Net 3.5 SP1... No Mention at all](https://www.ruby-forum.com/t/is-ironruby-avoided-in-net-3-5-sp1-no-mention-at-all/137439)

<div class="topic-metadata">

**Author:** [@webreservoir](https://www.ruby-forum.com/u/webreservoir)\
**Replies:** 8\
**Last updated:** [May 15, 2008, 2:08am UTC](https://www.ruby-forum.com/t/is-ironruby-avoided-in-net-3-5-sp1-no-mention-at-all/137439 "2008-05-15T02:08:17Z")

</div>

Hi, I was keen to read the great support for Dynamic languages in the New and Most discussed .Net 3.5 SP1. It was strange to see that there was no discussion at all about Dynamic Languages. It was avoided in such a …

---

## [JRuby Japanese Tour](https://www.ruby-forum.com/t/jruby-japanese-tour/137657)

<div class="topic-metadata">

**Author:** [@headius](https://www.ruby-forum.com/u/headius)\
**Replies:** 0\
**Last updated:** [May 15, 2008, 1:40am UTC](https://www.ruby-forum.com/t/jruby-japanese-tour/137657 "2008-05-15T01:40:12Z")

</div>

FYI, Tom and I are going to Japan in June: If you know about any events we might be able to fit in, let us and our handler Takashi Shitamichi know (removed\_email\_address@domain.invalid). And we’d love to talk to pre…

---

## [Code Review: Various5](https://www.ruby-forum.com/t/code-review-various5/137653)

<div class="topic-metadata">

**Author:** [@grujildo](https://www.ruby-forum.com/u/grujildo)\
**Replies:** 0\
**Last updated:** [May 15, 2008, 12:49am UTC](https://www.ruby-forum.com/t/code-review-various5/137653 "2008-05-15T00:49:16Z")

</div>

tfpt review /shelveset:Various5;REDMOND\\tomat Reviewed F2F by Dino and John. Implements $KCODE global variable. Implements ToString() and ToByteArray() methods on MutableString - they create a copy o…

---

## [Changing hash key](https://www.ruby-forum.com/t/changing-hash-key/137609)

<div class="topic-metadata">

**Author:** [@twaters](https://www.ruby-forum.com/u/twaters)\
**Replies:** 9\
**Last updated:** [May 15, 2008, 12:15am UTC](https://www.ruby-forum.com/t/changing-hash-key/137609 "2008-05-15T00:15:14Z")

</div>

I’ve been looking for a way to change a hash key. In my code I’m trying to change the key from a number to a string. Do I need to convert the key to a string and put it new value in there or is my code wrong? Thanks…

---

## [Rio/CVS tells me: undefined method '\>'](https://www.ruby-forum.com/t/rio-cvs-tells-me-undefined-method/137647)

<div class="topic-metadata">

**Author:** [@olicat](https://www.ruby-forum.com/u/olicat)\
**Replies:** 0\
**Last updated:** [May 15, 2008, 12:10am UTC](https://www.ruby-forum.com/t/rio-cvs-tells-me-undefined-method/137647 "2008-05-15T00:10:31Z")

</div>

Rio with CVS didn’t work as expected on my data, so I tried the examples given at http://rio.rubyforge.org/classes/RIO/Doc/INTRO.html I ran into the same problem. What’s wrong? Does this work for anybody else? | $ ir…

---

## [Array diff](https://www.ruby-forum.com/t/array-diff/137398)

<div class="topic-metadata">

**Author:** [@jimdeuc](https://www.ruby-forum.com/u/jimdeuc)\
**Replies:** 9\
**Last updated:** [May 14, 2008, 11:32pm UTC](https://www.ruby-forum.com/t/array-diff/137398 "2008-05-14T23:32:57Z")

</div>

Hello I am new to ruby and trying to do a diff on two csv files. I am putting each row into an array and then subtracting the arrays into a new array, then taking that array and printing out the records. The problem …

---

## [PDF::Writer and rubygems](https://www.ruby-forum.com/t/pdf-writer-and-rubygems/137623)

<div class="topic-metadata">

**Author:** [@wpwood](https://www.ruby-forum.com/u/wpwood)\
**Replies:** 3\
**Last updated:** [May 14, 2008, 11:03pm UTC](https://www.ruby-forum.com/t/pdf-writer-and-rubygems/137623 "2008-05-14T23:03:58Z")

</div>

Good morning, I am trying to use the pdf-writer ruby gem via NetBeans, but I’m having trouble doing it. If I run the ‘hello.rb’ demo program without updating it to use rubygems, I get the following error: /home/wpwo…

---

## [Eruby stuff with big arrays balloons apache memory use, and usage never gets let go](https://www.ruby-forum.com/t/eruby-stuff-with-big-arrays-balloons-apache-memory-use-and-usage-never-gets-let-go/137630)

<div class="topic-metadata">

**Author:** [@Xeno\_C](https://www.ruby-forum.com/u/Xeno_C)\
**Replies:** 1\
**Last updated:** [May 14, 2008, 10:20pm UTC](https://www.ruby-forum.com/t/eruby-stuff-with-big-arrays-balloons-apache-memory-use-and-usage-never-gets-let-go/137630 "2008-05-14T22:20:09Z")

</div>

Say, I’ve got an analysis application using eruby on an internal site, and it doesn’t need to be perfect, but it is using a lot of memory, and then it never lets it go. It’s got some multi-dimensional arrays of gobs …

---

## [Gem install mysql](https://www.ruby-forum.com/t/gem-install-mysql/137625)

<div class="topic-metadata">

**Author:** [@haris](https://www.ruby-forum.com/u/haris)\
**Replies:** 2\
**Last updated:** [May 14, 2008, 10:01pm UTC](https://www.ruby-forum.com/t/gem-install-mysql/137625 "2008-05-14T22:01:19Z")

</div>

When I try to ‘gem install mysql’ I get the following error: Successfully installed mysql-2.7.3-x86-mswin32 1 gem installed Installing ri documentation for mysql-2.7.3-x86-mswin32… Installing RDoc documentation for …

---

## [Anding statements](https://www.ruby-forum.com/t/anding-statements/137621)

<div class="topic-metadata">

**Author:** [@kyle\_s](https://www.ruby-forum.com/u/kyle_s)\
**Replies:** 11\
**Last updated:** [May 14, 2008, 9:55pm UTC](https://www.ruby-forum.com/t/anding-statements/137621 "2008-05-14T21:55:59Z")

</div>

This is odd, I was trying to use “and” to chain together some statements, which I thought would work, but it ends up, it doesn’t. I tried “and”, and was surprised that it didn’t execute the second half of the statemen…

---

## [Hpricot and regexp?](https://www.ruby-forum.com/t/hpricot-and-regexp/137567)

<div class="topic-metadata">

**Author:** [@pood](https://www.ruby-forum.com/u/pood)\
**Replies:** 4\
**Last updated:** [May 14, 2008, 6:08pm UTC](https://www.ruby-forum.com/t/hpricot-and-regexp/137567 "2008-05-14T18:08:07Z")

</div>

I’m trying to grab the “cache date” off of the google search. using Mechanize (and built in hpricot) agent = WWW::Mechanize.new agent.user\_agent\_alias = ‘Mac Safari’ page = agent.get(“http://www.google.com/”) search…

---

## [String as optional parameter for method?](https://www.ruby-forum.com/t/string-as-optional-parameter-for-method/137611)

<div class="topic-metadata">

**Author:** [@varunkumargoel](https://www.ruby-forum.com/u/varunkumargoel)\
**Replies:** 2\
**Last updated:** [May 14, 2008, 5:53pm UTC](https://www.ruby-forum.com/t/string-as-optional-parameter-for-method/137611 "2008-05-14T17:53:13Z")

</div>

Hi All, I have one method like def hello(int,string) Now i want that if user pass int value or string value then it should search on the basis of one of those. means i want both as optional parameter. Please tell me…

---

## [Fckeditor on ruby on rails](https://www.ruby-forum.com/t/fckeditor-on-ruby-on-rails/124910)

<div class="topic-metadata">

**Author:** [@rabarama](https://www.ruby-forum.com/u/rabarama)\
**Replies:** 5\
**Last updated:** [May 14, 2008, 5:52pm UTC](https://www.ruby-forum.com/t/fckeditor-on-ruby-on-rails/124910 "2008-05-14T17:52:02Z")

</div>

Where can i find a guide to use the fckeditor gem with a ruby on rails application? Thanks

---

## ["\*" in runtime argument](https://www.ruby-forum.com/t/in-runtime-argument/137545)

<div class="topic-metadata">

**Author:** [@Kana](https://www.ruby-forum.com/u/Kana)\
**Replies:** 2\
**Last updated:** [May 14, 2008, 5:47pm UTC](https://www.ruby-forum.com/t/in-runtime-argument/137545 "2008-05-14T17:47:52Z")

</div>

Hi, I’m having trouble passing a simple sql statement(String) to my script through runtime argument ; c:\\work\>jruby test.rb “select \* from sample;” JRuby 1.1.1 will return “select zzz.txt from sample;” as a result of…

---

## [Gecoder syntax question](https://www.ruby-forum.com/t/gecoder-syntax-question/137576)

<div class="topic-metadata">

**Author:** [@Axel\_E](https://www.ruby-forum.com/u/Axel_E)\
**Replies:** 3\
**Last updated:** [May 14, 2008, 4:51pm UTC](https://www.ruby-forum.com/t/gecoder-syntax-question/137576 "2008-05-14T16:51:39Z")

</div>

Dear all, I have an optimization problem. I need to minimize || A(x-y) || while maximizing ||x-y||, where ||.|| is a norm, x,y are vectors with integer non-negative entries and A is a (at that point fixed) matrix wit…

---

## [Re: changes to extname\_spec.rb](https://www.ruby-forum.com/t/re-changes-to-extname-spec-rb/137602)

<div class="topic-metadata">

**Author:** [@ksunair](https://www.ruby-forum.com/u/ksunair)\
**Replies:** 3\
**Last updated:** [May 14, 2008, 4:49pm UTC](https://www.ruby-forum.com/t/re-changes-to-extname-spec-rb/137602 "2008-05-14T16:49:49Z")

</div>

Hi Pete, I was kind of doing what you are saying but manually though. But after seeing the specs, I stopped doing it altogether. I wrote down the test and display the result on the console with puts. Now run the scri…

---

## [Changes to extname\_spec.rb](https://www.ruby-forum.com/t/changes-to-extname-spec-rb/137550)

<div class="topic-metadata">

**Author:** [@ksunair](https://www.ruby-forum.com/u/ksunair)\
**Replies:** 3\
**Last updated:** [May 14, 2008, 4:32pm UTC](https://www.ruby-forum.com/t/changes-to-extname-spec-rb/137550 "2008-05-14T16:32:04Z")

</div>

One more spec change. Could you please review line 8 of this spec, it should read Â Â Â File.extname(".bashrc").should == “.bashrc” instead of Â Â Â File.extname(".bashrc").should == “” Please see the change in th…

---

## [Xslt gem?](https://www.ruby-forum.com/t/xslt-gem/137591)

<div class="topic-metadata">

**Author:** [@aidy](https://www.ruby-forum.com/u/aidy)\
**Replies:** 1\
**Last updated:** [May 14, 2008, 4:17pm UTC](https://www.ruby-forum.com/t/xslt-gem/137591 "2008-05-14T16:17:52Z")

</div>

Hi, I have done a search on RubyForge for an XSLT gem, without success. Is there an XSLT gem I should use? I was originally using Python’s 4XSLT, but I can’t see why I should install Python just for this. Regards Ai…

---

## [How to do the equivalent of PHP's "$\_GET" in Ruby?](https://www.ruby-forum.com/t/how-to-do-the-equivalent-of-phps-get-in-ruby/137596)

<div class="topic-metadata">

**Author:** [@giantpanda77](https://www.ruby-forum.com/u/giantpanda77)\
**Replies:** 5\
**Last updated:** [May 14, 2008, 4:06pm UTC](https://www.ruby-forum.com/t/how-to-do-the-equivalent-of-phps-get-in-ruby/137596 "2008-05-14T16:06:20Z")

</div>

Hello, all … I’m new to Ruby, but so far, I like it quite a lot. I’ve a question, though … I need to do the Ruby equivalent of PHPs “$\_GET” … how do I do this? Regards, John Falling You - exploring the beauty of v…

---

## [Re: changes to extname\_spec.rb](https://www.ruby-forum.com/t/re-changes-to-extname-spec-rb/137600)

<div class="topic-metadata">

**Author:** [@ksunair](https://www.ruby-forum.com/u/ksunair)\
**Replies:** 0\
**Last updated:** [May 14, 2008, 3:40pm UTC](https://www.ruby-forum.com/t/re-changes-to-extname-spec-rb/137600 "2008-05-14T15:40:57Z")

</div>

You are right, when I ran against MRI I got the “”. In my case IÂ always use \_why’s web page to test the results and unfortunatly the result was “.bashrc”, you see I trust \_why :slight\_smile: So if this has to match M…

---

## [Ruby (Rdoc) documentation http://www.ruby-doc.org/core/](https://www.ruby-forum.com/t/ruby-rdoc-documentation-http-www-ruby-doc-org-core/137588)

<div class="topic-metadata">

**Author:** [@ribes](https://www.ruby-forum.com/u/ribes)\
**Replies:** 7\
**Last updated:** [May 14, 2008, 3:25pm UTC](https://www.ruby-forum.com/t/ruby-rdoc-documentation-http-www-ruby-doc-org-core/137588 "2008-05-14T15:25:28Z")

</div>

Team, Is the information found on RDoc Documentation up to date? If so, is there a way to download it so it could be used off-line? Thank you Victor

---

## [Re: Interactive IronRuby "Try Ruby in Your Browser" Shell](https://www.ruby-forum.com/t/re-interactive-ironruby-try-ruby-in-your-browser-shell/137599)

<div class="topic-metadata">

**Author:** [@ksunair](https://www.ruby-forum.com/u/ksunair)\
**Replies:** 0\
**Last updated:** [May 14, 2008, 3:16pm UTC](https://www.ruby-forum.com/t/re-interactive-ironruby-try-ruby-in-your-browser-shell/137599 "2008-05-14T15:16:02Z")

</div>

I am really sorry about that. I will make sure it does not happen. it is just to get the group e-mail id. I better add the email to my contact and start new thread when required. Thanks. ----- Original Message ---- …

---

## [Re: Interactive IronRuby "Try Ruby in Your Browser" Shell](https://www.ruby-forum.com/t/re-interactive-ironruby-try-ruby-in-your-browser-shell/137416)

<div class="topic-metadata">

**Author:** [@ksunair](https://www.ruby-forum.com/u/ksunair)\
**Replies:** 2\
**Last updated:** [May 14, 2008, 3:14pm UTC](https://www.ruby-forum.com/t/re-interactive-ironruby-try-ruby-in-your-browser-shell/137416 "2008-05-14T15:14:50Z")

</div>

Silver light and ironruby, I like that idea… Keep me posted … I would love contribute …2 On May 12, 2008, at 3:35 PM, Oleg T. removed\_email\_address@domain.invalid wrote: Thanks for posting it here. This is just ASP.N…

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

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