You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 8, 2022. It is now read-only.
Not really an issue as I solved it, but something to note for other users of dynamic_form.
I was implementing dynamic_form with a Plain Old Ruby Object that includes ActiveModel::Validations, and was getting the error in the subject line when trying to use <%= f.error_messages %>.
I didn't find any other instances of this issue, but it can be solved by defining to_model in the PORO:
class Download
include ActiveModel::Validations
attr_accessor :name
validates_presence_of :name
def to_model
self
end
end
Thanks for the gem, works great.
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Not really an issue as I solved it, but something to note for other users of
dynamic_form
.I was implementing
dynamic_form
with a Plain Old Ruby Object that includesActiveModel::Validations
, and was getting the error in the subject line when trying to use<%= f.error_messages %>
.I didn't find any other instances of this issue, but it can be solved by defining
to_model
in the PORO:Thanks for the gem, works great.
The text was updated successfully, but these errors were encountered: