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

Version Path
rostra-0.3.6 app/views/rostra/answers/_form.html.erb
rostra-0.3.5 app/views/rostra/answers/_form.html.erb
rostra-0.3.4 app/views/rostra/answers/_form.html.erb
rostra-0.3.3 app/views/rostra/answers/_form.html.erb
rostra-0.3.2 app/views/rostra/answers/_form.html.erb
rostra-0.3.1 app/views/rostra/answers/_form.html.erb
rostra-0.2.1 app/views/rostra/answers/_form.html.erb
rostra-0.2.0 app/views/rostra/answers/_form.html.erb
rostra-0.1.26 app/views/rostra/answers/_form.html.erb
rostra-0.1.25 app/views/rostra/answers/_form.html.erb
rostra-0.1.24 app/views/rostra/answers/_form.html.erb
rostra-0.1.23 app/views/rostra/answers/_form.html.erb
rostra-0.1.22 app/views/rostra/answers/_form.html.erb
rostra-0.1.21 app/views/rostra/answers/_form.html.erb
rostra-0.1.20 app/views/rostra/answers/_form.html.erb
rostra-0.1.19 app/views/rostra/answers/_form.html.erb
rostra-0.1.18 app/views/rostra/answers/_form.html.erb
rostra-0.1.17 app/views/rostra/answers/_form.html.erb
rostra-0.1.16 app/views/rostra/answers/_form.html.erb
rostra-0.1.15 app/views/rostra/answers/_form.html.erb