Sha256: d66d86082225462bba87975653aae53693632aaf8c0f9b85fa6443d69f64f449
Contents?: true
Size: 383 Bytes
Versions: 5
Compression:
Stored size: 383 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.submit @answer.new_record? ? 'Answer' : 'Update' %> <% end %>
Version data entries
5 entries across 5 versions & 1 rubygems