Tell Ruby Program to Wait some amount of time?

How do you tell a Ruby program to wait an arbitrary amount of time before moving on to the next line of code? ...

How do you round a float to two decimal places in jruby?

JRuby 1.6.x. How do you round a float to decimal places in jruby. number = 1.1164 number.round(2) The above shows...

Ruby array to string conversion?

I have a ruby array like ['12','34','35','231']. I want to convert it to a string like '12','34','35','231'. How c...

How do I turn on SQL debug logging for ActiveRecord in RSpec tests??

I have some RSpec tests for my models and I would like to turn on SQL ActiveRecord logging just like I see in the Ra...

gem install rails does not install rails?

When I tries to install rails: [email protected]:/# gem install rails Successfully installed rails-3.2.1 1 gem installed...

Creating a class dynamically?

I'm trying to create a new class, without knowing the name of the class until it's supposed to på created. Somethi...

Array TypeError: can't convert Fixnum into String?

I am experimenting with arrays, and am reading the book "Beginning Ruby on Rails" by Steve Holzner. I made the progr...

How do I get the name of a Ruby class??

How can I get the class name from an ActiveRecord object? I have: result = User.find(1) I tried: result.class #...

How to get request referer path??

I need the path of the referrer. I don't want the domain name. For example, if the referrer is http://www.google.com...