Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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