Module: SecureEscrow::Railtie::ActionViewHelper
- Defined in:
- lib/secure_escrow/railtie.rb
Instance Method Summary collapse
- #escrow_form_for(record, options = {}, &proc) ⇒ Object
- #escrow_form_tag(url_for_options = {}, options = {}, &block) ⇒ Object
Instance Method Details
#escrow_form_for(record, options = {}, &proc) ⇒ Object
18 19 20 21 22 23 24 25 26 27 28 |
# File 'lib/secure_escrow/railtie.rb', line 18 def escrow_form_for record, = {}, &proc [:html] ||= {} stringy_record = case record when String, Symbol then true else false end (record, ) unless stringy_record form_for record, ActionViewHelperSupportMethods.(controller, request, , ActionViewHelperSupportMethods::POST), &proc end |
#escrow_form_tag(url_for_options = {}, options = {}, &block) ⇒ Object
30 31 32 |
# File 'lib/secure_escrow/railtie.rb', line 30 def escrow_form_tag = {}, = {}, &block form_tag , ActionViewHelperSupportMethods.(controller, request, , ActionViewHelperSupportMethods::POST), &block end |