Personal tools

Difference between revisions of "Rails"

From MohidWiki

Jump to: navigation, search
 
m (1 revision)
 
(No difference)

Latest revision as of 11:39, 3 December 2008

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