Skip to content

Instantly share code, notes, and snippets.

@aep
Last active August 29, 2015 14:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aep/cf26c59f8dd2caf4f856 to your computer and use it in GitHub Desktop.
Save aep/cf26c59f8dd2caf4f856 to your computer and use it in GitHub Desktop.
ActiveAdmin.register Foo
show do |b|
panel "Bar" do
table_for [0] do
column :api do
e+= (controller.render_to_string :partial => "status", :locals => {:status =>
VpnConnection.is_ap_connected(b.endpoint, b) ? :up : :down })
e+= b.name
e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment