Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -javascript 'post'
- = simple_form_for(@post) do |f|
- = render 'shared/error_messages', :target => @post
- .inputs
- = f.input :title
- = f.input :sequence
- = f.input :description, :input_html => {:rows =>5}
- = f.simple_fields_for :sections do |section_f|
- .section
- %h2 Section
- = section_f.input :heading
- = section_f.input :body, :input_html => {:rows =>5}
- = section_f.input :position
- = f.button :submit
- = section_f.simple_fields_for :snippet do |snippet_f|
- .snippet
- %h3 Snippet
- = snippet_f.input :caption
- = snippet_f.input :content, :input_html => {:rows =>5}
- = snippet_f.input :language, :as => :select, :collection => coderay_languages
Add Comment
Please, Sign In to add comment