Sha256: 0c46b84d1638c7a6a642cb05a766065fed187470f6b4261e678ee54600954af6
Contents?: true
Size: 312 Bytes
Versions: 3
Compression:
Stored size: 312 Bytes
Contents
module Components::FormsHelper def render_form_with(**opts) form_with(**opts.merge(builder: ShadcnFormBuilder)) do |form| yield form end end def render_form_for(obj, **opts) form_for(obj, **opts.merge(builder: ShadcnFormBuilder), html: opts) do |form| yield form end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
shadcn-ui-0.0.10 | app/helpers/components/forms_helper.rb |
shadcn-ui-0.0.8 | app/helpers/components/forms_helper.rb |
shadcn-ui-0.0.5 | app/helpers/components/forms_helper.rb |