rails 4 compatible routing

apotomo seems to work with rails 4, please use this small change.