- 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').html('#{ j render(:partial => "shared/paginate_with_per_page") }'); - else jQuery('#recently').replaceWith('#{ j render(:partial => "shared/recently") }');