RailsCasts Pro episodes are now free!

Learn more or hide this

Harold Shields's Profile

GitHub User: hshieldsivey

Comments by Harold Shields


This is a great screencast. As a newbie to RoR these are invaluable.

After adapting the code to my project, I couldn't get the '.add_fields' js function to work. Clicking the link to add a child record did nothing.
I checked the web browser console and found this error when the page loaded: "TypeError: 'undefined' is not an object (evaluating '$(this).data('fields').replace')"

After struggling with it for a while I realized my indents were not set properly in the jQuery script. I feel like I need a beer...