Sha256: 4fd7462093807d6e638dd7162b448ab564a55b6e3f7fc6669977854cf5122559

Contents?: true

Size: 731 Bytes

Versions: 59

Compression:

Stored size: 731 Bytes

Contents

%h1 New discussion
- include_ckeditor
= form_for [@forum, @discussion] do |f|
  -if @discussion.errors.any?
    #errorExplanation
      %h2= "#{pluralize(@discussion.errors.count, "error")} prohibited this discussion from being saved:"
      %ul
        - @discussion.errors.full_messages.each do |msg|
          %li= msg

  %ul.form_fields
    %li.field
      = f.label :subject
      = f.text_field :subject
      = f.hidden_field :forum_id
    %li.field
      = f.fields_for :new_message, @new_message do |ff|
        = ff.hidden_field :author_id
        %ul.form_fields
          %li.field= ff.text_area :message, :class=>'ckeditor_textarea'
  .actions
    = f.submit 'Create new discussion'

= link_to 'Back', collection_url

Version data entries

59 entries across 59 versions & 1 rubygems

Version Path
wheels-0.1.30 app/views/discussions/new.html.haml
wheels-0.1.28 app/views/discussions/new.html.haml
wheels-0.1.27 app/views/discussions/new.html.haml
wheels-0.1.25 app/views/discussions/new.html.haml
wheels-0.1.24 app/views/discussions/new.html.haml
wheels-0.1.23 app/views/discussions/new.html.haml
wheels-0.1.22 app/views/discussions/new.html.haml
wheels-0.1.21 app/views/discussions/new.html.haml
wheels-0.1.20 app/views/discussions/new.html.haml
wheels-0.1.19 app/views/discussions/new.html.haml
wheels-0.1.18 app/views/discussions/new.html.haml
wheels-0.1.17 app/views/discussions/new.html.haml
wheels-0.1.16 app/views/discussions/new.html.haml
wheels-0.1.15 app/views/discussions/new.html.haml
wheels-0.1.14 app/views/discussions/new.html.haml
wheels-0.1.13 app/views/discussions/new.html.haml
wheels-0.1.12 app/views/discussions/new.html.haml
wheels-0.1.10 app/views/discussions/new.html.haml
wheels-0.1.9 app/views/discussions/new.html.haml
wheels-0.1.8 app/views/discussions/new.html.haml