e-dwar / railstut

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Whatis it?

http://guides.rubyonrails.org/getting_started.html.

Vocabulary

Exotic terms found along the road:

  • Action: A method that processes a URL.
  • Controller: A collection of actions.
  • Migration: A class for table creation and updates.
  • Rake: make for Ruby (Ruby Make). More.
  • Resource: A collection of similar objects. More.

Resource. This term is not well defined in this tutorial. It could be confused with a model, however, it's a bit more than a model. As far as I understand, a resource acts as a middleman between a model and the corresponding routes, while a model is only meant to deal with the data. Furthermore, the resource routing system is shipped with a REST API generator, and provides a convenient set of methods to interact with routes.

For Linux users

Required

$ sudo apt-get install ruby-dev
$ sudo gem install rails -V --no-ri --no-rdoc
$ sudo apt-get install libsqlite3-dev

Tips

Mute rails server:

$ bin/rails server &> /dev/null &
[1] 16854

Stop rails server:

$ fg 1
bin/rails server &> /dev/null
^C

Or:

$ kill -9 16854

About


Languages

Language:Ruby 72.4%Language:HTML 21.1%Language:CSS 3.3%Language:JavaScript 2.0%Language:CoffeeScript 1.3%