Skip to content

Instantly share code, notes, and snippets.

@foliea
Created July 24, 2014 14:45
Show Gist options
  • Save foliea/361e68197357a2c0911d to your computer and use it in GitHub Desktop.
Save foliea/361e68197357a2c0911d to your computer and use it in GitHub Desktop.
match 'grounds/', to: 'grounds#run', as: 'grounds_run', via: :put
match 'grounds/:theme', to: 'grounds#switch_editor_theme', as: 'grounds_switch_editor_theme', via: :patch
Prefix Verb URI Pattern Controller#Action
root GET / grounds#show
grounds_run PUT /grounds(.:format) grounds#run
grounds_switch_editor_theme PATCH /grounds/:theme(.:format) grounds#switch_editor_theme
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment