Sha256: 55d096ef2aeac27cdf227c21203c722317a62bc0718f740eb16ed9bb640a6555

Contents?: true

Size: 647 Bytes

Versions: 4

Compression:

Stored size: 647 Bytes

Contents

<%= form_for(@post) do |f| %>
  <% if @post.errors.any? %>
    <div id="error_explanation">
      <h2><%= pluralize(@post.errors.count, "error") %> prohibited this post from being saved:</h2>

      <ul>
      <% @post.errors.full_messages.each do |msg| %>
        <li><%= msg %></li>
      <% end %>
      </ul>
    </div>
  <% end %>

  <div class="field">
    <%= f.label :name %><br />
    <%= f.text_field :name %>
  </div>
  <div class="field">
    <%= f.label :body %><br />
    <%= f.ueditor_text :body, :width => 500, :toolbars => [["bold","italic","underline"]] %>
  </div>
  <div class="actions">
    <%= f.submit %>
  </div>
<% end %>

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
ueditor_rails4-0.0.5 test/dummy/app/views/posts/_form.html.erb
ueditor_rails-0.0.4 test/dummy/app/views/posts/_form.html.erb
ueditor_rails-0.0.2 test/dummy/app/views/posts/_form.html.erb
ueditor_rails-0.0.1 test/dummy/app/views/posts/_form.html.erb