- entity_name = controller.controller_name.singularize.underscore - @entity = instance_variable_get("@#{entity_name}") jQuery('##{dom_id(@entity)}').css('background-color', '#ffe4e1').slideUp(250); - if called_from_index_page? = refresh_sidebar(:index, :filters) jQuery('#paginate').replaceWith('#{ j render(:partial => "shared/paginate_with_per_page") }'); - elsif called_from_landing_page?("campaigns") = refresh_sidebar_for(:campaigns, :show, :summary)