Skip to content

Instantly share code, notes, and snippets.

@eduardordm
Created November 28, 2010 02:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eduardordm/718512 to your computer and use it in GitHub Desktop.
Save eduardordm/718512 to your computer and use it in GitHub Desktop.
module ApplicationHelper
def jsubmit_button(value = "Confirm", options = {})
content_for :head do
javascript_tag "$(function() {
$( '#jsubmit_button').button({
icons: {
primary: \"ui-icon-check\"
},
text: true
});
});"
end
content_tag(:button, value, :type => "submit", :id => 'jsubmit_button')
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment