Skip to content

Instantly share code, notes, and snippets.

@sbpipb
Created February 19, 2016 04:23
Show Gist options
  • Save sbpipb/97586bd62b245190595e to your computer and use it in GitHub Desktop.
Save sbpipb/97586bd62b245190595e to your computer and use it in GitHub Desktop.
History Page
# app/views/layouts/history.html.arb
panel "Historia" do
table_for assigns[:versions]
end
# app/admin/plan.rb
ActiveAdmin.register Plan do
member_action :history do
@plan = Plan.find(params[:id])
@versions = @plan.versions
render "layouts/history"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment