RailsCasts Pro episodes are now free!

Learn more or hide this

M.R.Avagliano's Profile

GitHub User: avagliano

Site: http://railszilla.com

Comments by M.R.Avagliano

Avatar

in ASCII-Cast, the view of the form should be

ruby
<%= 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