Archive for the 'Ruby' Category

Installing Rails

You can install Rails in a Fedora system with these commands…


yum -y install ruby ruby-devel ruby-irb ruby-libs ruby-rdoc ruby-ri rubygems
sudo gem update
sudo gem install rails --include-dependencies

Find if a Variable is Defined in Ruby

This will let you find whether a variable is defined in ruby.


if(defined? var_name) then
    print var_name + " is set"
end

Installing a Ruby Gem

Use this command to install a ruby gem in Linux - you must be connected to the net


sudo gem install ruport -y