Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialcarl wilson
1,167 Pointshow do I set up the "ap" method used in this tutorial?
how do I set up the ap method
2 Answers
Geoff Parsons
11,679 Pointsap
is part of the awesome_print library. You'll need to install the gem inorder to use it. If you're using bundler you can add the following to your Gemfile:
gem 'awesome_print', '~> 1.2.0'
Otherwise just gem install awesome_print
. If you installed without bundler you'll need to require it before using as well:
require 'rubygems'
require 'awesome_print'
carl wilson
1,167 PointsDoes it work in workspaces?
Thanks for the help as well!