Rails Nested Resources

preview_player
Показать описание
An introduction to implementing RESTful nested resources in Ruby on Rails.

This video is an edited version of a live lesson given by Gilbert Garza at MakerSquare, a Software Development School with locations in Austin and San Francisco.

Рекомендации по теме
Комментарии
Автор

Ive only watched the first 1 minute so far, and I really dig how you explain things. Succinct, to the point. No faffing or wasting time.

seshna
Автор

thanks to teach us nested resources ....its one of the best video lecture on this topic

prabalghosh
Автор

resources :posts do
resources :comments, shallow: true
end

This does the same as in the video. The shallow option might now have existed in 2014, but it does now.

joenoonan
Автор

Great video. I actually using Laravel rather than Rails but I wanted a video on nested routes primarily because I didnt understand why the parent Id was needed when deleting or updating a nested resource. This video answered it for me. What you did there, was it considered best practices?

YazanAlaboudi
Автор

Awesome! Thank you. This really helped.

hackmajor
Автор

I have a quick question re: nested resources with Devise. If I am using devise_for :users as my resource and I want to nest resources :users, only: :create, do I write it with devise_for :users do, then nested resource, then end?

pe
Автор

Hi. Good guide! Question: do you really type that fast or you speed up video and do voice over ? thanks

ColumboJedi
Автор

Hello,
excellent tutorial ..
I have a question how can I make a comment related to the event_id (/ events /: event_id / comments / new or (/ events /: event_id / comments /: COMMENT_ID / edit)

thank you.

antoniof.
Автор

Why do you have to add a separate resource for create only right after the same resource with an except list Where create isn't excluded by except it's included so it's redundant

fugeeohu