Ruby on Rails Beginner Adventures: Simple Blog Application

13 min readSep 3, 2017

Coding Bootcamp Week 3: ALPHA Camp (Singapore)

Previous: Week 1 And Week 2
This week, we started learning Ruby on Rails!

Mission ahead: Learning Ruby on Rails (RoR).

I was initally unclear about the basic definitions so let define it here.

Ruby is a programming language whereas Rails is a gem, or a Ruby library. Specifically, Rails is a web framework that helps make web applications by providing classes for saving to the database, handling URLs and displaying HTML (along with a webserver, maintenance tasks, a debugging console and much more).

So, Ruby on Rails = using Ruby language on the Rails framework.

The Rails philosophy includes 2 guiding principles:

  • Don’t Repeat Yourself (DRY): By not writing the same information over and over again, code is more maintainable, more extensible, and less buggy.
DRY: Don’t repeat yourself.
  • Convention Over Configuration (COC): Rails has opinions about the best way to do many things in a web application, and defaults to this set of conventions. Hence it has many sensible defaults and this speeds development. e.g. Plural naming for the…