Open goldelehr opened 3 weeks ago
Hi goldelehr, does your ActiveRecord model for your @user object have a field reason: Probably not and my guess is that this is causing the error… So add a :reason datafield to your AR model and it should work.
Hi ediathome,
Yes, my application has a user object that contains a 'reason' field. The issue arises when ActionView::AbstractRenderer::ObjectRendering
attempts to access the to_partial_path
method on an ApplicationForm::Field
object, which does not exist for these specific objects. However, it does exist for the underlying user object.
Hello,
when running the example code from the README's Form Field Guide i get an ArgumentError upon reaching this block:
i get this error:
ArgumentError #<Superform::Rails::Form::Field:0x00007f849562e168 @key=:reason, .... > (is not an ActiveModel-compatible object. It must implement :to_partial_path.)
I'm renderung the form with
render SignupForm.new @user
with
@user
being an ActiveRecord backed entity.Is there something wrong with how i call the form?
Thanks for your help