RailsCasts Pro episodes are now free!
Learn more or hide this
GitHub User: avagliano
Site: http://railszilla.com
in ASCII-Cast, the view of the form should be
<%= form_for @survey do |f| %> <%= f.label :name %><br /> <%= f.text_field :name %> <%= f.fields_for :questions do |builder| %> <%= builder.label :content, "Question" %><br /> <%= builder.text_area :content, :rows => 3 %> <% end %> <p><%= f.submit "Submit" %></p> <% end %>
you forgot the = (equal sign), so the questions would not appear ;-)
keep on casting, very good work ryan marcello - railszilla.com
in ASCII-Cast, the view of the form should be
you forgot the = (equal sign), so the questions would not appear ;-)
keep on casting, very good work ryan
marcello - railszilla.com