modifying invitations controller (halfway thru railscast)