Skip to content

Instantly share code, notes, and snippets.

@mukkoo
Forked from stefanoverna/active_admin.rb
Last active August 29, 2015 14:07
Show Gist options
  • Save mukkoo/2b110d6cf921ce4af88e to your computer and use it in GitHub Desktop.
Save mukkoo/2b110d6cf921ce4af88e to your computer and use it in GitHub Desktop.
ActiveAdmin.register Post do
index do
column :title
column :published_at
default_actions
end
form do |f|
f.inputs "Dettagli" do
f.input :title
f.input :body
f.input :published_at
end
f.actions
end
end
Railsyard::Backend.define_editor_for Post do
label :title
list do
field :published_at
end
edit do
field :title
field :body
field :published_at
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment