<< home

Ruby on Rails Workshop (for beginners): Intro

Ruby on Rails Workshop: Setting up your dev environment >>


Intro

Rails is a web application framework running on the Ruby programming language.

Read more at http://rubyonrails.org/

top

Model, View and Controller

MVC in Ruby on Rails

Font: http://betterexplained.com

top

Routes

The Rails router recognizes URLs and dispatches them to a controller’s action. It can also generate paths and URLs, avoiding the need to hardcode strings in your views.

The web server receives the request. It uses routes to find out which controller to use: the default route pattern is "/controller/action/id" as defined in config/routes.rb. The web server then uses the dispatcher to create a new controller, call the action and pass the parameters.

Read more at http://rvm.io

top

RVM (Ruby Version Manager)

RVM is a command-line tool which allows you to easily install, manage, and work with multiple ruby environments from interpreters to sets of gems.

Read more at http://rvm.io

top

Gems

Rails is a Gem. Gems are libraries written in Ruby. You will also hear about RubyGems: packaging system designed to facilitate the creation, sharing and installation of libraries

Read more at https://www.ruby-lang.org/en/libraries/ and http://rubygems.org/

Bundler

Bundler manages the gems of your project. It is the default gem manager for Rails 3.

Read more at http://bundler.io/

top

Rake

Rake is Ruby Make, a standalone Ruby utility that replaces the Unix utility "make", and uses a "Rakefile" and .rake files to build up a list of tasks. In Rails, Rake is used for common administration tasks, especially sophisticated ones that build off of each other.

Read more at http://rake.rubyforge.org/

top

top