fix textareas

This commit is contained in:
jomo
2014-05-01 18:01:10 +02:00
parent 4774ebbb25
commit 477112ec0b
7 changed files with 6 additions and 15 deletions

View File

@@ -2,7 +2,7 @@
<%= form_for @post do |f|%>
<%= f.text_field :title %>
<%= render partial: "mdhelp" %>
<%= f.text_area :content, class: "vertical" %>
<%= f.text_area :content%>
<p><%= f.submit "Update Post", class: "btn blue left" %></p>
<% end %>
<p><%= button_to "Delete post", @post, method: "delete", data: {confirm: "Delete post & comments forever?"}, class: "btn red right" %></p>

View File

@@ -2,6 +2,6 @@
<%= form_for @post do |f|%>
<%= f.text_field :title, placeholder: "Title" %>
<%= render partial: "mdhelp" %>
<%= f.text_area :content, placeholder: "Text", input_html: {class: "vertical"} %>
<%= f.text_area :content, placeholder: "Text" %>
<p><%= f.submit "Create Post", class: "btn blue left" %></p>
<% end %>