Sha256: 9b4f95417f865590735b158bcfc401287d9e483400623e9f76422f4e2832ed0d
Contents?: true
Size: 527 Bytes
Versions: 10
Compression:
Stored size: 527 Bytes
Contents
<% @answer ||= @question.answers.build %> <%= 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
10 entries across 10 versions & 1 rubygems