Module: AmazonMarketplace::Helpers::FormHelper

Defined in:
lib/AmazonMarketplace/helpers/form_helper.rb

Class Method Summary collapse

Class Method Details

.content_tag(name, content, options = nil) ⇒ Object



10
11
12
# File 'lib/AmazonMarketplace/helpers/form_helper.rb', line 10

def self.(name, content, options = nil)
  "<#{name}#{tag_options(options)}>#{content}</#{name}>"
end

.tag(name, options = nil, open = false) ⇒ Object



6
7
8
# File 'lib/AmazonMarketplace/helpers/form_helper.rb', line 6

def self.tag(name, options = nil, open = false)
  "<#{name}#{tag_options(options) if options}" + (open ? ">" : " />")
end