title: When a model uses `:has_many` and nested routes, whats the resulting path?
body: <p><strong>Foreword</strong> (because it is my first rails post)
  I love rails but currently it drives me crazy!
  I played around with rails 2.3 two years ago. Now I started with rails 3.1. All just for fun. Rails is the best and most professional I've ever seen in web development.
  But... Since one line of code has so much power it is pretty hard to learn it!!!
  The rail magic is hard to get :-)</p>
  
  <p><strong>Problem</strong>
  I've got a nested models and routs. One page has_many articles.
  I render pages/show.html.haml and in the page I list all articles. Each article shall have buttom underneath to 'new','edit' and 'destroy'.</p>
  
  <pre><code>render @articles
  </code></pre>
  
  <p>Here is my views/articles/_article.html.haml</p>
  
  <pre><code>%li.article_list{:id=&gt;"a#{article.id}"}
      .article
          .article_head
              %h2
                  =article.title:class =&gt; "icon"), '#'
          .clear
          .article_content
              = raw parse_content(article.content)
              -if admin?
                  #article_menu
                      %ul
                          %li= link_to icon_new     + 'New...', new_page_article_path(@page)
                          %li=# link_to icon_edit    + 'Edit', edit_page_article_path(WHAT SHALL BE IN HERE???)
                          %li= link_to icon_destroy + 'Destroy', [article.page, article], :confirm =&gt; "#{article.title}\n\nAre you sure?", :method =&gt; :delete
  </code></pre>
  
  <p><strong>My problem is this line</strong></p>
  
  <pre><code>%li=# link_to icon_edit    + 'Edit', edit_page_article_path(WHAT SHALL BE IN HERE???)
  </code></pre>
  
  <p>I want to edit the article but I don't get the clue how to! I've tried and googled for hours!</p>
  
  <p>In general I've been following this nice guide: <a href="http://guides.rubyonrails.org/getting_started.html#associating-models" rel="nofollow">http://guides.rubyonrails.org/getting_started.html#associating-models</a></p>
  
  <hr>
  
  <p><strong>Additional information</strong></p>
  
  <p>models/article.rb</p>
  
  <pre><code>    class Article &lt; ActiveRecord::Base
        attr_accessible :title, :content, :publish_at, :fan_only
  
        belongs_to :page
  
        validates :content, :presence =&gt; true
        validates :page_id, :presence =&gt; true
  
        default_scope :order =&gt; 'articles.created_at DESC'
      end
  </code></pre>
  
  <p>models/page.rb</p>
  
  <pre><code>   class Page &lt; ActiveRecord::Base
        attr_accessible :short_name, :title, :content, :fan_only
  
        has_many :articles, :dependent =&gt; :destroy
      end
  </code></pre>
  
  <p>routes.rb</p>
  
  <pre><code>  resources :pages do
      resources :articles
    end
  </code></pre>
  
  <p>part of the articles_controller.rb</p>
  
  <pre><code>  # GET /articles/1/edit
    def edit
      @page = Page.find(params[:page_id])
      @article = @page.articles.find(params[:id])
    end
  </code></pre>