Module: Formular::RailsHelper
- Includes:
- Helper
- Defined in:
- lib/formular/helper.rb
Overview
module Helper
Constant Summary
Constants included from Helper
Instance Method Summary collapse
Methods included from Helper
Instance Method Details
#trb_form_for(model, url, **options, &block) ⇒ Object
60 61 62 63 64 65 |
# File 'lib/formular/helper.rb', line 60 def trb_form_for(model, url, **, &block) [:csrf_token] ||= form_authenticity_token [:csrf_token_name] ||= request_forgery_protection_token.to_s form(model, url, , &block) end |