These are chat archives for dry-rb/chat

15th
Aug 2017
Chris Richards
@cmrichards
Aug 15 2017 11:57
Is there a recommended way to use the result of schema.call({...}) with Rails's form_with to populate a form? Where schema is a Dry::Validation.Form
I suppose schema.call({}).output could be used to create an OpenStruct object?
Tim Riley
@timriley
Aug 15 2017 12:14
@cmrichards yeah, you'd have to build your own kind of shim like that
Chris Richards
@cmrichards
Aug 15 2017 14:14
How would you coerce a string to a date using Dry::Validation.Form?
ah.. a custom type
Roman Kolesnev
@ffloyd
Aug 15 2017 17:40
Hi guys! Where I can found manual about defining my own custom dry-types?