Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!-- views/surveys/_form.html.erb -->
- <% form_for @survey do |f| %>
- <%= f.error_messages %>
- <p>
- <%= f.label :name %><br />
- <%= f.text_field :name %>
- </p>
- <% f.fields_for :questions do |builder| %>
- <p>
- <%= builder.label :content, "Question" %><br />
- <%= builder.text_area :content, :rows => 3 %><br />
- </p>
- <% end %>
- <p><%= f.submit "Submit" %></p>
- <% end %>
Add Comment
Please, Sign In to add comment