working on getting this working with rails 4, seems to be working locally