22 lines
511 B
Plaintext
22 lines
511 B
Plaintext
<%= form_for(@question) do |f| %>
|
|
<% if @question.errors.any? %>
|
|
<div id="error_explanation">
|
|
<h2><%= pluralize(@question.errors.count, "error") %> prohibited this question from being saved:</h2>
|
|
|
|
<ul>
|
|
<% @question.errors.full_messages.each do |msg| %>
|
|
<li><%= msg %></li>
|
|
<% end %>
|
|
</ul>
|
|
</div>
|
|
<% end %>
|
|
|
|
<div class="field">
|
|
<%= f.label :title %><br>
|
|
<%= f.text_area :title %>
|
|
</div>
|
|
<div class="actions">
|
|
<%= f.submit %>
|
|
</div>
|
|
<% end %>
|