lib/views/partials/_post_form.haml in schnitzelpress-0.0.5 vs lib/views/partials/_post_form.haml in schnitzelpress-0.0.6
- old
+ new
@@ -1,5 +1,6 @@
%form.post{ action: @post.new_record? ? '/admin/new' : "/admin/edit/#{@post.id}", method: 'post' }
+ %input{ type: 'hidden', name: '_method', value: @post.new_record? ? 'post' : 'put'}
= form_field @post, :title, placeholder: "Title of your post."
= form_field @post, :link, placeholder: "Optional link to external URL."
= form_field @post, :body, type: :textarea, placeholder: "Your post's body of text. Markdown formatting available."
= form_field @post, :summary, placeholder: "An optional summary of your post. Markdown formatting available."
= form_field @post, :read_more, label: "'Read More' Link Text", placeholder: "When supplying a summary text, this will be the link to the full post."