Second go at making work with rails 4