Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- resources :people, :path => "designers", :only => [:index, :show] do
- member do
- post 'add_favorite_designer'
- post 'remove_favorite_designer'
- end
- end
- match '/people/*action', to: redirect {|p, req| "/designers/#{p[:action]}" }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement