# coding: utf-8 module AdminHelper def act_menu(cond) cond ? 'active' : nil end def sortable(url) html = %Q{ }.gsub(/[\n ]+/, ' ').strip.html_safe return content_for(:js,html) end def show_tree(c) html = "" html << "
" html << " #{link_to "Удал",[:admin, c], data: { confirm: 'Точно удалить?' }, :method => :delete, class: "del"}