In my controller I am using render update,but I want to update only if div element if present.
In order to check if div element is present, I am using page.select
but its not responding with anything,neither error or output,here is my code
def post_update
render :update do |page|
page.replace_html('div_id':partial=>'my_partial') unless page.select("#div_id").blank?
end
end
is there anything I am missing here ?