Usually you place a call to display a partial in the view for this action. If you have a view used by more than one, the standard procedure is the same as you describe, where @conditions represents some arbitrary conditions. It could be like this:
<%= render(:partial => 'example') if (params[:action] == 'edit') %>
source share