OSDN Git Service

Merge branch 'v03_test' of git.sourceforge.jp:/gitroot/pettanr/pettanr into v03_test
[pettanr/pettanr.git] / app / views / speech_balloon_templates / _form.html.erb
diff --git a/app/views/speech_balloon_templates/_form.html.erb b/app/views/speech_balloon_templates/_form.html.erb
new file mode 100644 (file)
index 0000000..cfe0195
--- /dev/null
@@ -0,0 +1,17 @@
+<%= form_for(@speech_balloon_template) do |f| %>
+  <% if @speech_balloon_template.errors.any? %>
+    <div id="error_explanation">
+      <h2><%= pluralize(@speech_balloon_template.errors.count, "error") %> prohibited this speech_balloon_template from being saved:</h2>
+
+      <ul>
+      <% @speech_balloon_template.errors.full_messages.each do |msg| %>
+        <li><%= msg %></li>
+      <% end %>
+      </ul>
+    </div>
+  <% end %>
+
+  <div class="actions">
+    <%= f.submit %>
+  </div>
+<% end %>