Skip to content

Instantly share code, notes, and snippets.

@misho-kr
Last active December 3, 2015 07:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save misho-kr/2157dc4f27f80324926b to your computer and use it in GitHub Desktop.
Save misho-kr/2157dc4f27f80324926b to your computer and use it in GitHub Desktop.
Summary of "Ruby on Rails: An Introduction" online course at Coursera.Org

Ruby on Rails: An Introduction

By the time you finish this course, you’ll be able to establish a development environment to code and execute Ruby and Rails code, create Ruby programs utilizing proper flow of control structures, implement a basic Rails application that consumes external JSON API, and build a functional web application and deploy it to the “cloud” using a Heroku PaaS (Platform as a Service).

Week 1

In this module, we will install software required to develop Ruby on Rails applications. We will finish the module by familiarizing ourselves with a version control system called “Git”.

Slides and Installation Instructions

  • Introduction to Git
  • Ruby on Rails installation

Resources

Week 2

In this module, we will explore the different areas of the Ruby programming language.

We will start with the basics and continue with more advanced topics, such as arrays and hashes. We will also spend time exploring object oriented programming in Ruby, and finish the module by demonstrating how to perform unit testing.

Slides

  • Interactive ruby -- irb
  • Ruby language overview
  • Unit testing, rspec and rspec matchers

Recommended Readings

Eloquent Ruby, Programming Ruby, Beginning Ruby

Week 3

In this module, we will become familiar with core concepts behind Ruby on Rails, such as CoC (Convention Over Configuration) and MVC (Model-View-Controller).

We will then learn about consuming JSON API with HTTParty, a Ruby gem. We will then integrate this ability to consume JSON API to serve as the data layer for our Rails application.

Slides

  • Reasons to use Rails -- Convention-Over-Configuration, database abstraction layer, moduler, agile, DRY-principle, etc.
  • Model-View-Controller design
  • Create new app -- rails new <app-name>
  • Start server -- rails s
  • Generate controller -- rails g controller <controller-name> [action1 action2]
  • When adding action manually, must update the routes in config/routes.rb
  • Rake -- Ruby's make
  • If the is route and template, there is no need to explicitly defined action
  • Rsils helpers -- macros, formatters for the views
  • Ruby gems and bundler
  • RESTful services, httparty gem
  • Page styling with CSS
  • Deploying Ruby application to Heroku

Recommended Readings

Agile Web Development with Rails 4 Ruby on Rails Tutorial

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment