Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- map.resources :follows do |follow|
- follow.resources :men
- follow.resources :women
- end
- follow_women GET /follows/:follow_id/women(.:format) {:action=>"index", :controller=>"women"}
- POST /follows/:follow_id/women(.:format) {:action=>"create", :controller=>"women"}
- new_follow_woman GET /follows/:follow_id/women/new(.:format) {:action=>"new", :controller=>"women"}
- edit_follow_woman GET /follows/:follow_id/women/:id/edit(.:format) {:action=>"edit", :controller=>"women"}
- follow_woman GET /follows/:follow_id/women/:id(.:format) {:action=>"show", :controller=>"women"}
- PUT /follows/:follow_id/women/:id(.:format) {:action=>"update", :controller=>"women"}
- DELETE /follows/:follow_id/women/:id(.:format) {:action=>"destroy", :controller=>"women"}
- follow_men GET /follows/:follow_id/men(.:format) {:action=>"index", :controller=>"men"}
- POST /follows/:follow_id/men(.:format) {:action=>"create", :controller=>"men"}
- new_follow_man GET /follows/:follow_id/men/new(.:format) {:action=>"new", :controller=>"men"}
- edit_follow_man GET /follows/:follow_id/men/:id/edit(.:format) {:action=>"edit", :controller=>"men"}
- follow_man GET /follows/:follow_id/men/:id(.:format) {:action=>"show", :controller=>"men"}
- PUT /follows/:follow_id/men/:id(.:format) {:action=>"update", :controller=>"men"}
- DELETE /follows/:follow_id/men/:id(.:format) {:action=>"destroy", :controller=>"men"}
- 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