# Top

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

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

---

## [Date validation fails for all September dates in Spanish](https://www.ruby-forum.com/t/date-validation-fails-for-all-september-dates-in-spanish/186241)

<div class="topic-metadata">

**Author:** [@pezdude](https://www.ruby-forum.com/u/pezdude)\
**Replies:** 2\
**Last updated:** [April 3, 2010, 1:22pm UTC](https://www.ruby-forum.com/t/date-validation-fails-for-all-september-dates-in-spanish/186241 "2010-04-03T13:22:03Z")

</div>

Here’s how I’ve got my dates set up: date: formats: Use the strftime parameters for formats. When no format has been given, it uses default. You can provide other formats here if you like! default: “%d-%m-%Y” short: …

---

## [Case of drive letter](https://www.ruby-forum.com/t/case-of-drive-letter/164960)

<div class="topic-metadata">

**Author:** [@Shri\_B](https://www.ruby-forum.com/u/Shri_B)\
**Replies:** 2\
**Last updated:** [April 21, 2009, 8:27pm UTC](https://www.ruby-forum.com/t/case-of-drive-letter/164960 "2009-04-21T20:27:01Z")

</div>

Using MRI on Windows, Dir.pwd can use either lower-case or upper-case for the drive letter (“C:/” or “c:/”) depending on the Command Prompt it is run from. However, FILE always uses lower-case drive letter. This can c…

---

## [How to add a "static method" dynamic?](https://www.ruby-forum.com/t/how-to-add-a-static-method-dynamic/88767)

<div class="topic-metadata">

**Author:** [@yananay](https://www.ruby-forum.com/u/yananay)\
**Replies:** 2\
**Last updated:** [March 14, 2007, 12:44pm UTC](https://www.ruby-forum.com/t/how-to-add-a-static-method-dynamic/88767 "2007-03-14T12:44:25Z")

</div>

now , i know that i can use “define\_method” add a method dynamic, but i want to know how to add a “static method” dynamic ? thanks!

---

## [What's wrong with this snippet](https://www.ruby-forum.com/t/whats-wrong-with-this-snippet/82690)

<div class="topic-metadata">

**Author:** [@jkit](https://www.ruby-forum.com/u/jkit)\
**Replies:** 2\
**Last updated:** [January 19, 2007, 8:52pm UTC](https://www.ruby-forum.com/t/whats-wrong-with-this-snippet/82690 "2007-01-19T20:52:38Z")

</div>

Hi, all! I’ve just stumbled over this orphaned snippet on my hard drive that returns a NoMethodError message instead of “Method meow called”! Is there a workaround? Thanks! AnimalSounds = Module.new AnimalSounds.cl…

---

## [Binary / ESC in dev log](https://www.ruby-forum.com/t/binary-esc-in-dev-log/73133)

<div class="topic-metadata">

**Author:** [@joe](https://www.ruby-forum.com/u/joe)\
**Replies:** 2\
**Last updated:** [October 21, 2006, 10:21pm UTC](https://www.ruby-forum.com/t/binary-esc-in-dev-log/73133 "2006-10-21T22:21:54Z")

</div>

My production log looks okay, but when I less my development log it first asks ‘“log/development.log” may be a binary file. See it anyway?’ and it looks like this: ESC\[4;35;1mSQL (0.075510)ESC\[0m ESC\[0m SELECT a.at…

---

## [A small trick if you're embedding screenshots with cucumber/selenium on jruby](https://www.ruby-forum.com/t/a-small-trick-if-youre-embedding-screenshots-with-cucumber-selenium-on-jruby/211721)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 0\
**Last updated:** [September 12, 2011, 10:10am UTC](https://www.ruby-forum.com/t/a-small-trick-if-youre-embedding-screenshots-with-cucumber-selenium-on-jruby/211721 "2011-09-12T10:10:24Z")

</div>

Hi, I noticed that embedding images in cucumber/selenium html reports was done in png. Since I’ve many features to test with screenshots, I investigated how to make jpeg files instead and embed them. Main target was …

---

## [Boston Ruby Job Opportunity](https://www.ruby-forum.com/t/boston-ruby-job-opportunity/244780)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 1\
**Last updated:** [July 17, 2016, 12:01am UTC](https://www.ruby-forum.com/t/boston-ruby-job-opportunity/244780 "2016-07-17T00:01:24Z")

</div>

My name is Sophia and I work with the KellyMitchell Group, a national recruiting organization. One of my clients is looking to add a Ruby Engineer to their team! If you are local and interested in the role feel free…

---

## [Counter\_cache for has\_many through associations](https://www.ruby-forum.com/t/counter-cache-for-has-many-through-associations/233774)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 1\
**Last updated:** [January 7, 2016, 3:31pm UTC](https://www.ruby-forum.com/t/counter-cache-for-has-many-through-associations/233774 "2016-01-07T15:31:16Z")

</div>

class User \< ActiveRecord::Base has\_many :likes has\_many :liked\_things, :through =\> :likes end class Thing \< ActiveRecord::Base has\_many :likes has\_many :liked\_by\_users, :through =\> :likes end class Like \< Active…

---

## [Getting directory size using ruby](https://www.ruby-forum.com/t/getting-directory-size-using-ruby/238653)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 1\
**Last updated:** [January 22, 2014, 3:32pm UTC](https://www.ruby-forum.com/t/getting-directory-size-using-ruby/238653 "2014-01-22T15:32:22Z")

</div>

Hi, I want to measure directory size using Ruby. I can use sys/filesystem gem but I didn’t understand from examples how can it ensure this? I musn’t do du -sh directory and using recursive File.size(“…”){ …} will b…

---

## [Proxy not listening to 443](https://www.ruby-forum.com/t/proxy-not-listening-to-443/227557)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [March 19, 2013, 4:53pm UTC](https://www.ruby-forum.com/t/proxy-not-listening-to-443/227557 "2013-03-19T16:53:45Z")

</div>

Hello! We are running some applications servers (grails) and using nginx as reverse proxy before that for caching and load balancing purposes. everything is working as expected, but now that we received our ssl cert…

---

## [How to make normal user as admin](https://www.ruby-forum.com/t/how-to-make-normal-user-as-admin/215586)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 7\
**Last updated:** [January 11, 2012, 8:02am UTC](https://www.ruby-forum.com/t/how-to-make-normal-user-as-admin/215586 "2012-01-11T08:02:06Z")

</div>

hi, I am using rails 3.0.10, i had created user and admin using devise, i want to make normal user as admin, can anyone help me on how to make user as admin Thanks Kapil

---

## [How can I build component usrp on E100?](https://www.ruby-forum.com/t/how-can-i-build-component-usrp-on-e100/212974)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 1\
**Last updated:** [October 19, 2011, 5:51pm UTC](https://www.ruby-forum.com/t/how-can-i-build-component-usrp-on-e100/212974 "2011-10-19T17:51:40Z")

</div>

Hi, all, I have updated the kernel modules to 3.0.0 for my USRP E100. UHD is successfully built and benchmark\_rx\_rate in uhd/host/build/examples works. I further installed the gnuradio according to the usrpe1xx-FAQh…

---

## [Hi, is there a way to use nginx to publish the maintenance file](https://www.ruby-forum.com/t/hi-is-there-a-way-to-use-nginx-to-publish-the-maintenance-file/204866)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 7\
**Last updated:** [April 7, 2011, 12:52pm UTC](https://www.ruby-forum.com/t/hi-is-there-a-way-to-use-nginx-to-publish-the-maintenance-file/204866 "2011-04-07T12:52:15Z")

</div>

I have a question, if I want to use nginx to main the maintenance file, and what’s the easiest way for me to change a web to maintained status when it’s in emergency? another question, as you see, that twitter always …

---

## [Rails etc - Command not found](https://www.ruby-forum.com/t/rails-etc-command-not-found/204934)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 1\
**Last updated:** [March 25, 2011, 6:36pm UTC](https://www.ruby-forum.com/t/rails-etc-command-not-found/204934 "2011-03-25T18:36:34Z")

</div>

Hello everyone. I am getting the following error, and would be grateful if someone could help me with this: ~ # gem list | grep rails factory\_girl\_rails (1.0.1, 1.0) rails (3.0.5, 3.0.3) rspec-rails (2.5.0, 2.0.1) …

---

## [Gem suggestions](https://www.ruby-forum.com/t/gem-suggestions/202910)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 7\
**Last updated:** [February 24, 2011, 3:39pm UTC](https://www.ruby-forum.com/t/gem-suggestions/202910 "2011-02-24T15:39:25Z")

</div>

There is a gem called icu4r that is built for Ruby 1.8. I’ve taken that (some years ago) and ported it to Ruby 1.9 and I have it on github for others to use. I was going to create a gem for it and put it on RubyGems b…

---

## [Using of module and "Is not missing constant" error](https://www.ruby-forum.com/t/using-of-module-and-is-not-missing-constant-error/186000)

<div class="topic-metadata">

**Author:** [@sorokyn](https://www.ruby-forum.com/u/sorokyn)\
**Replies:** 7\
**Last updated:** [March 30, 2010, 4:44pm UTC](https://www.ruby-forum.com/t/using-of-module-and-is-not-missing-constant-error/186000 "2010-03-30T16:44:03Z")

</div>

Hi, I have some trouble using module. I’m working on a rails project, but I think it’s concerning Ruby in general. I get this kind of error ‘Module is not missing constant Klass!’ I have folders looking like this : …

---

## [Array#shift/unshift $B$N9bB.2=(B](https://www.ruby-forum.com/t/array-shift-unshift-b-n9bb-2-b/133132)

<div class="topic-metadata">

**Author:** [@wanabe](https://www.ruby-forum.com/u/wanabe)\
**Replies:** 7\
**Last updated:** [April 4, 2008, 4:29am UTC](https://www.ruby-forum.com/t/array-shift-unshift-b-n9bb-2-b/133132 "2008-04-04T04:29:53Z")

</div>

e$B%o%J%Y$H?=$7$^$9!#e(B \[ruby-core:5861\]e$B$N%Q%C%A$K6=L#$,$"$C$?$N$G!“e(B RARRAY\_PTR(ary) e$B$h$jA0J}$K6u$-%a%b%j$rJ\];}$9$k$h$&$K$9$k!”$H$$$&%"%$%G%#%"$r??;w$7$Fe(B shift/unshift e$B$N9bB.2=$r$9$k%Q%C%A$r=q$$$F$\_$^…

---

## [Inheriting from / Delegating to Integer - Currency class implementation](https://www.ruby-forum.com/t/inheriting-from-delegating-to-integer-currency-class-implementation/128619)

<div class="topic-metadata">

**Author:** [@pascal](https://www.ruby-forum.com/u/pascal)\
**Replies:** 7\
**Last updated:** [February 10, 2008, 7:28pm UTC](https://www.ruby-forum.com/t/inheriting-from-delegating-to-integer-currency-class-implementation/128619 "2008-02-10T19:28:45Z")

</div>

Howdy folks. I’m currently working on a Currency class which I’d like to behave exactly like Integer with some additional methods like #to\_currency and and overridden #to\_s method etc. My first approach was to inheri…

---

## [Rails 2 en Mac OS Leopard](https://www.ruby-forum.com/t/rails-2-en-mac-os-leopard/124077)

<div class="topic-metadata">

**Author:** [@emili](https://www.ruby-forum.com/u/emili)\
**Replies:** 7\
**Last updated:** [December 24, 2007, 1:13pm UTC](https://www.ruby-forum.com/t/rails-2-en-mac-os-leopard/124077 "2007-12-24T13:13:54Z")

</div>

Buenas, he estado haciendo pruebas con Rails 2 en Leopard y me ha creado el archivo database.yml para sqlite y no para mysql. Tenia entendido que la base de datos por defecte era MySQL, de hecho con la versión 1.2.6 m…

---

## ["fallback" routes](https://www.ruby-forum.com/t/fallback-routes/117650)

<div class="topic-metadata">

**Author:** [@mhfs](https://www.ruby-forum.com/u/mhfs)\
**Replies:** 1\
**Last updated:** [October 18, 2007, 11:53pm UTC](https://www.ruby-forum.com/t/fallback-routes/117650 "2007-10-18T23:53:40Z")

</div>

Hello list! Is there a way to have a “fallback” route? Like if I have one :cat,:album,:item connected to AlbumsController.show, let’s say the :cat, :album or :item were invalid so other route would try to handle it. …

---

## [Using Rails app within radiant](https://www.ruby-forum.com/t/using-rails-app-within-radiant/115701)

<div class="topic-metadata">

**Author:** [@jorge\_santiago](https://www.ruby-forum.com/u/jorge_santiago)\
**Replies:** 7\
**Last updated:** [October 2, 2007, 4:16pm UTC](https://www.ruby-forum.com/t/using-rails-app-within-radiant/115701 "2007-10-02T16:16:18Z")

</div>

Hi, I have radiant running my website and would like to use some models and functions from another rails app running in the same server. Any ideas on how to do this if its possible? Thanks in advance, jorge.

---

## [Form\_remote\_tag](https://www.ruby-forum.com/t/form-remote-tag/108682)

<div class="topic-metadata">

**Author:** [@pat](https://www.ruby-forum.com/u/pat)\
**Replies:** 7\
**Last updated:** [July 6, 2007, 7:08pm UTC](https://www.ruby-forum.com/t/form-remote-tag/108682 "2007-07-06T19:08:20Z")

</div>

I am using form\_remote\_tag as follows: \<%= form\_remote\_tag(:update =\> “sku”, :url=\>{:action =\>:generate\_skus}) %\> The problem I am having is the web page will actually change to the generate\_skus page which defeats t…

---

## [Tengo una duda al declarar la paginacion](https://www.ruby-forum.com/t/tengo-una-duda-al-declarar-la-paginacion/77326)

<div class="topic-metadata">

**Author:** [@lamacarena](https://www.ruby-forum.com/u/lamacarena)\
**Replies:** 7\
**Last updated:** [November 27, 2006, 7:15pm UTC](https://www.ruby-forum.com/t/tengo-una-duda-al-declarar-la-paginacion/77326 "2006-11-27T19:15:49Z")

</div>

tengo una duda al declarar la paginacion. estoy modificando el metodo show del scaffold para mostrar el detalle del elemento SECTOR y el la isma pagina mostrar el listado de las empresas despues de modificar la vista…

---

## [Payment integration - ePDQ and Protx](https://www.ruby-forum.com/t/payment-integration-epdq-and-protx/70739)

<div class="topic-metadata">

**Author:** [@Gareth\_A](https://www.ruby-forum.com/u/Gareth_A)\
**Replies:** 7\
**Last updated:** [October 13, 2006, 11:40pm UTC](https://www.ruby-forum.com/t/payment-integration-epdq-and-protx/70739 "2006-10-13T23:40:14Z")

</div>

Hi guys, We’re looking to set up payment integration using one of these two gateways - has anyone worked with these and has some pre-written classes/plugins for either of them? If not, has anyone worked with them a…

---

## [Futures in Ruby](https://www.ruby-forum.com/t/futures-in-ruby/51984)

<div class="topic-metadata">

**Author:** [@asetzler](https://www.ruby-forum.com/u/asetzler)\
**Replies:** 7\
**Last updated:** [January 10, 2006, 8:25pm UTC](https://www.ruby-forum.com/t/futures-in-ruby/51984 "2006-01-10T20:25:07Z")

</div>

I was looking at the Io documentation, just to see what the language looked like and saw the asynchronous support, pretty cool. Then it sort of dawned on my how Futures worked, no it isn’t all that complicated, but I…

---

## [Nginx 1.4.x file upload multipart ecoded](https://www.ruby-forum.com/t/nginx-1-4-x-file-upload-multipart-ecoded/235958)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 6\
**Last updated:** [July 26, 2013, 8:39pm UTC](https://www.ruby-forum.com/t/nginx-1-4-x-file-upload-multipart-ecoded/235958 "2013-07-26T20:39:38Z")

</div>

How I can handle multipart data uploads with the latest nginx release? The good old upload module won^t compile anymore. Posted at Nginx Forum:

---

## [Gvl改善案](https://www.ruby-forum.com/t/gvl/206594)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 6\
**Last updated:** [February 29, 2012, 10:36pm UTC](https://www.ruby-forum.com/t/gvl/206594 "2012-02-29T22:36:32Z")

</div>

$B\>.:j$G$9(B $BBg7?O"5Y$N$5$J$+!"$\_$J$5$sG!2?$\*2a$4$7$G$7$g$&$+!#$o$?$7$O855$$G$9!#$4$U$C(B $B$($C$H!“0JA0$+$i;XE&$5$l$F$$$?;v$G$9$,!“8=:\_$N(Btrunk$B$N(BGVL$B\<BAu$@$H(B1.9.2$B$h$j$b(B $B$”$k\<o$N%Y%s%A$,CY$/$J$C$F$^$9!…

---

## [Composed\_of and validations don't work due to frozen object](https://www.ruby-forum.com/t/composed-of-and-validations-dont-work-due-to-frozen-object/207931)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 6\
**Last updated:** [June 6, 2011, 9:52pm UTC](https://www.ruby-forum.com/t/composed-of-and-validations-dont-work-due-to-frozen-object/207931 "2011-06-06T21:52:49Z")

</div>

composed\_of freezes objects but if my object requires validations ie class MyObject validate do |record| if fail? record.errors.add :base, “FAIL!” end end end class Foo \< ActiveRecord::Base composed\_of :my\_objec…

---

## [Separate Log for Robot Page Access](https://www.ruby-forum.com/t/separate-log-for-robot-page-access/183021)

<div class="topic-metadata">

**Author:** [@Wohbah](https://www.ruby-forum.com/u/Wohbah)\
**Replies:** 6\
**Last updated:** [February 9, 2010, 11:26pm UTC](https://www.ruby-forum.com/t/separate-log-for-robot-page-access/183021 "2010-02-09T23:26:17Z")

</div>

To record robots in another log I have a boolean $is\_robot. The variable is set correctly. But I can’t use it. (nginx version 0.765-1) Why can I do if ( … ) { … access\_log off; … } but not if ( … ) { … access\_l…

---

## [Design Pattern](https://www.ruby-forum.com/t/design-pattern/182824)

<div class="topic-metadata">

**Author:** [@eggie5](https://www.ruby-forum.com/u/eggie5)\
**Replies:** 6\
**Last updated:** [February 3, 2010, 8:10pm UTC](https://www.ruby-forum.com/t/design-pattern/182824 "2010-02-03T20:10:14Z")

</div>

Hi, I have a collection of arbitrary objects that have a date attribute. I want to display these objects by month. For example @things=Thing.all Now I want to display in a table all the things by month - how can I d…

---

## [Can't install xmpp4r-simple](https://www.ruby-forum.com/t/cant-install-xmpp4r-simple/144002)

<div class="topic-metadata">

**Author:** [@Yin\_AnPing](https://www.ruby-forum.com/u/Yin_AnPing)\
**Replies:** 6\
**Last updated:** [July 25, 2008, 12:46am UTC](https://www.ruby-forum.com/t/cant-install-xmpp4r-simple/144002 "2008-07-25T00:46:09Z")

</div>

Hi, guys I’m already install the xmpp4r gem, but can’t install xmpp4r-simple gem, version 0.3.2. What’s wrong ? D:\\ruby-workspace\\learning\>jruby -S gem install xmpp4r-simple Building native extensions. This could t…

---

## [Updating a DB entry without having to instantiate an object](https://www.ruby-forum.com/t/updating-a-db-entry-without-having-to-instantiate-an-object/137894)

<div class="topic-metadata">

**Author:** [@fipa](https://www.ruby-forum.com/u/fipa)\
**Replies:** 6\
**Last updated:** [May 18, 2008, 4:13am UTC](https://www.ruby-forum.com/t/updating-a-db-entry-without-having-to-instantiate-an-object/137894 "2008-05-18T04:13:10Z")

</div>

Hi, I noticed that in order to use update\_attributes(), AR firsts needs to make a SELECT query to the DB to fetch the data, then AR creates an object from it, and then it issues the UPDATE statement. What I am trying…

---

## [Get updated model values in Controller](https://www.ruby-forum.com/t/get-updated-model-values-in-controller/115075)

<div class="topic-metadata">

**Author:** [@shishir\_s](https://www.ruby-forum.com/u/shishir_s)\
**Replies:** 6\
**Last updated:** [September 20, 2007, 9:37pm UTC](https://www.ruby-forum.com/t/get-updated-model-values-in-controller/115075 "2007-09-20T21:37:51Z")

</div>

Hi All, I have a model instance M1 , which has a dynamically changing instance variable say V. I want to access the value of V in my view through controller C using AJAX requests. The problem is that for every new AJ…

---

## [Rails 1.2 doesn't send POST parameters](https://www.ruby-forum.com/t/rails-1-2-doesnt-send-post-parameters/92373)

<div class="topic-metadata">

**Author:** [@Michael\_Meckler](https://www.ruby-forum.com/u/Michael_Meckler)\
**Replies:** 6\
**Last updated:** [April 20, 2007, 3:05am UTC](https://www.ruby-forum.com/t/rails-1-2-doesnt-send-post-parameters/92373 "2007-04-20T03:05:22Z")

</div>

I have a strange problem with my Rails app that I haven’t seen anyone else mention. I upgraded to rails 1.2 today (1.2.3 actually, and yes, I’ve been putting it off). When I did so all of my controllers that accept a …

---

## [NetBeans IDE 6.0](https://www.ruby-forum.com/t/netbeans-ide-6-0/88169)

<div class="topic-metadata">

**Author:** [@Arjun](https://www.ruby-forum.com/u/Arjun)\
**Replies:** 6\
**Last updated:** [March 9, 2007, 1:34pm UTC](https://www.ruby-forum.com/t/netbeans-ide-6-0/88169 "2007-03-09T13:34:55Z")

</div>

Hi there ! I came across the NetBeans IDE and also the screencasts. Here are the links for screencasts: http://blogs.sun.com/roumen/entry/two\_demos\_jruby\_on\_rails D/L Link : http://nbi.netbeans.org/m11/download.html …

---

## [Problem with session under cgi file](https://www.ruby-forum.com/t/problem-with-session-under-cgi-file/86700)

<div class="topic-metadata">

**Author:** [@dsa](https://www.ruby-forum.com/u/dsa)\
**Replies:** 6\
**Last updated:** [February 25, 2007, 4:16pm UTC](https://www.ruby-forum.com/t/problem-with-session-under-cgi-file/86700 "2007-02-25T16:16:00Z")

</div>

When i set a value in session after changing page session doesn’t remember the value. I have an example. Page: http://darksky.pl/test/index.cgi Source: http://darksky.pl/test/index.txt Don’t ask why I have to make i…

---

## [How to figure out what class a method is in for a \*class met](https://www.ruby-forum.com/t/how-to-figure-out-what-class-a-method-is-in-for-a-class-met/94108)

<div class="topic-metadata">

**Author:** [@phallstrom](https://www.ruby-forum.com/u/phallstrom)\
**Replies:** 6\
**Last updated:** [April 21, 2006, 6:46pm UTC](https://www.ruby-forum.com/t/how-to-figure-out-what-class-a-method-is-in-for-a-class-met/94108 "2006-04-21T18:46:12Z")

</div>

Hi all - Given the following bit of code, I’d like it to spit out “Cat” followed by “Dog”, but what I get now is “Object” twice. class Animal def self.what\_am\_i self.class end end class Cat \< Animal end class…

---

## [Using the access\_log if directive in 1.6.x](https://www.ruby-forum.com/t/using-the-access-log-if-directive-in-1-6-x/233408)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 3\
**Last updated:** [December 11, 2014, 7:40pm UTC](https://www.ruby-forum.com/t/using-the-access-log-if-directive-in-1-6-x/233408 "2014-12-11T19:40:33Z")

</div>

Hi, I’m using nginx 1.6.2 on Amazon ec2 linux server. The problem I’m having is that all my 404 errors are going to my access.log. I want them to be redirected to error.log instead. I saw on other forums that with n…

---

## [History of Ruby on Rails](https://www.ruby-forum.com/t/history-of-ruby-on-rails/233351)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 3\
**Last updated:** [December 8, 2014, 6:05pm UTC](https://www.ruby-forum.com/t/history-of-ruby-on-rails/233351 "2014-12-08T18:05:44Z")

</div>

Is there a descent source that details the history and development of Ruby on Rails? I’m working on a paper for school, and am having a little trouble finding such a source. thanks,

---

## [Exception handlers](https://www.ruby-forum.com/t/exception-handlers/240197)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 3\
**Last updated:** [April 28, 2014, 7:31pm UTC](https://www.ruby-forum.com/t/exception-handlers/240197 "2014-04-28T19:31:00Z")

</div>

Ciao a tutti, vorrei se possibile, un aiuto da voi riguardante la gestine delle eccezzioni in ruby, il mio quesito è come posso uscire da una serie di chimate a metodi in maniera da non eseguire il codice che viene do…

---

## [Array in disarray](https://www.ruby-forum.com/t/array-in-disarray/239548)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 3\
**Last updated:** [March 4, 2014, 3:04pm UTC](https://www.ruby-forum.com/t/array-in-disarray/239548 "2014-03-04T15:04:38Z")

</div>

Vi segnalo una curiosità in cui mi sono appena imbattuto e che potrebbe essere utile sapere. Iniziamo da questo assegnamento apparentemente innocuo. 2.1.0 :047 \> data = \[ \[\] \] \* 4 =\> \[\[\], \[\], \[\], \[\]\] 2.1.0 :048 \> da…

---

## [JRuby debug problem](https://www.ruby-forum.com/t/jruby-debug-problem/235883)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 3\
**Last updated:** [July 24, 2013, 2:34pm UTC](https://www.ruby-forum.com/t/jruby-debug-problem/235883 "2013-07-24T14:34:35Z")

</div>

I’m having a problem with the jruby debugger and SWT. The app that I’m trying to debug works fine in non-debug mode or jirb. I’m running on Windows 7 with 64-bit version of Java and JRuby. Here is the output from the …

---

## [Thread.start(variables) do question](https://www.ruby-forum.com/t/thread-start-variables-do-question/225331)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 8\
**Last updated:** [December 31, 2012, 12:27am UTC](https://www.ruby-forum.com/t/thread-start-variables-do-question/225331 "2012-12-31T00:27:31Z")

</div>

So I have been looking at some code I inherited. I see two examples of thread use in this. Wondering what the difference is. I’ve made up two examples that show this, wondering what the difference is, and why to use o…

---

## [Add virtual attribute](https://www.ruby-forum.com/t/add-virtual-attribute/210131)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 8\
**Last updated:** [August 4, 2011, 10:32am UTC](https://www.ruby-forum.com/t/add-virtual-attribute/210131 "2011-08-04T10:32:24Z")

</div>

Hi! Let’s say I have an app that handles a TODO list. The list has finished and unfinished items. Now I want to add two virtual attributes to the list object; the count of finished and unfinished items in the list. I…

---

## [Multiple server definitions with SSL](https://www.ruby-forum.com/t/multiple-server-definitions-with-ssl/209932)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 3\
**Last updated:** [July 28, 2011, 8:55am UTC](https://www.ruby-forum.com/t/multiple-server-definitions-with-ssl/209932 "2011-07-28T08:55:43Z")

</div>

We recently had a problem where we created a new server configuration (for http with and without ssl on ports 443 and 80 respectively) on a shared web server which also included a number of other nginx servers similar…

---

## [Class of the calling Object, is there someway to fetch it (from the called method)?](https://www.ruby-forum.com/t/class-of-the-calling-object-is-there-someway-to-fetch-it-from-the-called-method/185842)

<div class="topic-metadata">

**Author:** [@thunk](https://www.ruby-forum.com/u/thunk)\
**Replies:** 8\
**Last updated:** [March 27, 2010, 12:05pm UTC](https://www.ruby-forum.com/t/class-of-the-calling-object-is-there-someway-to-fetch-it-from-the-called-method/185842 "2010-03-27T12:05:31Z")

</div>

Hi again, SPECIFIC QUESTION: How can I fetch the Class name of the calling Object? (The module that contains the class of the calling Object might be useful/necessary in the future.) NOTES: I checked the ‘caller’ s…

---

## [Problema al intentar validar un usuario desde la bd](https://www.ruby-forum.com/t/problema-al-intentar-validar-un-usuario-desde-la-bd/170585)

<div class="topic-metadata">

**Author:** [@juanma](https://www.ruby-forum.com/u/juanma)\
**Replies:** 3\
**Last updated:** [June 19, 2009, 1:23pm UTC](https://www.ruby-forum.com/t/problema-al-intentar-validar-un-usuario-desde-la-bd/170585 "2009-06-19T13:23:56Z")

</div>

Hola a todos. Estoy aprendiendo rails y como primer ejercicio estoy tratando de hacer un sistema de gestiÃ³n de usuarios sencillo, login, log out y esas cosas. Mi primer “gran” problema es el siguiente: He conseguido…

---

## [Why is require 'rubygems' sometimes needed?](https://www.ruby-forum.com/t/why-is-require-rubygems-sometimes-needed/169475)

<div class="topic-metadata">

**Author:** [@leveille](https://www.ruby-forum.com/u/leveille)\
**Replies:** 8\
**Last updated:** [June 5, 2009, 12:53am UTC](https://www.ruby-forum.com/t/why-is-require-rubygems-sometimes-needed/169475 "2009-06-05T00:53:39Z")

</div>

I noticed that some libraries (such as wx or gnuplot) need to have require ‘rubygems’ before the require of the actual library of interest. But some other libraries (such as gsl) do not require this. Can someone expla…

---

## [Uninitialized constant ActionController running Cucumber features in Aptana/RadRails IDE](https://www.ruby-forum.com/t/uninitialized-constant-actioncontroller-running-cucumber-features-in-aptana-radrails-ide/166609)

<div class="topic-metadata">

**Author:** [@wjsimacek](https://www.ruby-forum.com/u/wjsimacek)\
**Replies:** 3\
**Last updated:** [April 29, 2009, 12:56pm UTC](https://www.ruby-forum.com/t/uninitialized-constant-actioncontroller-running-cucumber-features-in-aptana-radrails-ide/166609 "2009-04-29T12:56:58Z")

</div>

I’m just starting on BDD. I installed the gems for webrats and cucumber. I also ran the following in the Ruby shell: rake gems:install RAILS\_EN=test script/generate cucumber These commands seemed to create the exp…

---

## [ActiveRecord::Migrator, method get\_all\_versions & hard-coded SQL](https://www.ruby-forum.com/t/activerecord-migrator-method-get-all-versions-hard-coded-sql/162892)

<div class="topic-metadata">

**Author:** [@Mathias](https://www.ruby-forum.com/u/Mathias)\
**Replies:** 3\
**Last updated:** [March 15, 2009, 12:38pm UTC](https://www.ruby-forum.com/t/activerecord-migrator-method-get-all-versions-hard-coded-sql/162892 "2009-03-15T12:38:04Z")

</div>

Hello Folks! I only recently started to use Ruby on Rails coming from Delphi, which is why I am quite happy with using InterBase as my database. 3rdRail does come with an InterBase adapter but I could not run migratio…

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

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