render partial view without controller ruby on rails code example Example: rails render partial <%= render 'partials/foo', comments: @comments %>