Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- I have this now, and it works fine:
- map.resources :tm_users, :member => { :new_invitee => :get, :accept => :get}, :new => { :complete_registration_stand_alone=>:post,:complete_registration=>:post, :review => :post }
- I would like to add these resources:
- map.resources :tm_users do |tm_user|
- tm_user.resources :messages
- tm_user.resources :photos
- tm_user.resources :connections
- tm_user.resources :comments
- end
- Is it legal to merge the two like so?:
- map.resources :tm_users, :member => { :new_invitee => :get, :accept => :get}, :new => { :complete_registration_stand_alone=>:post,:complete_registration=>:post, :review => :post } do |tm_user|
- tm_user.resources :messages
- tm_user.resources :photos
- tm_user.resources :connections
- tm_user.resources :comments
- end
Add Comment
Please, Sign In to add comment