title: Can't figure out how Rails route helper should look
body: <p>I am working on an assignment which includes adding a feature to Typo.</p>
  
  <p><code>rake routes</code> shows:</p>
  
  <pre><code>admin_content    /admin/content                     {:controller=&gt;"admin/content", :action=&gt;"index"}
                   /admin/content(/:action(/:id))     {:action=&gt;nil, :id=&gt;nil, :controller=&gt;"admin/content"}
  </code></pre>
  
  <p>I need to create a route helper which matches the following RESTful route: <code>/admin/content/edit/:id</code> and an example of url is <code>/admin/content/edit/1</code></p>
  
  <p>But I can't figure out how to do it. I tried something like <code>admin_content_path(edit,some_article)</code> but it didn't work. (some_article is just an article object)</p>
  
  <p>In <code>routes.rb</code> file:</p>
  
  <pre><code># some other code
  
  # Admin/XController
  %w{advanced cache categories comments content profiles feedback general pages
   resources sidebar textfilters themes trackbacks users settings tags redirects seo post_types }.each do |i|
  match "/admin/#{i}", :to =&gt; "admin/#{i}#index", :format =&gt; false
  match "/admin/#{i}(/:action(/:id))", :to =&gt; "admin/#{i}", :action =&gt; nil, :id =&gt; nil, :format =&gt; false
  end
  
  #some other code
  </code></pre>
  
  <p>Thanks a lot for your help!</p>