daily pastebin goal
38%
SHARE
TWEET

Untitled

a guest Jan 22nd, 2019 49 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. map.resources :clients, :key => :client_name do |client|
  2.   client.resources :sites, :key => :name do |site|
  3.     site.resources :articles, :key => :title
  4.   end
  5. end
  6.    
  7. /clients/:client_name
  8. /clients/:client_name/sites/:name
  9. /clients/:client_name/sites/:site_name/articles/:title
  10.    
  11. class Client < ActiveRecord::Base
  12.   has_friendly_id :name
  13. end
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top