Posts tagged rails
How to use sshkit in vanilla Ruby (without Rails)
require 'rake'
require 'sshkit'
require 'sshkit/dsl'
# your code goes here
Should I use Turbolinks in Rails?
No.
(Don’t believe me? Google it.)
How to make a ruby file executable
In the ruby file:
#!/usr/bin/env ruby
puts 'Hello world'
At the command line:
chmod +x ruby.rb
Then you can execute it like this:
./ruby.rb