Guest User

Untitled

a guest
Apr 26th, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1.  
  2. name = '([\w\-\_\.\+\@]+)'
  3.  
  4. path '/{model}', :named => :all, :method => :get, :action => all_and_list
  5.  
  6. path '/{model}/{name}', :named => :get, :action => find_and_show,
  7. :method => :get, :match => { :name => name }
  8.  
  9. path '/{model}/{name}/editor', :named => :editor, :action => find_editor,
  10. :method => :get, :match => { :name => name }
Add Comment
Please, Sign In to add comment