Sha256: dc14db19a07d17bb9a52d53398647a13bc34402b133333daf846980dc7a35892
Contents?: true
Size: 464 Bytes
Versions: 6
Compression:
Stored size: 464 Bytes
Contents
ActiveAdmin.register Post do belongs_to :category state_action :peer_review state_action :publish, confirm: true # Has I18n in locale state_action :archive, confirm: ->{ "Do you want to archive?" } # No I18n for confirm message state_action :reopen, confirm: true, http_verb: :get do redirect_to admin_dashboard_path end form do |f| f.inputs "Post Details" do f.input :title f.input :body end f.actions end end
Version data entries
6 entries across 6 versions & 3 rubygems