Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Quick Dive into Ruby on Rails

Quick Dive into Ruby on Rails

We'll be taking a quick tour of Ruby on Rails, the popular web development framework. We'll see why Rails is special, how you can get started and some information about debugging, unit testing and acceptance testing.

Topics Covered:

A tour through `rails new`
Ruby Gems and Bundler
Rails Apps and Rails Composer
Generating a scaffold
Generating a migration
Virtual Attributes
AJAX Support
Debugging with Pry
Unit Testing with RSpec
Feature Testing with Capybara

Cairo Tech Club

January 19, 2013
Tweet

More Decks by Cairo Tech Club

Other Decks in Technology

Transcript

  1. Agenda  A Tour Through `rails new`  Ruby Gems

    and Bundler  Samples, Tutorials, and a Toolbox  Quick Dive: A Practical Tour
  2. Installation  Ruby Installer for Windows  RVM (Ruby Version

    Manager)  Installing required packages  Installing Ruby and Rails
  3. A tour through `rails new`  Creating a sample application

     Dissecting the output of `rails new`  Directory structure  Gem file  Git support  Configuration files  Database files  Test files
  4. Ruby Gems and Bundler  What is a gem? 

    A deeper look into the Gemfile  Gemfile options and version operators  A quick look at a gem’s source code  The role of bundler  `bundle update`  `bundle show`
  5. Quick Dive: a practical tour  New app with Rails

    Composer  Dissecting the composed app  Generating a scaffold  Generating a migration  Virtual attributes  AJAX support  Debugging with Pry  Unit Testing with RSpec  Feature Testing with Capybara
  6. Resources  RubyGems: http://rubygems.org/  Bundler: http://gembundler.com/  RubyInstaller for

    Windows: http://rubyinstaller.org/  RailsCasts: http://railscasts.com/  The RailsApps Project: http://railsapps.github.com/  Rails Composer: http://railsapps.github.com/rails-composer/  The Ruby Toolbox: https://www.ruby-toolbox.com/  Ruby on Rails Course: https://github.com/generalassembly/ga-ruby-on-rails-for-devs