Firstly, as always, there is a fantastic Railscast by Ryan Bates which explains Prawn perfectly. Having said that, there are a few things that it doesn’t mention that you need to do in order to use prawn in Rails 3. The path to getting this working is as follows;
#First install prawn on your system (lose the sudo if you're running under RVM) sudo gem install prawn #install the prawnto plugin rails plugin install https://github.com/prior/prawnto.git #add prawn to your Gemfile gem "prawn"
After this, you should be able to do everything Ryan does in his railscast 🙂