updated for p353 and rails 4.0.1 with gems from book