def button(type, *args, &block)
      # set options to value if first arg is a Hash
      options = args.extract_options!
      button_type = 'dijit/form/Button'
      button_type = 'dojox/form/BusyButton' if options[:busy]
      options.reverse_merge!(:'data-dojo-type' => button_type) 
      content = ''
      if value = options.delete(:value)
        content = value.html_safe
      else
        content = button_default_value
      end
      options.reverse_merge!({ :type => type, :value => content })
      dojo_props = {}
      dojo_props.merge!(options[:dojo_html]) if options.include?(:dojo_html)
      options[:'data-dojo-props'] = SimpleFormDojo::FormBuilder.encode_as_dojo_props(dojo_props)
      options[:class] = "button #{options[:class]}".strip
      template.content_tag(:button, content, *(args << options), &block)
    end
def button(type, *args, &block)
      # set options to value if first arg is a Hash
      options = args.extract_options!
      button_type = 'dijit/form/Button'
      button_type = 'dojox/form/BusyButton' if options[:busy]
      options.reverse_merge!(:'data-dojo-type' => button_type) 
      content = ''
      if value = options.delete(:value)
        content = value.html_safe
      else
        content = button_default_value
      end
      options.reverse_merge!({ :type => type, :value => content })
      dojo_props = {}
      dojo_props.merge!(options[:dojo_html]) if options.include?(:dojo_html)
      options[:'data-dojo-props'] = SimpleFormDojo::FormBuilder.encode_as_dojo_props(dojo_props)
      options[:class] = "button #{options[:class]}".strip
      template.content_tag(:button, content, *(args << options), &block)
    end
Simple override of initializer in order to add in the dojo_props attribute
 Creates a button

 overrides simple_form's button method

 dojo_form_for @user do |f|
   f.button :submit, :value => 'Save Me'
 end

 To use dojox/form/BusyButton, pass :busy => true
 dojo_form_for @uswer do |f|
   f.button :submit, :busy => true, :value => 'Save Me'
 end

 If :value doesn't exist, tries to determine the
 the value based on the current object