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 (label,={}) convert_boolean_attributes!(, %w( disabled )) .reverse_merge! :type => "submit" content_tag("button", (label) ,) end |