title: link_to action "show" to another controller
body: <ul>
  <li>ruby 1.9.2p290</li>
  <li>rails 3.1.1</li>
  </ul>
  
  <p>Basically I have two models: CHEFS and RECIPES.</p>
  
  <pre><code>class Chef &lt; ActiveRecord::Base 
   has_many :recipes
  end
  
  class Recipe &lt; ActiveRecord::Base
   belongs_to :chef
  end
  </code></pre>
  
  <p>And the following routes:</p>
  
  <pre><code>resources :recipes
  
  resources :chefs do
   # list of recipes from chef
   resources :recipes, :to =&gt; 'recipes#index_chef'
  end
  </code></pre>
  
  <p>With this I have the urls (exactly what I want):</p>
  
  <ul>
  <li>/recipes <em>- list of recipes</em> </li>
  <li>/chefs/username/recipes <em>- list of chef's recipes</em> </li>
  <li>/chefs/ <em>- list of chefs</em></li>
  <li>/chefs/username <em>- chef's profile</em></li>
  </ul>
  
  <p><strong>RecipesController:</strong></p>
  
  <pre><code>def index
   @chef = Chef.find_by_username(params[:chef_id])
   @recipes = Recipe.where({ :status_id =&gt; 1 }).order("id desc").page(params[:page]).per(9)
  end
  
  def index_chef
    @chef = Chef.find_by_username(params[:chef_id])
    @recipes = @chef.recipes.where(:status_id =&gt; 1).order("id desc").page(params[:page]).per(9)
  end
  </code></pre>
  
  <p>My recipes <strong>index</strong> view:</p>
  
  <pre><code>&lt;%= link_to recipe.chef.username.capitalize, @chef %&gt;
  </code></pre>
  
  <p>In <a href="http://3001/chefs/username/recipes" rel="nofollow">http://3001/chefs/username/recipes</a> I have the correct link to Chef profile.</p>
  
  <p>But in <a href="http://3001/recipes" rel="nofollow">http://3001/recipes</a> I have the wrong link.</p>
  
  <p>What am I doing wrong?</p>