Friday, June 6th, 2008 10:29 PM
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
No Comments »
Friday, December 14th, 2007 10:43 PM
This will let you run a linux command based on the success of anther command. Note: This will only work in bash shell.
ruby Create_PDF.rb && if [ $? == 0 ]; then kpdf report.pdf; fi
No Comments »
Monday, December 3rd, 2007 11:26 PM
This will let you find whether a variable is defined in ruby.
if(defined? var_name) then
print var_name + " is set"
end
No Comments »
Thursday, November 1st, 2007 11:06 PM
Use this command to install a ruby gem in Linux - you must be connected to the net
sudo gem install ruport -y
No Comments »