Sha256: ad7419a310f2873f13984ba115554e03706d70f51ae0738641251164c50593f2
Contents?: true
Size: 477 Bytes
Versions: 2
Compression:
Stored size: 477 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 %> <p> <%= f.label :title %><br> <%= f.text_field :title %> </p> <p> <%= f.label :text %><br> <%= f.text_area :text %> </p> <p> <%= f.submit %> </p> <% end %>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
archerplume-0.0.2 | app/views/articles/_form.html.erb |
archerplume-0.0.1 | app/views/articles/_form.html.erb |