RailsCasts Pro episodes are now free!

Learn more or hide this

Erin Parker's Profile

GitHub User: neverbendeasy

Site: www.erinchanparker.com

Comments by Erin Parker


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

Thank you @LucasCioffi, changing the location of my link_to_add definitely fixed the undefined method error!