You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 12, 2021. It is now read-only.
So it appears that fields_for have different syntax in rails 3.1.1?
Is there a quick fix for that? Also how do I set the partial file that fields_for accesses?
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I deleted the Gemfile.lock file and upgraded to the latest version of rails. Then I get the following error:
ArgumentError in Surveys#new
Showing /home/jyj/rubys/complex-form-examples-99f5680/app/views/surveys/_form.html.erb where line #7 raised:
wrong number of arguments (4 for 3)
Extracted source (around line #7):
4: <%= f.label :name %>
5: <%= f.text_field :name %>
6:
7: <%= f.fields_for :questions %>
8:
<%= f.link_to_add "Add a question", :questions %>
9:
<%= f.submit "Submit" %>
10: <% end %>
Trace of template inclusion: app/views/surveys/new.html.erb
Rails.root: /home/jyj/rubys/complex-form-examples-99f5680
So it appears that fields_for have different syntax in rails 3.1.1?
Is there a quick fix for that? Also how do I set the partial file that fields_for accesses?
The text was updated successfully, but these errors were encountered: