updates for using partials and rails resources