Introduction to Rails

745 views
698 views

Published on

Slides for the presentation given at Kings of Code 2009

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
745
On SlideShare
0
From Embeds
0
Number of Embeds
5
Actions
Shares
0
Downloads
5
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Introduction to Rails

  1. 1. Introduction to Ruby on Rails by Menno van der Sman & Justin Halsall
  2. 2. Agenda • History • Unique Selling Points • Key Components • Building an application
  3. 3. History • Created by David Heinemeier Hansson in 2003 • Extracted from Basecamp • Since extended by an active community and contributors
  4. 4. Unique Selling Points • Ruby • Expressive code, shorter development time • Good ecosystem • Convention over Configuration • Stick to the Railsway • Best practices • MVC, DRY, TDD,REST
  5. 5. Key Components • ActiveRecord • ActionPack • ActiveSupport • Plugins & Gems
  6. 6. ActiveRecord • Maps table to Model • Migrations • Provides CRUD • Finders • Database agnostic
  7. 7. ActionPack • Controllers • extends ActionController • Actions • Public method of controller • Routing • Mapping URL to controller/action • Rendering
  8. 8. ActiveSupport • Time & Dates • Serialization • Inflector • Core Extensions
  9. 9. Plugins & Gems • Gem package system • Rails plugins • Github & Rubyforge
  10. 10. Building an Application • Setup your project • Generate resources • Customize • Install plugins
  11. 11. Grab the Code at: http://github.com/menno/koc_tutorial

×