Sha256: 8b1f95e2c41014e6cb6d012b412baef0dbdf6f56ee25d59ef678f9f19a25404d
Contents?: true
Size: 522 Bytes
Versions: 31
Compression:
Stored size: 522 Bytes
Contents
<% @answer ||= Rostra::Answer.new %> <%= simple_form_for [@question, @answer], validate: true do |f| %> <%= f.hidden_field :user_id, value: rostra_user.id %> <%= f.hidden_field :question_id, value: @question.id %> <%= f.input :text, label: 'Answer this question', input_html: { class: 'wysiwyg' } %> <%= f.input :follow_by_email, as: :boolean, input_html: { checked: true }, label: "I want to follow answers and comments on this question" %> <%= f.submit @answer.new_record? ? 'Answer' : 'Update' %> <% end %>
Version data entries
31 entries across 31 versions & 1 rubygems