Sign in through GitHub

Please read for an updated status on RailsCasts:

Learn more or hide this

richdub's Profile

GitHub User: richdub

Comments by

Avatar

Please ignore the above question I can't seem to find an edit button. The issue was from another gem.

Avatar

I'm throwing an error trying to recreate this example. Instead of products, I am using forms. Any help or explanation would be very helpful, because this is over my head, but i'd like to learn what is going on here.

NoMethodError in Forms#new

Showing /Users/Admin/Documents/development/form_builder/app/views/forms/fields/_text_field.html.erb where line #3 raised:

undefined method `human_attribute_name' for OpenStruct:Class
Extracted source (around line #3):

1:
2: <%= f.label field.name %>
3: <%= f.text_field field.name %>
4:
Trace of template inclusion: app/views/forms/_form.html.erb, app/views/forms/new.html.erb

Parameters:

{"utf8"=>"✓",
"form_type_id"=>"3"}