Guest User

Untitled

a guest
Apr 24th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.86 KB | None | 0 0
  1. map.resources :follows do |follow|
  2. follow.resources :men
  3. follow.resources :women
  4. end
  5.  
  6. follow_women GET /follows/:follow_id/women(.:format) {:action=>"index", :controller=>"women"}
  7. POST /follows/:follow_id/women(.:format) {:action=>"create", :controller=>"women"}
  8. new_follow_woman GET /follows/:follow_id/women/new(.:format) {:action=>"new", :controller=>"women"}
  9. edit_follow_woman GET /follows/:follow_id/women/:id/edit(.:format) {:action=>"edit", :controller=>"women"}
  10. follow_woman GET /follows/:follow_id/women/:id(.:format) {:action=>"show", :controller=>"women"}
  11. PUT /follows/:follow_id/women/:id(.:format) {:action=>"update", :controller=>"women"}
  12. DELETE /follows/:follow_id/women/:id(.:format) {:action=>"destroy", :controller=>"women"}
  13. follow_men GET /follows/:follow_id/men(.:format) {:action=>"index", :controller=>"men"}
  14. POST /follows/:follow_id/men(.:format) {:action=>"create", :controller=>"men"}
  15. new_follow_man GET /follows/:follow_id/men/new(.:format) {:action=>"new", :controller=>"men"}
  16. edit_follow_man GET /follows/:follow_id/men/:id/edit(.:format) {:action=>"edit", :controller=>"men"}
  17. follow_man GET /follows/:follow_id/men/:id(.:format) {:action=>"show", :controller=>"men"}
  18. PUT /follows/:follow_id/men/:id(.:format) {:action=>"update", :controller=>"men"}
  19. DELETE /follows/:follow_id/men/:id(.:format) {:action=>"destroy", :controller=>"men"}
  20. would like it to go to a new follow and pass in the fact that it's a type men with man_id whatever
Add Comment
Please, Sign In to add comment