# Top

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

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

---

## [Interface coding by contract design and dependency injection](https://www.ruby-forum.com/t/interface-coding-by-contract-design-and-dependency-injection/83795)

<div class="topic-metadata">

**Author:** [@PerfectDayToChaseTo](https://www.ruby-forum.com/u/PerfectDayToChaseTo)\
**Replies:** 6\
**Last updated:** [January 30, 2007, 8:55pm UTC](https://www.ruby-forum.com/t/interface-coding-by-contract-design-and-dependency-injection/83795 "2007-01-30T20:55:48Z")

</div>

Hi All, I am a Java developer of many years & just starting to get into Ruby (& really enjoying it!). However I am used to ‘coding by contract’ using interfaces. This is especially great when using dependency injectio…

---

## [Find primary key via object attribute](https://www.ruby-forum.com/t/find-primary-key-via-object-attribute/80445)

<div class="topic-metadata">

**Author:** [@jkay](https://www.ruby-forum.com/u/jkay)\
**Replies:** 6\
**Last updated:** [December 27, 2006, 9:54pm UTC](https://www.ruby-forum.com/t/find-primary-key-via-object-attribute/80445 "2006-12-27T21:54:26Z")

</div>

I’m having a hard time wrapping my head around on implementing something like this: class Student \< ARB has\_many: attendances class Attendance \< ARB belongs\_to: student class AttendancesController \< ApplicationCont…

---

## [NewbieQ: How do I refresh view after return from popup windo](https://www.ruby-forum.com/t/newbieq-how-do-i-refresh-view-after-return-from-popup-windo/51715)

<div class="topic-metadata">

**Author:** [@soderic](https://www.ruby-forum.com/u/soderic)\
**Replies:** 6\
**Last updated:** [October 3, 2006, 3:09pm UTC](https://www.ruby-forum.com/t/newbieq-how-do-i-refresh-view-after-return-from-popup-windo/51715 "2006-10-03T15:09:39Z")

</div>

Hi, I have this bitta code that is supposed to open a new window and allow the user to create a new Organisation on the fly whilst editing a new Person i.e. if the Organisation exists they can select it from the drop …

---

## [Sqlite3 test fails in Rails app](https://www.ruby-forum.com/t/sqlite3-test-fails-in-rails-app/63479)

<div class="topic-metadata">

**Author:** [@Tyler\_Morten](https://www.ruby-forum.com/u/Tyler_Morten)\
**Replies:** 6\
**Last updated:** [June 16, 2006, 6:11pm UTC](https://www.ruby-forum.com/t/sqlite3-test-fails-in-rails-app/63479 "2006-06-16T18:11:04Z")

</div>

Greetings: I am using Sqlite3 database with my Rails app. When I try and run “rake tests” for the app it always fails with the error: \*\* Invoke default (first\_time) \*\* Invoke test (first\_time) \*\* Execute test \*\* I…

---

## [Why doesn't method\_missing affect respond\_to?](https://www.ruby-forum.com/t/why-doesnt-method-missing-affect-respond-to/62481)

<div class="topic-metadata">

**Author:** [@pergesu](https://www.ruby-forum.com/u/pergesu)\
**Replies:** 6\
**Last updated:** [June 5, 2006, 7:01pm UTC](https://www.ruby-forum.com/t/why-doesnt-method-missing-affect-respond-to/62481 "2006-06-05T19:01:38Z")

</div>

Take this class: class Foo def method\_missing(m, \*args) m.to\_s end end irb(main):006:0\> Foo.new.foo =\> “foo” irb(main):007:0\> Foo.respond\_to? :foo =\> false This obviously just returns the name of any method tha…

---

## [Entity relationship diagram software](https://www.ruby-forum.com/t/entity-relationship-diagram-software/104591)

<div class="topic-metadata">

**Author:** [@Dion\_H](https://www.ruby-forum.com/u/Dion_H)\
**Replies:** 2\
**Last updated:** [July 13, 2020, 12:32pm UTC](https://www.ruby-forum.com/t/entity-relationship-diagram-software/104591 "2020-07-13T12:32:50Z")

</div>

hi all, are there any good entity relationship design tools out there and any that possibly export to rails migrations ??? cheers dion

---

## [Mono MVC Timeout](https://www.ruby-forum.com/t/mono-mvc-timeout/235019)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 2\
**Last updated:** [May 5, 2014, 6:09pm UTC](https://www.ruby-forum.com/t/mono-mvc-timeout/235019 "2014-05-05T18:09:46Z")

</div>

Hi everyone! I am struggling to get a (simple) MVC app work under OpenBSD (5.3) + Mono (2.10.9) + Nginx (1.2.6) I can get a simple index.aspx (Hello World) app to work, but the default MVC 3 template doesn’t seem to…

---

## [Bootstrap: How do I change the black bar at the top?](https://www.ruby-forum.com/t/bootstrap-how-do-i-change-the-black-bar-at-the-top/245510)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 2\
**Last updated:** [June 17, 2013, 9:24pm UTC](https://www.ruby-forum.com/t/bootstrap-how-do-i-change-the-black-bar-at-the-top/245510 "2013-06-17T21:24:35Z")

</div>

Chapter 5 of railstutorial.org (http://ruby.railstutorial.org/chapters/filling-in-the-layout#top) talks about how to create a basic layout for a web site. I use it as a great resource for putting a Rails web site tog…

---

## [RE: JRuby 1.7.4 warning - You have loaded arm-Linux/libjffi-1.2.so](https://www.ruby-forum.com/t/re-jruby-1-7-4-warning-you-have-loaded-arm-linux-libjffi-1-2-so/245371)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 2\
**Last updated:** [May 21, 2013, 6:26pm UTC](https://www.ruby-forum.com/t/re-jruby-1-7-4-warning-you-have-loaded-arm-linux-libjffi-1-2-so/245371 "2013-05-21T18:26:36Z")

</div>

\> From: Wayne M. \<removed\_email\_address@domain.invalid\> (Add as Preferred Sender) \> Date: Sat, May 18, 2013 11:29 pm \> To: removed\_email\_address@domain.invalid \> \> That's a different error, but you can work…

---

## [Fwd: Re: rules engine in ruby](https://www.ruby-forum.com/t/fwd-re-rules-engine-in-ruby/228155)

<div class="topic-metadata">

**Author:** [@Chiara\_Palmieri](https://www.ruby-forum.com/u/Chiara_Palmieri)\
**Replies:** 2\
**Last updated:** [April 12, 2013, 11:15am UTC](https://www.ruby-forum.com/t/fwd-re-rules-engine-in-ruby/228155 "2013-04-12T11:15:35Z")

</div>

Il 11/04/13 14:35, Sergio B. ha scritto: rools http://rools.rubyforge.org/ Comunque puoi chiedere info anche sui gruppi ruby, rails in inglese (mondiali) Se hai bisogno di questo una soluzione potrebbe essere usare d…

---

## [Gtk2 install error](https://www.ruby-forum.com/t/gtk2-install-error/218484)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 2\
**Last updated:** [April 2, 2012, 2:16pm UTC](https://www.ruby-forum.com/t/gtk2-install-error/218484 "2012-04-02T14:16:24Z")

</div>

OS: redhat3 ruby: 1.9.2 I installed gtk2 by “gem install gtk2” but it show below error messages. In file included from rbglib\_timer.c:22: rbgprivate.h:52: syntax error before “extern” rbgprivate.h:111: syntax error…

---

## [Cap: 'No such file or directory' when doing 'cap:update'](https://www.ruby-forum.com/t/cap-no-such-file-or-directory-when-doing-cap-update/152532)

<div class="topic-metadata">

**Author:** [@thithi32](https://www.ruby-forum.com/u/thithi32)\
**Replies:** 2\
**Last updated:** [November 5, 2008, 1:14am UTC](https://www.ruby-forum.com/t/cap-no-such-file-or-directory-when-doing-cap-update/152532 "2008-11-05T01:14:26Z")

</div>

Hello, I stuck with this for a few hours … Can anyone help me (I’m new with Cap) …\>cap deploy:update executing \`deploy:update’ \*\* transaction: start executing \`deploy:update\_code’ \*\*\* \[deploy:update\_code\] rolling b…

---

## [German umlauts](https://www.ruby-forum.com/t/german-umlauts/143731)

<div class="topic-metadata">

**Author:** [@IrlwegS\_Franz\_SZNT](https://www.ruby-forum.com/u/IrlwegS_Franz_SZNT)\
**Replies:** 2\
**Last updated:** [July 24, 2008, 8:26am UTC](https://www.ruby-forum.com/t/german-umlauts/143731 "2008-07-24T08:26:19Z")

</div>

Hi all, my wxruby application handles with data from a Oracle database. But i have problems with the german umlauts (Ã¤,Ã¶,Ã¼). I can write data to the database, but when i’m reading the data from the database, the a…

---

## [Reload](https://www.ruby-forum.com/t/reload/87706)

<div class="topic-metadata">

**Author:** [@prabu](https://www.ruby-forum.com/u/prabu)\
**Replies:** 2\
**Last updated:** [March 5, 2007, 3:52pm UTC](https://www.ruby-forum.com/t/reload/87706 "2007-03-05T15:52:46Z")

</div>

whats the use for reload? and how it works ?

---

## [RubySpec pass rate](https://www.ruby-forum.com/t/rubyspec-pass-rate/235511)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 0\
**Last updated:** [June 26, 2013, 11:29am UTC](https://www.ruby-forum.com/t/rubyspec-pass-rate/235511 "2013-06-26T11:29:50Z")

</div>

Hello, the information I found on www.ironruby.info is from 2010. Is there more recent information on how many RubySpecs IronRuby passes? I would like to know a percentage of all the RubySpecs together. They don’t ne…

---

## [RoR Developer for Berlin besed Company wanted! Permanent Position!](https://www.ruby-forum.com/t/ror-developer-for-berlin-besed-company-wanted-permanent-position/229393)

<div class="topic-metadata">

**Author:** [@tlockney](https://www.ruby-forum.com/u/tlockney)\
**Replies:** 0\
**Last updated:** [January 16, 2013, 7:16am UTC](https://www.ruby-forum.com/t/ror-developer-for-berlin-besed-company-wanted-permanent-position/229393 "2013-01-16T07:16:21Z")

</div>

Ruby on Rails Developer My Client is a technology start-up with a simple mission - Helping publishers to deliver their magazines to tablets and mobile devices. Working with him, publishers can automatically convert e…

---

## [Move link\_to data from URL to body](https://www.ruby-forum.com/t/move-link-to-data-from-url-to-body/231367)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 5\
**Last updated:** [August 5, 2014, 10:42am UTC](https://www.ruby-forum.com/t/move-link-to-data-from-url-to-body/231367 "2014-08-05T10:42:53Z")

</div>

Hi guys, I’m having a a link\_to element which sends data to the server. This is currently encoded in the URL. Is it possible to move this URI encoded data to the body, in order to have a clean URL? Thank you in advan…

---

## [Rewrite except one directory](https://www.ruby-forum.com/t/rewrite-except-one-directory/239181)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 5\
**Last updated:** [February 16, 2014, 10:45pm UTC](https://www.ruby-forum.com/t/rewrite-except-one-directory/239181 "2014-02-16T22:45:47Z")

</div>

Hello, I’m using the following rewrite options { try\_files $uri @pico; } location @pico { rewrite ^(.\*)$ /index.php; } So I would like to disable the rewrite for one subfolder. I have some PHP scripts …

---

## [Checkinstall fails to create a Ruby 1.9.2 package](https://www.ruby-forum.com/t/checkinstall-fails-to-create-a-ruby-1-9-2-package/205548)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 5\
**Last updated:** [April 8, 2011, 10:08pm UTC](https://www.ruby-forum.com/t/checkinstall-fails-to-create-a-ruby-1-9-2-package/205548 "2011-04-08T22:08:59Z")

</div>

Hi. Checkinstall fails to create a Ruby 1.9.2 package. It returns the following error: # checkinstall --type=debian --install=no --pakdir=/home/\<username\> \<...\> ./miniruby -I./lib -I. -I.ext/common ./tool/rbinstall…

---

## [Unable to use ruby-debug](https://www.ruby-forum.com/t/unable-to-use-ruby-debug/198793)

<div class="topic-metadata">

**Author:** [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Replies:** 5\
**Last updated:** [November 9, 2010, 5:23pm UTC](https://www.ruby-forum.com/t/unable-to-use-ruby-debug/198793 "2010-11-09T17:23:34Z")

</div>

I’m trying to use ruby-debug but when I try to start the server with it, I get an error saying I need to install it (even though it’s installed): tiberius:project Jonathan$ sudo gem install ruby-debug Building native …

---

## [Paperclip - Amazon S3 - https](https://www.ruby-forum.com/t/paperclip-amazon-s3-https/192993)

<div class="topic-metadata">

**Author:** [@sandy](https://www.ruby-forum.com/u/sandy)\
**Replies:** 5\
**Last updated:** [August 22, 2010, 4:09am UTC](https://www.ruby-forum.com/t/paperclip-amazon-s3-https/192993 "2010-08-22T04:09:22Z")

</div>

I am able to use Paperclip to save files to Amazon’s S3 storage. Once saved, the files are available using a URL associated with the bucket and filename. I have not been able to find a good tutorial which clearly exp…

---

## [Nginx+varnish & delivered error\_page](https://www.ruby-forum.com/t/nginx-varnish-delivered-error-page/192330)

<div class="topic-metadata">

**Author:** [@revirii](https://www.ruby-forum.com/u/revirii)\
**Replies:** 5\
**Last updated:** [July 28, 2010, 2:23pm UTC](https://www.ruby-forum.com/t/nginx-varnish-delivered-error-page/192330 "2010-07-28T14:23:36Z")

</div>

Hello, we have a little problem with, as the topic says, “Nginx+varnish & delivered error\_page”. We have nginx in front as proxy, behind there’s a varnish cashing stuff from a tomcat backend. Sometimes the tomcat cra…

---

## [Using attachment fu in masse](https://www.ruby-forum.com/t/using-attachment-fu-in-masse/169202)

<div class="topic-metadata">

**Author:** [@holden](https://www.ruby-forum.com/u/holden)\
**Replies:** 5\
**Last updated:** [June 1, 2009, 3:02pm UTC](https://www.ruby-forum.com/t/using-attachment-fu-in-masse/169202 "2009-06-01T15:02:35Z")

</div>

I’m trying to use attachment fu to add a large number of images at once using a script but i can’t even get it to add an image from the console… the other documentation i’ve found no longer seems to work. Something li…

---

## [Help starting rails](https://www.ruby-forum.com/t/help-starting-rails/162517)

<div class="topic-metadata">

**Author:** [@nuby2ruby](https://www.ruby-forum.com/u/nuby2ruby)\
**Replies:** 5\
**Last updated:** [March 11, 2009, 1:26am UTC](https://www.ruby-forum.com/t/help-starting-rails/162517 "2009-03-11T01:26:09Z")

</div>

I have a weird issue. I can’t start my rails project… I was working on it yesterday, and everything was fine. I came into work today and I can’t boot it up… The server comes up fine when I run ruby script/server, but …

---

## [Signal processing and GPU](https://www.ruby-forum.com/t/signal-processing-and-gpu/151397)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 5\
**Last updated:** [October 23, 2008, 5:49pm UTC](https://www.ruby-forum.com/t/signal-processing-and-gpu/151397 "2008-10-23T17:49:46Z")

</div>

Has anyone tried using GPU for signal processing? Does anyone know of a reason why this would not be a good idea I am planning on starting on it this week, would appreciate inputs Thanks Inderaj

---

## [Documentation Patch: Preventing XPath Injection attacks](https://www.ruby-forum.com/t/documentation-patch-preventing-xpath-injection-attacks/136167)

<div class="topic-metadata">

**Author:** [@sevensoft](https://www.ruby-forum.com/u/sevensoft)\
**Replies:** 5\
**Last updated:** [April 30, 2008, 4:13pm UTC](https://www.ruby-forum.com/t/documentation-patch-preventing-xpath-injection-attacks/136167 "2008-04-30T16:13:55Z")

</div>

Here’s a patch to rexml/xpath.rb which documents the variables parameter in REXML::XPath. — xpath.rb.old 2008-04-24 17:31:51.000000000 -0500 +++ xpath.rb 2008-04-24 17:37:38.000000000 -0500 @@ -15,10 +15,15 @@ # …

---

## [Undefining a method?](https://www.ruby-forum.com/t/undefining-a-method/92098)

<div class="topic-metadata">

**Author:** [@benjohnson](https://www.ruby-forum.com/u/benjohnson)\
**Replies:** 5\
**Last updated:** [April 16, 2007, 4:58am UTC](https://www.ruby-forum.com/t/undefining-a-method/92098 "2007-04-16T04:58:34Z")

</div>

Is it possible to undefine a method. For example: class A def method end end A.undefine\_method(:method) Is this possible? I need to do this because I’m dynamically building methods into a class and it would make …

---

## [Software stopping of runaway realtime processes?](https://www.ruby-forum.com/t/software-stopping-of-runaway-realtime-processes/85069)

<div class="topic-metadata">

**Author:** [@danhobbs](https://www.ruby-forum.com/u/danhobbs)\
**Replies:** 5\
**Last updated:** [February 10, 2007, 5:59pm UTC](https://www.ruby-forum.com/t/software-stopping-of-runaway-realtime-processes/85069 "2007-02-10T17:59:33Z")

</div>

Hey, I’m hoping someone has run into this problem before… We have a that lab we access remotely, and sometimes the students get a little overzealous in e.g. their rate selection, and the machines become unresponsive.…

---

## [Can rails cache a table?](https://www.ruby-forum.com/t/can-rails-cache-a-table/64846)

<div class="topic-metadata">

**Author:** [@crucoba](https://www.ruby-forum.com/u/crucoba)\
**Replies:** 5\
**Last updated:** [February 9, 2007, 9:20pm UTC](https://www.ruby-forum.com/t/can-rails-cache-a-table/64846 "2007-02-09T21:20:23Z")

</div>

We have a few tables that do not change, unless something big happens which will only happen when it is time to deploy. Is there a way to get Rails to cache the contents of these tables? We can’t just go to config …

---

## [Auto indentation in ruby electric mode](https://www.ruby-forum.com/t/auto-indentation-in-ruby-electric-mode/84921)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 5\
**Last updated:** [February 9, 2007, 8:43am UTC](https://www.ruby-forum.com/t/auto-indentation-in-ruby-electric-mode/84921 "2007-02-09T08:43:04Z")

</div>

Hi, I’m learning to use Emacs to program Ruby. The ruby-electric-mode works well except that after I hit ENTER, my cursor will not be automatically indented. For example, if I type “def foo” and then ENTER, my cursor…

---

## [Real-time message passing to browser in Rails?](https://www.ruby-forum.com/t/real-time-message-passing-to-browser-in-rails/83277)

<div class="topic-metadata">

**Author:** [@nate](https://www.ruby-forum.com/u/nate)\
**Replies:** 5\
**Last updated:** [January 25, 2007, 7:31pm UTC](https://www.ruby-forum.com/t/real-time-message-passing-to-browser-in-rails/83277 "2007-01-25T19:31:36Z")

</div>

Has anyone had any success getting “realtime” message passed to the browser in Rails? I’m wondering if there’s a helper or Prototype snippet that can help pass messages to a “status” window. Basically, I have an app t…

---

## [PDF::Writer Simpletable Iteration](https://www.ruby-forum.com/t/pdf-writer-simpletable-iteration/54647)

<div class="topic-metadata">

**Author:** [@divotdave](https://www.ruby-forum.com/u/divotdave)\
**Replies:** 5\
**Last updated:** [January 18, 2007, 3:21pm UTC](https://www.ruby-forum.com/t/pdf-writer-simpletable-iteration/54647 "2007-01-18T15:21:14Z")

</div>

Hello All: I have been working with Austin Ziegler’s PDF::Writer as a means to produce PDF documents from my Rails app. I am stumped on how to iterate through a collection of items and output them in a table format. …

---

## [Ruby LSAPI 1.9 + LSWS 2.2.2](https://www.ruby-forum.com/t/ruby-lsapi-1-9-lsws-2-2-2/69965)

<div class="topic-metadata">

**Author:** [@finster](https://www.ruby-forum.com/u/finster)\
**Replies:** 5\
**Last updated:** [September 26, 2006, 6:49pm UTC](https://www.ruby-forum.com/t/ruby-lsapi-1-9-lsws-2-2-2/69965 "2006-09-26T18:49:33Z")

</div>

Hi, If you have been using or evaluating LiteSpeed web server + Ruby LSAPI setup for Rails application, please make sure your are using the latest release, Ruby LSAPI 1.9 and LSWS 2.2.2. We have been fixing a few bugs …

---

## [Accessing the session in a model](https://www.ruby-forum.com/t/accessing-the-session-in-a-model/66955)

<div class="topic-metadata">

**Author:** [@nicken](https://www.ruby-forum.com/u/nicken)\
**Replies:** 5\
**Last updated:** [August 30, 2006, 6:49pm UTC](https://www.ruby-forum.com/t/accessing-the-session-in-a-model/66955 "2006-08-30T18:49:40Z")

</div>

Hey i want to acces the session in the model, i have 3 columns, name\_nl, name\_en, name\_fr, depending on what is in @session\[:language\], i need to select to correct field. i have something like this for a product item …

---

## [ActionWebService API](https://www.ruby-forum.com/t/actionwebservice-api/100673)

<div class="topic-metadata">

**Author:** [@Nicholas\_W](https://www.ruby-forum.com/u/Nicholas_W)\
**Replies:** 5\
**Last updated:** [July 31, 2006, 7:33pm UTC](https://www.ruby-forum.com/t/actionwebservice-api/100673 "2006-07-31T19:33:39Z")

</div>

Hi \*, I need to pass a hash to a webservice, so I defined my API with: api\_method :search, :expects =\> \[{ :tags =\> :string, :assignment =\> :string, :resource =\> :string, :lesson\_plan =\> :string, :subject =\> :stri…

---

## [Looking for a Rails AJAX gallery/tutorial](https://www.ruby-forum.com/t/looking-for-a-rails-ajax-gallery-tutorial/95062)

<div class="topic-metadata">

**Author:** [@dgm](https://www.ruby-forum.com/u/dgm)\
**Replies:** 5\
**Last updated:** [May 21, 2006, 9:49pm UTC](https://www.ruby-forum.com/t/looking-for-a-rails-ajax-gallery-tutorial/95062 "2006-05-21T21:49:48Z")

</div>

Hello everyone, Do any of you know of a downloadable Rails app that demonstrates all the bundled AJAX-iness in an impressive form? I’m looking for two things: something I can show off to wow people with Rails’ built…

---

## [\[OT\] How to prepend copyright notices to each source file](https://www.ruby-forum.com/t/ot-how-to-prepend-copyright-notices-to-each-source-file/65877)

<div class="topic-metadata">

**Author:** [@robertjames](https://www.ruby-forum.com/u/robertjames)\
**Replies:** 5\
**Last updated:** [February 12, 2006, 8:27am UTC](https://www.ruby-forum.com/t/ot-how-to-prepend-copyright-notices-to-each-source-file/65877 "2006-02-12T08:27:47Z")

</div>

Sorry for the off-topic post, but I guess someone else may hit the same issue… Having developed a rails application, I now need to put GPL text and a copyright notice at the start of each source file. For the .rb fil…

---

## [Port a Library (#64)](https://www.ruby-forum.com/t/port-a-library-64/100333)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 5\
**Last updated:** [February 3, 2006, 2:16am UTC](https://www.ruby-forum.com/t/port-a-library-64/100333 "2006-02-03T02:16:54Z")

</div>

The great element of porting a library is that you get examine another programmer’s ideas. If you’re lucky, that may teach you a new trick or two. I’ll use my experience as an example. Using Buffers When I decided …

---

## [Gem install rails installs 0.13.1 instead of 0.14.2](https://www.ruby-forum.com/t/gem-install-rails-installs-0-13-1-instead-of-0-14-2/49207)

<div class="topic-metadata">

**Author:** [@shodhan\_sheth](https://www.ruby-forum.com/u/shodhan_sheth)\
**Replies:** 5\
**Last updated:** [December 1, 2005, 3:44pm UTC](https://www.ruby-forum.com/t/gem-install-rails-installs-0-13-1-instead-of-0-14-2/49207 "2005-12-01T15:44:43Z")

</div>

Hi I\`m currently using rails 0.13.1 and plan to upgrade to 0.14.2 but am stuck on the first page. when i type in gem install rails gem insatlls rails 0.13.1. stumped i tried to search the available rails version vi…

---

## [UJS guides somewhere?](https://www.ruby-forum.com/t/ujs-guides-somewhere/207331)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 7\
**Last updated:** [May 25, 2011, 6:00pm UTC](https://www.ruby-forum.com/t/ujs-guides-somewhere/207331 "2011-05-25T18:00:03Z")

</div>

I’m trying to work with AJAX on Rails 3 but I cant find any documentation or a guide for learning it, is there a good one out there to start practicing?

---

## [How to compare two object instances? is "m1.to\_yaml.eql?(m2.to\_yaml)" a good way?](https://www.ruby-forum.com/t/how-to-compare-two-object-instances-is-m1-to-yaml-eql-m2-to-yaml-a-good-way/174990)

<div class="topic-metadata">

**Author:** [@greg](https://www.ruby-forum.com/u/greg)\
**Replies:** 7\
**Last updated:** [September 5, 2009, 11:58pm UTC](https://www.ruby-forum.com/t/how-to-compare-two-object-instances-is-m1-to-yaml-eql-m2-to-yaml-a-good-way/174990 "2009-09-05T23:58:56Z")

</div>

Hi, What’s an easy way to compare for equality two object instances (that haven’t been saved yet). Or in other words pretty much just two object instances. I’ve tried “==” and “eql?” on the objects directly and thi…

---

## [Got some syntax error I can't spot. Can you (I hope)?](https://www.ruby-forum.com/t/got-some-syntax-error-i-cant-spot-can-you-i-hope/164698)

<div class="topic-metadata">

**Author:** [@RichardOnRails](https://www.ruby-forum.com/u/RichardOnRails)\
**Replies:** 7\
**Last updated:** [April 4, 2009, 6:39pm UTC](https://www.ruby-forum.com/t/got-some-syntax-error-i-cant-spot-can-you-i-hope/164698 "2009-04-04T18:39:52Z")

</div>

Hi all, I pulled my problem code from my app into a test on http://www.pastie.org/436616. Lines 13-19 are the problem code in my app. Lines preceding them I set up needed definitions and test individual components o…

---

## [Mysql::Error](https://www.ruby-forum.com/t/mysql-error/152303)

<div class="topic-metadata">

**Author:** [@flawkes](https://www.ruby-forum.com/u/flawkes)\
**Replies:** 7\
**Last updated:** [November 3, 2008, 8:21am UTC](https://www.ruby-forum.com/t/mysql-error/152303 "2008-11-03T08:21:34Z")

</div>

Hola buenas, He creado un modelo para los detalles de un usuario, al probar la acciÃ³n de editar los detalles de un usuario me sale el siguiente error: ActiveRecord::StatementInvalid in Detalls usersController#edit M…

---

## [Unobtrusive Javascript](https://www.ruby-forum.com/t/unobtrusive-javascript/138949)

<div class="topic-metadata">

**Author:** [@daz](https://www.ruby-forum.com/u/daz)\
**Replies:** 7\
**Last updated:** [June 14, 2008, 10:00am UTC](https://www.ruby-forum.com/t/unobtrusive-javascript/138949 "2008-06-14T10:00:22Z")

</div>

Something that has always bugged me about rails are the JavaScript helpers. They are brilliant in what they do, but create some fairly nasty looking inline javascript. Everything else in rails is nicely separated, but…

---

## [Problem creating table in database](https://www.ruby-forum.com/t/problem-creating-table-in-database/137953)

<div class="topic-metadata">

**Author:** [@df-sean](https://www.ruby-forum.com/u/df-sean)\
**Replies:** 7\
**Last updated:** [May 19, 2008, 1:22pm UTC](https://www.ruby-forum.com/t/problem-creating-table-in-database/137953 "2008-05-19T13:22:43Z")

</div>

I manually deleted a table in my database through MySQL administrator as well as the db/migrate/foo file that corresponded with it. Now when I try to recreate this table through the terminal I run: ruby/script/genera…

---

## [Rewrite rule for php easter eggs](https://www.ruby-forum.com/t/rewrite-rule-for-php-easter-eggs/134641)

<div class="topic-metadata">

**Author:** [@Renaud\_Allard](https://www.ruby-forum.com/u/Renaud_Allard)\
**Replies:** 7\
**Last updated:** [April 13, 2008, 5:29pm UTC](https://www.ruby-forum.com/t/rewrite-rule-for-php-easter-eggs/134641 "2008-04-13T17:29:48Z")

</div>

Hello, I am trying to wrote a rewrite rule to forbid the request of PHP easter eggs. So I’d like the request: http://site.domain.tld/?=PHPB8B5F2A0-3C92-11d3-A3A9-4C7B08C10000 to be redirected to index.php I tried: …

---

## [Is there a multiline ruby "comment" approach? like java's /\*](https://www.ruby-forum.com/t/is-there-a-multiline-ruby-comment-approach-like-javas/68780)

<div class="topic-metadata">

**Author:** [@greg](https://www.ruby-forum.com/u/greg)\
**Replies:** 7\
**Last updated:** [March 6, 2008, 6:35am UTC](https://www.ruby-forum.com/t/is-there-a-multiline-ruby-comment-approach-like-javas/68780 "2008-03-06T06:35:01Z")

</div>

Hi, Just wondering if there is a way to easy comment out a block of ruby code without putting the “#” characters on each line? Is there an equivalent to java’s /\* \*/, for example: /\* askdf asd fasdf as dfasd …

---

## [How to secure records?](https://www.ruby-forum.com/t/how-to-secure-records/65637)

<div class="topic-metadata">

**Author:** [@bbkr](https://www.ruby-forum.com/u/bbkr)\
**Replies:** 7\
**Last updated:** [August 21, 2006, 3:02pm UTC](https://www.ruby-forum.com/t/how-to-secure-records/65637 "2006-08-21T15:02:25Z")

</div>

I have “users”, “company” and “contract” controllers, with the following relations: class User \< ActiveRecord::Base has\_many :companies class Company \< ActiveRecord::Base belongs\_to :user has\_many :contracts class…

---

## [MRI GC never collects?](https://www.ruby-forum.com/t/mri-gc-never-collects/220631)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 1\
**Last updated:** [June 14, 2012, 10:05pm UTC](https://www.ruby-forum.com/t/mri-gc-never-collects/220631 "2012-06-14T22:05:23Z")

</div>

With the following code: def finalized\_puts bad, benign ObjectSpace.define\_finalizer(bad) { puts benign.to\_s } end n = 0 loop { a = \[3\] finalized\_puts a, n GC.start n += 1 if n % 10000 == 0 print ‘.’ end } I…

---

## [Installation of ruby-Libvirt on Linux box](https://www.ruby-forum.com/t/installation-of-ruby-libvirt-on-linux-box/220381)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 1\
**Last updated:** [June 7, 2012, 1:33pm UTC](https://www.ruby-forum.com/t/installation-of-ruby-libvirt-on-linux-box/220381 "2012-06-07T13:33:14Z")

</div>

Hey guys, I am facing some issues while installing ruby-libvirt gem on my linux box. these issues are as follows. ncepspa244% gem install ruby-libvirt -v 0.3.0 /users/ankmaheshwari/.rvm/rubies/ruby-1.9.3-p194/lib/ru…

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

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