Personal tools


From MohidWiki

Jump to: navigation, search

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


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