title: ruby on rails reuse a view
body: <p>I have a "recipes" table and an "ingredients" table. Each recipe "has_and_belong_to_many" ingredients and each ingredient "has_and_belong_to_many" recipes.</p>
  
  <p>I want to add a link to the ingredient page: "show all recipes which contain this ingredient".</p>
  
  <p>I wrote the following code in my ingredient controller:</p>
  
  <pre><code>def recipes
      @ingredient = Ingredient.find(params[:id])
      @recipes = @ingredient.recipes
      respond_to do |format|
         format.html # index.html.erb
         format.json { render json: @recipes }
      end
  end
  </code></pre>
  
  <p>My problem is that now it expects me to have a "recipes.html.erb" file under the "ingredients" view. 
  I don't want to create a new view for this, I just want to use the same code I use in the "recipes" view (recipes/index.html.erb). 
  How can I direct rails to this view?</p>
  
  <p>(I'm using rails 3.x)</p>
  
  <p>Thanks,
  Li</p>