RailsCasts Pro episodes are now free!
Learn more or hide this
GitHub User: neverbendeasy
Site: www.erinchanparker.com
Hey thanks so much for sharing your code Spencer, it really helped me with customizing this episode to my project. You're awesome!
Yeah, I also had issues getting the form fields to show up if I didn't put anything in the controller.
My user model had a profile model. The relationship was has_one and belongs_to.
I had to add the following to the users controller.
Users Controller
def new profile = @user.build_profile end
Thank you @LucasCioffi, changing the location of my link_to_add definitely fixed the undefined method error!
Hey thanks so much for sharing your code Spencer, it really helped me with customizing this episode to my project. You're awesome!
Yeah, I also had issues getting the form fields to show up if I didn't put anything in the controller.
My user model had a profile model. The relationship was has_one and belongs_to.
I had to add the following to the users controller.
Users Controller
Thank you @LucasCioffi, changing the location of my link_to_add definitely fixed the undefined method error!