You need to have ruby and gems installed. Sqlite is also recommended.
> sudo yum install sqlite3 sqlite3-devel > sudo gem install rails
Your first rails app
> rails mywebapp > cd mywebapp > script/controller welcome hello edit, then save, the mywebapp/app/views/welcome/hello.html.erb ... > script/server
Open up in your browser http://localhost:3000/welcome/hello. That's it!