-
Hey everyone. Tried using def template
helpers.simple_form_for @record, url: @url do |f|
f.input :whatever
end
end if I put a edit: it also sometimes throws a |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
@Vagab For me it worked by including the respective modules for the form helpers, and those from ActionView that the helper uses: include Phlex::Rails::Helpers::FormFor
include Phlex::Rails::Helpers::DOMClass
include SimpleForm::ActionViewExtensions::FormHelper
def template
simple_form_for @record, url: @url do |f|
f.input :whatever
end
end |
Beta Was this translation helpful? Give feedback.
@Vagab For me it worked by including the respective modules for the form helpers, and those from ActionView that the helper uses: