Sha256: b420e9f8a046455e988e36018908dd56f65f43088f7f3012ebc952971cec0c45
Contents?: true
Size: 410 Bytes
Versions: 38
Compression:
Stored size: 410 Bytes
Contents
= form_for @article do |f| - if @article.errors.any? #error_explanation %h2= "#{pluralize(@article.errors.count, "error")} prohibited this article from being saved:" %ul - @article.errors.full_messages.each do |msg| %li= msg .field = f.label :title = f.text_field :title .field = f.label :content = f.text_area :content .actions = f.submit 'Save'
Version data entries
38 entries across 38 versions & 2 rubygems