Intro to Ruby and Ruby on Rails POW WOW
This Girl Develop It Course takes Intro to Ruby and Intro to Rails (both of which are 2-day courses each) and condenses them into one 2-day course.
Click here for the class outline.
Day 1: Intro to Ruby
The purpose of day 1 is to get students familiar with Ruby basics by writing small programs. The format today is slides, demos, then hands-on time.
Topics covered:
- strings
- integers
- puts / prints
- looping
- arrays
- hashes
- classes
- inheritance
Tools used: repl.it online Ruby repl.
Day 2: Intro to Rails
Day 2 is a more hands on day with the teacher showing how Rails works and having the students follow along with each step. This day relies more heaviliy on class notes than slides as the teacher and students build a simple Twitter clone together.
Topics covered:
- installing Rails
- MVC basics
- setting up your db (postgres)
- generating and running migrations
- routing
- models
- controllers
- views
Tools used: Cloud9 cloud-based Rails development environment. This was chosen to ensure everyone was on the same environment (Mac and PC). Alternatively, students can develop locally if they want to install Ruby and Rails on their machine.