module TelegramChatbot module ApplicationHelper def form_check_toggle(option = {}) disabled = option[:disabled].present? ? "disabled" : "" checked = option[:checked].present? ? "checked" : "" str = "
" str += "" str + "
" end def method_missing(method, *args, &block) if (method.to_s.end_with?('_path') || method.to_s.end_with?('_url')) && main_app.respond_to?(method) main_app.send(method, *args) else super end end end end