Run rails code online

ruby-on-rails, ruby-on-rails-3, ruby-on-rails-3.1, ruby-on-rails-3.2

Solution

The `hours` function is specific to Rails, which is a Ruby library. Rails is not loaded in CodePad. You'll have to install Rails on your computer to access those functions. Consult a guide for instructions. 1

Problem

Can any body give me a link to run rails code online?? I have tried codepad.org and tryruby.org they are running the ruby code fine When I use `Time.now` it gives me correct result but when I try to run like below it give me errors: `time_ago_in_words(Time.now - 15.hours)` Thanks

Original source