Following Pragmatic Rails4 book