Guest User

Untitled

a guest
Jul 21st, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. resources :todos do
  2. resources :todo_comments
  3. end
  4.  
  5. post :index, params: { todo_id: 1 }
  6.  
  7. post todo_todo_comments_path(1)
  8.  
  9. # or, without the helper:
  10. post "/todos/1/todo_comments"
Add Comment
Please, Sign In to add comment