Don't miss

I created an open source development tool to quickly & dynamically mock API endpoints. Check it out at GitHub: DuckRails

Heads up

I will no longer maintain arubystory. For new posts, find me at my personal blog. CU there!

Sunday, February 22, 2015

Creating the Hangman game

In this tutorial we are going to create Hangman, a simple game in which the players try to find a word that our application chooses, by selecting letters.

We will use:

Rails (version 4): you know what this is otherwise you are in the wrong place
Foundation: for the looks & feels
Font Awesome: for icons

Saturday, February 14, 2015

Radio buttons & required boolean attributes

Lately, I was trying to create a form for one of my models which had a required boolean attribute.

The model

class Foo < ActiveRecord::Base

  validates_presence_of :a_flag