creddit/app/views/comments/_form.html.slim

8 lines
243 B
Text
Raw Normal View History

2015-07-16 11:57:27 -04:00
= simple_form_for [subcreddit, post, comment] do |f|
- if local_assigns.has_key?(:parent) && parent
= f.hidden_field :parent_id, value: parent.id
.form-inputs
= f.input :content, label: false
.form-actions
= f.button :submit