Method: Skyline::ButtonHelper#submit_button

Defined in:
app/helpers/skyline/button_helper.rb

#submit_button(label, options = {}) ⇒ Object

Places a <button type=“submit”>..</button> tag

Parameters

src

The location of the image relative to the locale directory

options

Options to pass through to content_tag

Options

:value

If value is a symbol, it will be translated in scope buttons



41
42
43
44
45
46
# File 'app/helpers/skyline/button_helper.rb', line 41

def submit_button(label,options={})
  convert_boolean_attributes!(options, %w( disabled ))
  
  options.reverse_merge! :type => "submit"
  ("button", button_text(label) ,options)
end