NoMethodError within nested model form
问题 The project is a simple workout creator where you can add exercises to a workout plan. I've been following the Railscast covering nested model forms to allow dynamically adding and deleting exercises, but have run into an error and need a second opinion as a new developer. The error I am continually receiving is: NoMethodError in Plans#show This is the extracted code, with starred line the highlighted error: <fieldset> **<%= link_to_add_fields "Add Exercise", f, :exercise %>** <%= f.text