Sha256: 0d11b385f49f89626cc51c06562e33afdf37c8d1534112bae8795746c952c843

Contents?: true

Size: 592 Bytes

Versions: 1

Compression:

Stored size: 592 Bytes

Contents

<%= rc_form_for(@article, ip: request.remote_ip) 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 |message| %>
        <li><%= message %></li>
      <% end %>
      </ul>
    </div>
  <% end %>

  <div>
    <%= f.label 'title' %><br>
    <%= f.text_field 'title' %>
  </div>

  <div>
    <%= f.label 'text' %><br>
    <%= f.text_area 'text' %>
  </div>

  <div>
    <%= f.submit %>
  </div>
<% end %>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
robot_catcher-0.0.1 test/dummy/app/views/articles/_form.html.erb