Skip to content

Instantly share code, notes, and snippets.

@jarib
Created October 10, 2009 15:47
Show Gist options
  • Save jarib/206929 to your computer and use it in GitHub Desktop.
Save jarib/206929 to your computer and use it in GitHub Desktop.
module Button
extend ElementHelper
add_specifier :tag_name => 'input', :types => %w[button submit image reset]
add_specifier :tag_name => 'button'
container_method :button
container_collection_method :buttons
end
module Radio
extend ElementHelper
include RadioCheckBoxCommon
add_specifier :tag_name => 'input', :type => 'radio'
container_method :radio, :extra_args => :value
container_collection_method :radios
inspect_these :checked
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment