Archive for 'Ruby'
Compiling and Installing Ruby and Rails on Ubuntu/Debian
Posted on 04. Feb, 2007 by forouzani.
The following will install the latest versions of Ruby, Rails and Mongrel on a Ubuntu machine:
# sudo apt-get install build-essential libreadline5-dev zlib1g-dev libncurses5-dev
# wget ftp://ftp.ruby-lang.org/pub/ruby/ruby-1.8.6.tar.gz (stable ruby)
# wget http://rubyforge.org/frs/download.php/11289/rubygems-0.9.4.tgz
# tar -xzf ruby-1.8.6.tar.gz
# cd ruby-1.8.6
# vim ext/Setup
Uncomment the entries for readline and zlib – save changes and exit
# ./configure –prefix=/usr (we want to install in /usr/bin [...]
Continue Reading
Rails Rules and Conventions
Posted on 12. Nov, 2006 by forouzani.
The following are the main naming conventions used in Rails. Remember, you can change all of these if you wish, but theres no need to be a hero – you can save all the other developers time and headache by just sticking to the conventions.
name database tables in the plural (e.g. users not user)
database table [...]


