Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- name = '([\w\-\_\.\+\@]+)'
- path '/{model}', :named => :all, :method => :get, :action => all_and_list
- path '/{model}/{name}', :named => :get, :action => find_and_show,
- :method => :get, :match => { :name => name }
- path '/{model}/{name}/editor', :named => :editor, :action => find_editor,
- :method => :get, :match => { :name => name }
Add Comment
Please, Sign In to add comment