Sha256: 21156d8f64927739821853bd7a648f355a9eab2d758d329d6f99f4bb905f47d7

Contents?: true

Size: 757 Bytes

Versions: 13

Compression:

Stored size: 757 Bytes

Contents

= content_for(:head) do
  = javascript_include_tag '/ckeditor/ckeditor.js'
  = javascript_include_tag '/ckeditor/adapters/jquery.js'
  :javascript
    $(function(){
      config = {
        filebrowserBrowseUrl : '#{galleries_path}'
      };
      $('.ckeditor_textarea').ckeditor(config);
    });

= form_for [@blog.user, @blog], :html=>{:multipart=>true} do |f|
  -if @blog.errors.any?
    #errorExplanation
      %h2= "#{pluralize(@blog.errors.count, "error")} prohibited this blog from being saved:"
      %ul
        - @blog.errors.full_messages.each do |msg|
          %li= msg

  .field
    = f.label :title
    = f.text_field :title
  .field
    = f.label :body
    = f.text_area :body, :class=>'ckeditor_textarea'
  .actions
    = f.submit 'Save'

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
wheels-0.0.17 app/views/blogs/_form.html.haml
wheels-0.0.16 app/views/blogs/_form.html.haml
wheels-0.0.15 app/views/blogs/_form.html.haml
wheels-0.0.14 app/views/blogs/_form.html.haml
wheels-0.0.13 app/views/blogs/_form.html.haml
wheels-0.0.11 app/views/blogs/_form.html.haml
wheels-0.0.10 app/views/blogs/_form.html.haml
wheels-0.0.9 app/views/blogs/_form.html.haml
wheels-0.0.8 app/views/blogs/_form.html.haml
wheels-0.0.6 app/views/blogs/_form.html.haml
wheels-0.0.5 app/views/blogs/_form.html.haml
wheels-0.0.4 app/views/blogs/_form.html.haml
wheels-0.0.3 app/views/blogs/_form.html.haml