Added some specs based on RailsCasts episode 275