ariejan (owner)

Revisions

gist: 116081 Download_button fork
public
Public Clone URL: git://gist.github.com/116081.git
Embed All Files: show embed
routes.rb #
1
2
  map.sectioned_articles '/artikelen/:section_slug', :controller => 'articles', :action => 'index'
  map.sectioned_article '/artikelen/:section_slug/:id', :controller => 'articles', :action => 'show'
view.html.erb #
1
2
<%= link_to "Frontpage", sectioned_articles_url(:section_slug => 'frontpage') %>
<%= link_to article.title, sectioned_article_url(:section_slug => @slug, :id => article.to_param) %>
Text only #
1
2
3
4
Second line in view:
 
Expected: /artikelen/frontpage/123
Got: /articles/123?section_slug=frontpage