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

#form

Instance Method Details

#trb_form_for(model, url, **options, &block) ⇒ Object



46
47
48
49
50
51
# File 'lib/formular/helper.rb', line 46

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