access data in partial rails code example Example: rails render partial <%= render 'partials/foo', comments: @comments %>