Sha256: 4dc1f983fc7515d23af829de1c47930a5157c2c2cddf0caf121ca4344ed9a63c

Contents?: true

Size: 595 Bytes

Versions: 21

Compression:

Stored size: 595 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 :title %><br>
    <%= f.text_field :title %>
  </div>
  <div class="field">
    <%= f.label :description %><br>
    <%= f.text_area :description %>
  </div>
  <div class="actions">
    <%= f.submit %>
  </div>
<% end %>

Version data entries

21 entries across 7 versions & 1 rubygems

Version Path
themes_on_rails-0.4.0 spec/dummy/app/themes/theme_a/views/posts/_form.html.erb
themes_on_rails-0.4.0 spec/dummy/app/views/posts/_form.html.erb
themes_on_rails-0.4.0 spec/dummy/app/themes/theme_b/views/posts/_form.html.erb
themes_on_rails-0.3.1 spec/dummy/app/views/posts/_form.html.erb
themes_on_rails-0.3.1 spec/dummy/app/themes/theme_b/views/posts/_form.html.erb
themes_on_rails-0.3.1 spec/dummy/app/themes/theme_a/views/posts/_form.html.erb
themes_on_rails-0.3.0 spec/dummy/app/themes/theme_b/views/posts/_form.html.erb
themes_on_rails-0.3.0 spec/dummy/app/themes/theme_a/views/posts/_form.html.erb
themes_on_rails-0.3.0 spec/dummy/app/views/posts/_form.html.erb
themes_on_rails-0.2.2 spec/dummy/app/themes/professional_blue/views/posts/_form.html.erb
themes_on_rails-0.2.2 spec/dummy/app/themes/basic_blue/views/posts/_form.html.erb
themes_on_rails-0.2.2 spec/dummy/app/views/posts/_form.html.erb
themes_on_rails-0.2.1 spec/dummy/app/views/posts/_form.html.erb
themes_on_rails-0.2.1 spec/dummy/app/themes/professional_blue/views/posts/_form.html.erb
themes_on_rails-0.2.1 spec/dummy/app/themes/basic_blue/views/posts/_form.html.erb
themes_on_rails-0.2.0 spec/dummy/app/themes/basic_blue/views/posts/_form.html.erb
themes_on_rails-0.2.0 spec/dummy/app/views/posts/_form.html.erb
themes_on_rails-0.2.0 spec/dummy/app/themes/professional_blue/views/posts/_form.html.erb
themes_on_rails-0.1.0 spec/dummy/app/themes/professional_blue/views/posts/_form.html.erb
themes_on_rails-0.1.0 spec/dummy/app/views/posts/_form.html.erb