Configured model/controller relationships. Fixed issue with rails 4 and associations