Guest User

Untitled

a guest
May 25th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. I have this now, and it works fine:
  2.  
  3.  
  4. map.resources :tm_users, :member => { :new_invitee => :get, :accept => :get}, :new => { :complete_registration_stand_alone=>:post,:complete_registration=>:post, :review => :post }
  5.  
  6.  
  7. I would like to add these resources:
  8.  
  9.  
  10. map.resources :tm_users do |tm_user|
  11. tm_user.resources :messages
  12. tm_user.resources :photos
  13. tm_user.resources :connections
  14. tm_user.resources :comments
  15. end
  16.  
  17.  
  18. Is it legal to merge the two like so?:
  19.  
  20.  
  21. map.resources :tm_users, :member => { :new_invitee => :get, :accept => :get}, :new => { :complete_registration_stand_alone=>:post,:complete_registration=>:post, :review => :post } do |tm_user|
  22. tm_user.resources :messages
  23. tm_user.resources :photos
  24. tm_user.resources :connections
  25. tm_user.resources :comments
  26. end
Add Comment
Please, Sign In to add comment