|
Hey everyone. Tried using def template
helpers.simple_form_for @record, url: @url do |f|
f.input :whatever
end
endif I put a edit: it also sometimes throws a |
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 |
@Vagab For me it worked by including the respective modules for the form helpers, and those from ActionView that the helper uses: