Skip to content

Instantly share code, notes, and snippets.

@jmhodges
Created January 29, 2009 19:58
Show Gist options
  • Save jmhodges/54709 to your computer and use it in GitHub Desktop.
Save jmhodges/54709 to your computer and use it in GitHub Desktop.
resources(:runs, :member => { :random => :get }, :identify => :escaped_name) do |run|
authenticate do
run.match('/pages/:page').to(:controller => :run_pages, :action => 'show').name(:page)
run.match('/pages/:page/save', :method => :post).to(:controller => :run_pages, :action => :save).name(:page_save)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment