reform icon indicating copy to clipboard operation
reform copied to clipboard

Form objects decoupled from models.

Results 39 reform issues
Sort by recently updated
recently updated
newest added

This ticket was created when using the 'improve-dry-integration' branch created by @fran-worley 2 different error outputs formats are available when using dry-validation (tested with dry-validation 0.10.3) - Hash using the...

dry-validation integration

Reform version: 2.2.1 **Given:** I have a very complex data structure which I compose into a Twin with nested properties. The Twin then serves as model for a Form: ```...

I often deal with form objects where the structure of the HTML form and the submitted params hash don't have much in common with the data structure of the models....

``` ruby class SampleForm < Reform::Form model :user property :status end form = SampleForm.new(OpenStruct.new(status: 'active')) form.validate(status: nil) form.save { |data| puts(data) } # => {} form = SampleForm.new(OpenStruct.new(status: 'active')) form.validate(status:...

Hey folks, I'd like to start a discussion about making Reform work with rom-rb repositories. We added support for commands in repositories, so now storing data in rom looks like...

Hello again. I have another problem with my not-normal form: ``` Ruby lass PostCommitAction::ConditionGroupForm < Reform::Form include Reform::Form::ModelReflections model 'post_commit_action/condition_group' property :cond_type collection :condition_groups, form: PostCommitAction::ConditionGroupForm end ``` I get...

Let's say you have a parent form, which wants to display a nested form - if your model already has a `has_many` association declared, reform will discover that and will...

What happened to `sync` option that could be passed to properties for customizing syncing logic? I found it to be pretty useful in some case and with Reform 2.x it's...

ActiveModel has added support to pick errors for specific field using `full_messages_for` method. https://api.rubyonrails.org/classes/ActiveModel/Errors.html#method-i-full_messages_for SimpleForm seems to be using it to generate errors, but gives exception for reform's `errors` object....