Personal tools

Rails

From MohidWiki

Revision as of 15:27, 4 September 2008 by 192.168.20.177 (talk)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Rails or Ruby on Rails is a web-development framework in ruby that uses the model-view-controller (MVC) pattern.

Install

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!

See also

External links