javascript - ActiveAdmin - Static Content on Index Page -


i trying map based filtering on activeadmin data set. have created partial contains map , associated javascript, , can render using code:

activeadmin.register location   menu priority: 4, label: 'locations'    filter :name ....     index      panel "maps"       div         render :partial => "/admin/dashboard/map", :locals => {  }       end     end  .... 

however, if filters set on page such there no data meeting criteria data set - no content shown , map not shown. idea here allow filtering based on map, have working, when there no results, still want map show user can alter map settings , find data want.

does know how in activeadmin? want partial show no matter result set particular index.

thanks in advance!


Popular posts from this blog

javascript - Js, document.getElementById("ID").innerHTML, error -

objective c - Is there a way in OCMockito to make stubs fail when an unknown method is called? -

jquery - jqGrid update specific column data with out refreshing the entire column? -