Rails interface for Casper.js