Ruby Snack #57: Nested Forms in Rails 5 -- Create Child then Create Parent

preview_player
Показать описание
Rails 5 changed up how to handle belongs_to and nested forms. In this episode, I demonstrate the differences and show how to create a different path to create a Crew Member.

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

Right on the money, Melissa! Thank-you! :D

Guinhulol
Автор

Hi Melissa. Thanks for the video. I am curious to learn more about your terminal setup: it looks like it can save the history of commands you issued, even after exiting a Rails console session. I am on Ubuntu 20 LTS and the native terminal can't let me do that.

igitego
Автор

Thanh you very much!!! your helped me a lot!!

JoaquimOliveiraNeto
Автор

Thank you Melissa for this video. Question - why you name the controller as CrewMemberFirst and not CrewMember?

zulhilmizainudin
Автор

Hi Melissa, great video! Thank you :) I cloned the branch at the beginning of the video and am trying to make my way through the video, but all the tests in the new_crew_member_spec are failing with an error "no implicit conversion of nil to String and points to line 6 of lib/amazon_signature. Do you know why I'm getting this error? I have successfully been able to create a new crew member from rails c with no problem.

matthewrider
Автор

Thank you for the video Melissa! You seems to have different colors in rails console when creating a record. What do you use for?

taeyanglee
Автор

After adding the optional: true, I got SQLite3::SQLException: no such table: main. starship2s. Why?

formsmama