Pass locals to partial Rails code example Example: how to pass locals in rails partial <%= render 'post', post: post %>