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

Version Path
rostra-0.0.8 app/views/rostra/answers/_form.html.erb
rostra-0.0.7 app/views/rostra/answers/_form.html.erb
rostra-0.0.6 app/views/rostra/answers/_form.html.erb
rostra-0.0.5 app/views/rostra/answers/_form.html.erb
rostra-0.0.4 app/views/rostra/answers/_form.html.erb