Skip to content

Instantly share code, notes, and snippets.

@ariejan
Created May 22, 2009 12:06
Show Gist options
  • Save ariejan/116081 to your computer and use it in GitHub Desktop.
Save ariejan/116081 to your computer and use it in GitHub Desktop.
Second line in view:
Expected: /artikelen/frontpage/123
Got: /articles/123?section_slug=frontpage
map.sectioned_articles '/artikelen/:section_slug', :controller => 'articles', :action => 'index'
map.sectioned_article '/artikelen/:section_slug/:id', :controller => 'articles', :action => 'show'
<%= link_to "Frontpage", sectioned_articles_url(:section_slug => 'frontpage') %>
<%= link_to article.title, sectioned_article_url(:section_slug => @slug, :id => article.to_param) %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment