daily pastebin goal
66%
SHARE
TWEET

Untitled

a guest Jul 21st, 2018 54 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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"
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top