Module: Formular::RailsHelper

Includes:
Helper
Defined in:
lib/formular/helper.rb

Overview

module Helper

Constant Summary

Constants included from Helper

Helper::BUILDERS

Instance Method Summary collapse

Methods included from Helper

_builder, #form, load_builder

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, **options, &block)
  options[:csrf_token] ||= form_authenticity_token
  options[:csrf_token_name] ||= request_forgery_protection_token.to_s

  form(model, url, options, &block)
end