Celso Fernandes

Results 58 comments of Celso Fernandes

are you pretty sure? this is used in a lot of projects, could you please provide more information?

if you could, please, provide a code reproducing your issue we have [tests](https://github.com/trailblazer/reform/blob/master/test/validation/dry_validation_test.rb) for your case, it's covered, if you are in an edge case, we need your help to...

hi @lfilho as nobody decide a way.... @orangain opened a PR to support it on the application, its harder to have translated, support on the app is the easiest way...

@doits thank you for further information... and checking some [reform test](https://github.com/trailblazer/reform/blob/e1c94c9f8164a12259cd373b7249a670c327dc73/test/validate_test.rb#L53) the current is exactly this _not-indexed_ error doing a better research it's a feature added in rails 5, so...

@doits yeah, your `all_errors` is a great way to check... in the failing test, I can check: ```ruby nested_form.tracks[0].errors.must_equal {title: ['can\'t be blank']} ``` works great @fran-worley you mean that...

@TylerRick are you using `reform-rails` gem or just reform? Usually `reform-rails` add the `Form::ActiveModes` that makes the form builder happy. `MyForm.ancestors` includes `Reform::Form::ActiveModel? look the [source](https://github.com/trailblazer/reform-rails/blob/25d37c2465baed3a4ba7dc7c01734a5308dc1732/lib/reform/form/active_model.rb#L10) that's exactly what you...

more info on the [docs](http://trailblazer.to/gems/reform/rails.html#activemodel-compliance)

ohhhh yeah @TylerRick , now I see what you are facing How would you make with "plain" Rails? Create a model the inherits `Hash` and include `ActiveModel::Model` on this class,...

actually, I call the nested inside an step and stub `MyNestedOperation.call` is the better I can do atm hehehhe

it's so rspec hehehe I prefer the purity (and rubity) of minitest heheh but it's good to learn your technique, can be useful try to make something on minitest, thanks...