Never been to TextSnippets before?

Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world (or not, you can keep them private!)

About this user

« Newer Snippets
Older Snippets »
1 total  XML / RSS feed 

Manually adding REST route

This named route handles urls such as: http://www.mysite.com/tags/wicked
which would route to controller => 'tags', :tag => 'wicked'
while creating named routes tag_path and tag_url.
The singular naming method keeps inline with REST conventions in Rails.
map.tag 'tags/:tag', :controller => 'tags', :action => 'show', :conditions => {:method => :get}
« Newer Snippets
Older Snippets »
1 total  XML / RSS feed