Ruby

Opening up Hashes with a Key

In Ruby, Hashes are a very powerful class that can store a key value pair...

Jun 20, 2014 on Ruby  3

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...

Jun 23, 2014 on Ruby Computerscience  0

When in Doubt, Restart Your Server

This line of advice should always come in handy when working with Sinatra...

Jun 25, 2014 on Ruby Sinatra  0

Database Control in Ruby

Active Record is the preferred method of interacting with a database...

Jun 26, 2014 on Ruby ActiveRecord  1

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...

Jun 27, 2014 on Ruby Web Sinatra  1

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...

Jun 30, 2014 on Ruby Sinatra Game  0

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...

Jul 01, 2014 on Rails Ruby MVC  0

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...

Jul 02, 2014 on Rails Ruby ActiveRecord  0

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...

Jul 03, 2014 on Rails Ruby CleanCode  0

Cookie Monster Would Not Be Impressed By These Cookies

In every Internet Browser, there are what are called cookies...

Jul 07, 2014 on Rails Ruby Web  1