Created
May 22, 2009 12:06
-
-
Save ariejan/116081 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Second line in view: | |
Expected: /artikelen/frontpage/123 | |
Got: /articles/123?section_slug=frontpage |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
map.sectioned_articles '/artikelen/:section_slug', :controller => 'articles', :action => 'index' | |
map.sectioned_article '/artikelen/:section_slug/:id', :controller => 'articles', :action => 'show' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<%= 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