Tag Archives: Ruby on Rails
How to install Ruby & Ruby on Rails (RoR) on Centos
Posted on 31. Oct, 2009 by forouzani.
To install Ruby and Ruby on Rails on Centos 5, first, we need to add the rubyworks repository to Yum.
Create this file:
# vi /etc/yum.repos.d/rubyworks.repo
And paste this text into it:
# Link file for RubyWorks yum repository
[rubyworks]
name=RubyWorks
baseurl=http://rubyworks.rubyforge.org/redhat/$releasever/RPMS/$basearch
enabled=1
gpgcheck=1
gpgkey=http://rubyworks.rubyforge.org/RubyWorks.GPG.key
priority=1
Now that Yum is setup, we can install Ruby on Rails 2.2.2
# yum install ruby ruby-devel ruby-libs ruby-irb ruby-rdoc ruby-mysql
We also [...]
Continue Reading
The perfect web application framework
Posted on 17. Nov, 2008 by forouzani.
When talking about frameworks such as Ruby on Rails or Symfony, it is often expected that the framework should solve all your problems out of the box. Unfortunately, this is almost never the case. If it were as black and white as this, most web developers would not currently have their job. The issue is [...]
Continue Reading
Derek Silvers – unafraid to tell the truth
Posted on 25. Sep, 2007 by forouzani.
The rails community has been in flamewar shock over the past few days. One of the Ruby on Rails ‘icons’ – CDbaby – has turned around and given rails a major slap in the face. I have nothing more than respect for Derek. That doesn’t mean I agree with his conclusions, but in a time [...]
Continue Reading
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 [...]


