def define_elements_js(model_class, excluded_props = [])
      attributes = model_class.new.attributes.keys

      attributes.each do |attri|
        unless excluded_props.include? attri
          selector = "#"+attri
          # self.class.send "element", attri.to_sym, selector
          element attri, selector
        end

      end
    end
def define_elements_js(model_class, excluded_props = [])
      attributes = model_class.new.attributes.keys

      attributes.each do |attri|
        unless excluded_props.include? attri
          selector = "#"+attri
          # self.class.send "element", attri.to_sym, selector
          element attri, selector
        end

      end
    end
instead of the rails traditional form
 in js mode, there is no prefix before the element name