`locals: {object: @page}` can be rewritten as `render partial: '...', object: @page`, I think.