Sha256: 877109dcbd18e695948bedc4f4fdd00588bb20b930807370d27fe56d934613c5
Contents?: true
Size: 801 Bytes
Versions: 5
Compression:
Stored size: 801 Bytes
Contents
module MasterView module Directives # create check_box helper, quoting object and method if necessary # merging in any html options specified # class CheckBox < MasterView::DirectiveBase metadata :priority => :default, :category => 'form', :description => 'Replaces the element with a Rails check_box form helper', :element_usage => 'input' attr_arg :object_name, :quote => true attr_arg :method, :quote => true attr_arg :options, :default => {}, :append_element_attrs => [:common_html] attr_arg :checked_value, :default => "'1'" attr_arg :unchecked_value event :element do render erb_content( 'check_box', :object_name, :method, :options, :checked_value, :unchecked_value ) end end end end
Version data entries
5 entries across 5 versions & 1 rubygems