ralinc/rails-blog

View on GitHub
app/views/articles/_form.html.slim

Summary

Maintainability
Test Coverage
= simple_form_for @article do |f|
  = f.input :title
  = f.input :slug
  = f.input :date, as: :string
  = f.input :tags_string, label: 'Tags'
  = f.input :content, as: :text
  = f.input :status, collection: Article.statuses, label_method: :first, value_method: :first, include_blank: false
  = f.button :submit, 'Save'