Module: Simplepay::Helpers::FormHelper
- Defined in:
- lib/simplepay/helpers/form_helper.rb
Class Method Summary collapse
- .content_tag(name, content, options = nil) ⇒ Object
- .tag(name, options = nil, open = false) ⇒ Object
Class Method Details
.content_tag(name, content, options = nil) ⇒ Object
10 11 12 |
# File 'lib/simplepay/helpers/form_helper.rb', line 10 def self.content_tag(name, content, = nil) "<#{name}#{()}>#{content}</#{name}>" end |
.tag(name, options = nil, open = false) ⇒ Object
6 7 8 |
# File 'lib/simplepay/helpers/form_helper.rb', line 6 def self.tag(name, = nil, open = false) "<#{name}#{() if }" + (open ? ">" : " />") end |