lib/booties/modal.rb
##
# Renders a button for dismissing the modal. The label can be passed in
# through the +content+ parameter. Otherwise, it will be captured from
# +block+. Additional HTML attributes for the button can be passed in
# through +options+.
Renders a button for dismissing the modal. The label can be passed in
through the +content+ parameter. Otherwise, it will be captured from
+block+. Additional HTML attributes for the button can be passed in
through +options+.
Renders a button for dismissing the modal . The label can be passed in through the + content + parameter . Otherwise it will be captured from + block + . Additional HTML attributes for the button can be passed in through + options + .
def dismiss(content = nil, **options, &block)
      content ||= capture(&block)
      options[:class] ||= 'close'
      options.update data: { dismiss: 'modal' }, type: 'button'
      button_tag content, options
    end
def dismiss ( content = nil , ** options , & block ) content ||= capture ( & block ) options [ :class ] ||= 'close' options . update data : { dismiss : 'modal' } , type : 'button' button_tag content , options end
Renders a button for dismissing the modal.
Renders a button for dismissing the modal .
content
<not_specific>
options
<not_specific>
block
<not_specific>