Sha256: 69326a4beda730ec31a62542292f5cb102457d823391161946c9ef64dbe605b8

Contents?: true

Size: 636 Bytes

Versions: 4

Compression:

Stored size: 636 Bytes

Contents

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

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

  <div class="field">
    <%= f.label :title %><br />
    <%= f.text_field :title, :size => 64 %>
  </div>
  <div class="field">
    <%= f.label :content %><br />
    <%= f.text_area :content, :size => "72x5" %>
  </div>
  <div class="actions">
    <%= f.submit %>
  </div>
<% end %>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
kblog-0.0.4 app/views/kblog/articles/_form.html.erb
kblog-0.0.3 app/views/kblog/articles/_form.html.erb
kblog-0.0.2 app/views/kblog/articles/_form.html.erb
kblog-0.0.1 app/views/kblog/articles/_form.html.erb