# Ruby

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

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

---

## [Gsub and single quote issue](https://www.ruby-forum.com/t/gsub-and-single-quote-issue/163786)

<div class="topic-metadata">

**Author:** [@dorelal](https://www.ruby-forum.com/u/dorelal)\
**Replies:** 3\
**Last updated:** [March 25, 2009, 8:10am UTC](https://www.ruby-forum.com/t/gsub-and-single-quote-issue/163786 "2009-03-25T08:10:44Z")

</div>

a = " Ruby’s gem " puts a.gsub(/\[’\]/, “”) #=\> 1. Rubys gem puts a.gsub(/\[’\]/, “’”) #=\> 2. Ruby’s gem puts a.gsub(/\[’\]/, “’”) #=\> 3. Ruby’s gem puts a.gsub(/\[’\]/, “\\’”) #=\> 4. Rubys gem s gem puts a.gsub(/\[’\]/, “\\’”)…

---

## [Confirm while uploading file](https://www.ruby-forum.com/t/confirm-while-uploading-file/163817)

<div class="topic-metadata">

**Author:** [@mailtorajuit](https://www.ruby-forum.com/u/mailtorajuit)\
**Replies:** 0\
**Last updated:** [March 25, 2009, 6:29am UTC](https://www.ruby-forum.com/t/confirm-while-uploading-file/163817 "2009-03-25T06:29:11Z")

</div>

Hi all Iam new to ruby. In my application i have to upload csv file and there is submit button.when i submit the from its working fine.but i want to confirm from the user when he clicks on submit button, means it has…

---

## [IBM\_DB version 1.0.5 supports ruby-1.9.1](https://www.ruby-forum.com/t/ibm-db-version-1-0-5-supports-ruby-1-9-1/196925)

<div class="topic-metadata">

**Author:** [@praveen](https://www.ruby-forum.com/u/praveen)\
**Replies:** 0\
**Last updated:** [March 25, 2009, 5:45am UTC](https://www.ruby-forum.com/t/ibm-db-version-1-0-5-supports-ruby-1-9-1/196925 "2009-03-25T05:45:37Z")

</div>

Hi All, New version (1.0.5) of ibm\_db Rails Adapter/driver for IBM dataservers is now available. This release of gem provides support for ruby-1.9.1. With this support for 1.9.1 the ibm\_db gem works fine as a ASCII d…

---

## [Re: JRuby Hosting!](https://www.ruby-forum.com/t/re-jruby-hosting/163782)

<div class="topic-metadata">

**Author:** [@Kerry\_Jacabson](https://www.ruby-forum.com/u/Kerry_Jacabson)\
**Replies:** 1\
**Last updated:** [March 25, 2009, 5:29am UTC](https://www.ruby-forum.com/t/re-jruby-hosting/163782 "2009-03-25T05:29:14Z")

</div>

Hi Charlie, You may also want to add the following hosts to the list of JRoR (with Glassfish)Â service providers: http://www.webappcabaret.com http://www.cloudappy.com They all by the way use automation technilogies…

---

## [Ruby/DL implementation on JRuby](https://www.ruby-forum.com/t/ruby-dl-implementation-on-jruby/163809)

<div class="topic-metadata">

**Author:** [@wemagor](https://www.ruby-forum.com/u/wemagor)\
**Replies:** 1\
**Last updated:** [March 25, 2009, 5:00am UTC](https://www.ruby-forum.com/t/ruby-dl-implementation-on-jruby/163809 "2009-03-25T05:00:01Z")

</div>

I have started implementing ruby’s DL API in jruby, and I’m looking for a list of gems that use dl, that people actually want to use under JRuby. I’m only looking for gems/code that already exist, as I’m just trying …

---

## [Script throws error whenever I require mysql gem](https://www.ruby-forum.com/t/script-throws-error-whenever-i-require-mysql-gem/163696)

<div class="topic-metadata">

**Author:** [@farfignugen](https://www.ruby-forum.com/u/farfignugen)\
**Replies:** 3\
**Last updated:** [March 25, 2009, 2:30am UTC](https://www.ruby-forum.com/t/script-throws-error-whenever-i-require-mysql-gem/163696 "2009-03-25T02:30:32Z")

</div>

Hi all, Ive been working on a small script and Im about to place some functionality into it which allows it to write to my database by making use of activerecord. I’m hitting a brick wall at the moment so I’ve come t…

---

## [Amalgalite 0.8.0 Released](https://www.ruby-forum.com/t/amalgalite-0-8-0-released/163709)

<div class="topic-metadata">

**Author:** [@jeremyheiler](https://www.ruby-forum.com/u/jeremyheiler)\
**Replies:** 3\
**Last updated:** [March 25, 2009, 1:35am UTC](https://www.ruby-forum.com/t/amalgalite-0-8-0-released/163709 "2009-03-25T01:35:10Z")

</div>

amalgalite version 0.8.0 has been released. gem install amalgalite http://copiousfreetime.rubyforge.org/amalgalite/ Amalgalite embeds the SQLite database engine in a ruby extension. There is no need to install SQLi…

---

## [Re: Confused - trying to run the specs](https://www.ruby-forum.com/t/re-confused-trying-to-run-the-specs/163799)

<div class="topic-metadata">

**Author:** [@raker\_t](https://www.ruby-forum.com/u/raker_t)\
**Replies:** 0\
**Last updated:** [March 25, 2009, 12:33am UTC](https://www.ruby-forum.com/t/re-confused-trying-to-run-the-specs/163799 "2009-03-25T00:33:10Z")

</div>

Just FYI, setting HOME after dev.bat should work fine. Dev.bat has detection logic. However, this won’t matter after Shri’s changes. JD

---

## [Glassfish gem 0.9.3 and Rails 2.3](https://www.ruby-forum.com/t/glassfish-gem-0-9-3-and-rails-2-3/163425)

<div class="topic-metadata">

**Author:** [@Miika\_LeppSSS\_nen](https://www.ruby-forum.com/u/Miika_LeppSSS_nen)\
**Replies:** 4\
**Last updated:** [March 25, 2009, 12:09am UTC](https://www.ruby-forum.com/t/glassfish-gem-0-9-3-and-rails-2-3/163425 "2009-03-25T00:09:08Z")

</div>

Hello I made a basic rails app (script/generate scaffold Post title:string body:text). Then I moved app/models/post.rb to app/models/subfo/ post.rb and added config.load\_paths += Dir\["#{RAILS\_ROOT}/app/models/\*"\].fin…

---

## [How to set my default ruby back to 1.8 version after install ruby 1.9?](https://www.ruby-forum.com/t/how-to-set-my-default-ruby-back-to-1-8-version-after-install-ruby-1-9/163716)

<div class="topic-metadata">

**Author:** [@harry](https://www.ruby-forum.com/u/harry)\
**Replies:** 2\
**Last updated:** [March 24, 2009, 11:10pm UTC](https://www.ruby-forum.com/t/how-to-set-my-default-ruby-back-to-1-8-version-after-install-ruby-1-9/163716 "2009-03-24T23:10:35Z")

</div>

Hi ,this might be a newbie question and I don’t know if it’s the right place to ask here: I use opensuse11.1 and it has it’s ruby1.8.7 rpm installed , later I tried to compiled a ruby 1.9 on the machine.now when I typ…

---

## [Strange bug in irb1.9](https://www.ruby-forum.com/t/strange-bug-in-irb1-9/163736)

<div class="topic-metadata">

**Author:** [@peterz](https://www.ruby-forum.com/u/peterz)\
**Replies:** 7\
**Last updated:** [March 24, 2009, 10:30pm UTC](https://www.ruby-forum.com/t/strange-bug-in-irb1-9/163736 "2009-03-24T22:30:44Z")

</div>

Hi. I am developing bindings for libconfig and discovered a strange bug in irb1.9 (ruby 1.9.0 (2008-06-20 revision 17482) \[i486-linux\], irb 0.9.5(05/04/13); Debian GNU/Linux 5.0/lenny): ruby1.9 executes my script nic…

---

## [Love poem in code for a Grooms Cake](https://www.ruby-forum.com/t/love-poem-in-code-for-a-grooms-cake/163533)

<div class="topic-metadata">

**Author:** [@jena13](https://www.ruby-forum.com/u/jena13)\
**Replies:** 15\
**Last updated:** [March 24, 2009, 10:21pm UTC](https://www.ruby-forum.com/t/love-poem-in-code-for-a-grooms-cake/163533 "2009-03-24T22:21:58Z")

</div>

Hi all, I am engaged to a programmer. I, however, know very little about code other than to always comment! Was hoping to have a surprise grooms cake for our wedding with maybe a simple love poem in code written on …

---

## [Ruby Central rejected as a Google Summer of Code organization](https://www.ruby-forum.com/t/ruby-central-rejected-as-a-google-summer-of-code-organization/163757)

<div class="topic-metadata">

**Author:** [@David\_ASBlack](https://www.ruby-forum.com/u/David_ASBlack)\
**Replies:** 1\
**Last updated:** [March 24, 2009, 10:16pm UTC](https://www.ruby-forum.com/t/ruby-central-rejected-as-a-google-summer-of-code-organization/163757 "2009-03-24T22:16:41Z")

</div>

Hi all – I think many of you know this already but I just wanted to confirm it. The Google Summer of Code program has rejected Ruby Central this year as a mentoring organization, a role we’ve played every year since 2…

---

## [Code Review: ClrPrimitives2](https://www.ruby-forum.com/t/code-review-clrprimitives2/163778)

<div class="topic-metadata">

**Author:** [@grujildo](https://www.ruby-forum.com/u/grujildo)\
**Replies:** 2\
**Last updated:** [March 24, 2009, 10:02pm UTC](https://www.ruby-forum.com/t/code-review-clrprimitives2/163778 "2009-03-24T22:02:00Z")

</div>

tfpt review “/shelveset:ClrPrimitives2;REDMOND\\tomat” Python, DLR outer ring changes: Hoists FloorDivision implementation to MathUtils - Ruby uses the very same operation. Ruby changes: A couple of breaking changes: …

---

## [Igem list -r is giving me an error](https://www.ruby-forum.com/t/igem-list-r-is-giving-me-an-error/163731)

<div class="topic-metadata">

**Author:** [@nocashvalue](https://www.ruby-forum.com/u/nocashvalue)\
**Replies:** 2\
**Last updated:** [March 24, 2009, 8:06pm UTC](https://www.ruby-forum.com/t/igem-list-r-is-giving-me-an-error/163731 "2009-03-24T20:06:53Z")

</div>

I am using the Ironruby 0.3 release and every time I try to run “igem list -r” I get a StackOverFlowException. Am I the only one? C:\\Users\\gs\>igem list \*\*\* LOCAL GEMS \*\*\* C:\\Users\\gs\>igem list -r \*\*\* REMOTE GEMS \*\*…

---

## [A rake question...running rspec tests in different directories](https://www.ruby-forum.com/t/a-rake-question-running-rspec-tests-in-different-directories/163768)

<div class="topic-metadata">

**Author:** [@bigjimmyk3](https://www.ruby-forum.com/u/bigjimmyk3)\
**Replies:** 1\
**Last updated:** [March 24, 2009, 7:40pm UTC](https://www.ruby-forum.com/t/a-rake-question-running-rspec-tests-in-different-directories/163768 "2009-03-24T19:40:56Z")

</div>

So, I have something I need to do with Rake that I don’t know how to do, but seems like it would be possible… I have RSpec tests in multiple directories (for different components). Each component has its own lib dir…

---

## [Re: Mspec errors. Where should I start contributing?](https://www.ruby-forum.com/t/re-mspec-errors-where-should-i-start-contributing/163773)

<div class="topic-metadata">

**Author:** [@raker\_t](https://www.ruby-forum.com/u/raker_t)\
**Replies:** 0\
**Last updated:** [March 24, 2009, 7:26pm UTC](https://www.ruby-forum.com/t/re-mspec-errors-where-should-i-start-contributing/163773 "2009-03-24T19:26:45Z")

</div>

MRI uses a different technique to set HOME (I’ll file a bug later), so it might have it reset HOME for its spawned Ruby. We’ll look into it. JD

---

## [Please instruct how to work with Mac XCODE and INTERFACE BUILDER](https://www.ruby-forum.com/t/please-instruct-how-to-work-with-mac-xcode-and-interface-builder/163712)

<div class="topic-metadata">

**Author:** [@suresh\_r](https://www.ruby-forum.com/u/suresh_r)\
**Replies:** 3\
**Last updated:** [March 24, 2009, 7:11pm UTC](https://www.ruby-forum.com/t/please-instruct-how-to-work-with-mac-xcode-and-interface-builder/163712 "2009-03-24T19:11:15Z")

</div>

Dear ALL I make the RUBY application in Mac Xcode and desgin the window and controls in the interface builder. in my application i make the Datetime picker control and i am able to get the Date String value to the …

---

## [Pictures from scanner in ruby](https://www.ruby-forum.com/t/pictures-from-scanner-in-ruby/163704)

<div class="topic-metadata">

**Author:** [@er3c](https://www.ruby-forum.com/u/er3c)\
**Replies:** 2\
**Last updated:** [March 24, 2009, 6:39pm UTC](https://www.ruby-forum.com/t/pictures-from-scanner-in-ruby/163704 "2009-03-24T18:39:55Z")

</div>

Hi. I am working in a project and I need obtain pictures directly form a scanner. How can I do for take pictures from a scanner in ruby?

---

## [Review: Marshal bugs affecting rubygems](https://www.ruby-forum.com/t/review-marshal-bugs-affecting-rubygems/163765)

<div class="topic-metadata">

**Author:** [@Shri\_B](https://www.ruby-forum.com/u/Shri_B)\
**Replies:** 0\
**Last updated:** [March 24, 2009, 6:24pm UTC](https://www.ruby-forum.com/t/review-marshal-bugs-affecting-rubygems/163765 "2009-03-24T18:24:29Z")

</div>

---

## [Buiulding multiple versions of Ruby](https://www.ruby-forum.com/t/buiulding-multiple-versions-of-ruby/163721)

<div class="topic-metadata">

**Author:** [@john\_maclean](https://www.ruby-forum.com/u/john_maclean)\
**Replies:** 1\
**Last updated:** [March 24, 2009, 5:10pm UTC](https://www.ruby-forum.com/t/buiulding-multiple-versions-of-ruby/163721 "2009-03-24T17:10:49Z")

</div>

This is the way that I build ruby from the latest svn sources. This allows me to have multiple versions and to compare the performance/behaviour of my builds against the stable version provided by my distro. cd ~/pat…

---

## [Facebooker gem 1.0.13 broken](https://www.ruby-forum.com/t/facebooker-gem-1-0-13-broken/163130)

<div class="topic-metadata">

**Author:** [@deanhiller](https://www.ruby-forum.com/u/deanhiller)\
**Replies:** 1\
**Last updated:** [March 24, 2009, 4:55pm UTC](https://www.ruby-forum.com/t/facebooker-gem-1-0-13-broken/163130 "2009-03-24T16:55:31Z")

</div>

I just installed the latest facebooker gem, 1.0.13 (no earlier version exists on my system), and I’m getting the following error: no such file to load – facebooker/models/applicationrestrictions and, yes this file is …

---

## [Rails 2.3.2 and cache sweepers](https://www.ruby-forum.com/t/rails-2-3-2-and-cache-sweepers/163738)

<div class="topic-metadata">

**Author:** [@Miika\_LeppSSS\_nen](https://www.ruby-forum.com/u/Miika_LeppSSS_nen)\
**Replies:** 4\
**Last updated:** [March 24, 2009, 4:46pm UTC](https://www.ruby-forum.com/t/rails-2-3-2-and-cache-sweepers/163738 "2009-03-24T16:46:07Z")

</div>

Hello, I’m updating project to use Rails 2.3.2 and JRuby 1.2.0. What I have done so far is: updated jruby-complete-1.2.0.jar and latest version of jruby-rack (last update 2009-02-26) to warbler/lib followed instruct…

---

## [What is Ruby's Contribution to Programming?](https://www.ruby-forum.com/t/what-is-rubys-contribution-to-programming/163733)

<div class="topic-metadata">

**Author:** [@kun](https://www.ruby-forum.com/u/kun)\
**Replies:** 2\
**Last updated:** [March 24, 2009, 3:22pm UTC](https://www.ruby-forum.com/t/what-is-rubys-contribution-to-programming/163733 "2009-03-24T15:22:40Z")

</div>

Hi, I am just learning this awesome language Ruby and entering the languages field. I just wanted to know what are the new innovations that the Ruby Language contributed to Programming in general? Sincerely, Kunjan. …

---

## [Jruby trunk is \*way\* faster than 1.1.6](https://www.ruby-forum.com/t/jruby-trunk-is-way-faster-than-1-1-6/163454)

<div class="topic-metadata">

**Author:** [@cremes](https://www.ruby-forum.com/u/cremes)\
**Replies:** 4\
**Last updated:** [March 24, 2009, 1:48pm UTC](https://www.ruby-forum.com/t/jruby-trunk-is-way-faster-than-1-1-6/163454 "2009-03-24T13:48:01Z")

</div>

I ran one of my private benchmarks which tests the performance of the json-jruby gem (latest rev). I have pastied the results here: http://pastie.org/421969 The benchmark itself is available here: http://pastie.org/4…

---

## [Props - Nokogiri's Builder notation has class and ID shortcuts](https://www.ruby-forum.com/t/props-nokogiris-builder-notation-has-class-and-id-shortcuts/163729)

<div class="topic-metadata">

**Author:** [@Phlip](https://www.ruby-forum.com/u/Phlip)\
**Replies:** 0\
**Last updated:** [March 24, 2009, 1:16pm UTC](https://www.ruby-forum.com/t/props-nokogiris-builder-notation-has-class-and-id-shortcuts/163729 "2009-03-24T13:16:21Z")

</div>

Rubies: This is just a note to document a nice discovery in Nokogiri’s tests: builder = Nokogiri::HTML::Builder.new do div.rad.thing! { text "\<awesome\>" b "hello" } end as…

---

## [wxRuby setting the Frame's icon - getting started example](https://www.ruby-forum.com/t/wxruby-setting-the-frames-icon-getting-started-example/163723)

<div class="topic-metadata">

**Author:** [@7stud](https://www.ruby-forum.com/u/7stud)\
**Replies:** 2\
**Last updated:** [March 24, 2009, 1:09pm UTC](https://www.ruby-forum.com/t/wxruby-setting-the-frames-icon-getting-started-example/163723 "2009-03-24T13:09:54Z")

</div>

The following is a simplified example from the wxRuby wiki here: http://wxruby.rubyforge.org/wiki/wiki.pl?Frames\_(Part\_1) It’s the second example in the wxRuby tutorial entitled “Getting Started”. However, I don’t se…

---

## [Newbie needs help with first project](https://www.ruby-forum.com/t/newbie-needs-help-with-first-project/163589)

<div class="topic-metadata">

**Author:** [@gattone](https://www.ruby-forum.com/u/gattone)\
**Replies:** 14\
**Last updated:** [March 24, 2009, 8:36am UTC](https://www.ruby-forum.com/t/newbie-needs-help-with-first-project/163589 "2009-03-24T08:36:39Z")

</div>

I was told about Ruby several weeks ago and started my journey lol. I’ve read several tutorials but reading the tutorials I still couldn’t grasp most of it and I thought finding a project I wanted to work on and jus…

---

## [\[ATTN\] AgDLR 0.5 Released](https://www.ruby-forum.com/t/attn-agdlr-0-5-released/163711)

<div class="topic-metadata">

**Author:** [@jsoho](https://www.ruby-forum.com/u/jsoho)\
**Replies:** 0\
**Last updated:** [March 24, 2009, 8:09am UTC](https://www.ruby-forum.com/t/attn-agdlr-0-5-released/163711 "2009-03-24T08:09:14Z")

</div>

In conjunction with MIX ‘09 and the announcement of IronRuby 0.3, I’d like to announce a new release of AgDLR 0.5 – the Silverlight Dynamic Languages SDK. Download AgDLR 0.5 http://sdlsdk.codeplex.com/Release/Project…

---

## [Activerecord-amalgalite-adapter 0.8.0 Released](https://www.ruby-forum.com/t/activerecord-amalgalite-adapter-0-8-0-released/163710)

<div class="topic-metadata">

**Author:** [@jeremyheiler](https://www.ruby-forum.com/u/jeremyheiler)\
**Replies:** 0\
**Last updated:** [March 24, 2009, 8:00am UTC](https://www.ruby-forum.com/t/activerecord-amalgalite-adapter-0-8-0-released/163710 "2009-03-24T08:00:26Z")

</div>

activerecord-amalgalite-adapter version 0.8.0 has been released. gem install activerecord-amalgalite-adapter http://copiousfreetime.rubyforge.org/activerecord-amalgalite-adapter/ This is that ActiveRecord adapter for …

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

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