changed Resources model to include require 'carrierwave/orm/activerecord'