Ruby
Opening up Hashes with a Key
In Ruby, Hashes are a very powerful class that can store a key value pair...
Recursion != Loop
I used to think that this statement would evaluate to true, until very recently, which is the reason for this blog post, and hopefully this will help those w...
When in Doubt, Restart Your Server
This line of advice should always come in handy when working with Sinatra...
Database Control in Ruby
Active Record is the preferred method of interacting with a database...
HTTP Requests in Sinatra
In HTTP, there are four common request actions that are used by servers, GET, POST, PUT, and DELETE. This maps to CRUD, Create, Read, Update, and Delete...
Designing a Flash Card App in Sinatra
During the first week of Metis, we were tasked to build a flash card game playable from the command line...
MVC...R?
Ruby on Rails follows the popular Model, View, Controller paradigm. One thing of note about this is Rails’s separation of the routes from the controller...
Nested Resources on Rails
There are a few key things you must remember when working with nested resources in Ruby on Rails. The first thing to do is edit your routes file...
Yo Dawg, I Heard You Like Partials So I Put a Partial In Your Partial So You Can Refactor While You Refactor.
One of the founding principles of Ruby on Rails is "Don't Repeat Yourself", or DRY...
Cookie Monster Would Not Be Impressed By These Cookies
In every Internet Browser, there are what are called cookies...