Skip to content

Instantly share code, notes, and snippets.

@ni-ka
Created December 16, 2011 17:03
Show Gist options
  • Save ni-ka/1486906 to your computer and use it in GitHub Desktop.
Save ni-ka/1486906 to your computer and use it in GitHub Desktop.
home_index GET /home/index(.:format) {:controller=>"home", :action=>"index"}
videos /videos(.:format) {:controller=>"videos", :action=>"index"}
videos_add /videos/add(.:format) {:controller=>"videos", :action=>"add"}
videos_add_url /videos/add/url(.:format) {:controller=>"videos", :action=>"add_from_url"}
/videos/:id(.:format) {:controller=>"videos", :action=>"show"}
root / {:controller=>"home", :action=>"index"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment