Fork me on GitHub
#reagent
<
2015-09-26
>
dorab00:09:24

I'm trying to use reagent-forms with bouncer for validation.

dorab00:09:59

Since bouncer stores errors with the key :bouncer.core/errors I was hoping to set that as an id in an alert field using reagent-forms like so

dorab00:09:11

[:div.alert-danger {:field :alert :id :bouncer.core/errors.foo}] where foo is the key of the error item.

dorab00:09:30

That didn't work (the alert does not show up), so I tried

dorab00:09:18

[:div.alert-danger {:field :alert :id [:bouncer.core/errors :foo]}]

dorab00:09:33

But that does not seem to work either.

dorab00:09:52

How can I specify an id that is namespace qualified?

phil11:09:57

Hey all, I've a modelling problem and need advice. Where's best to ask? Make a gist and post here?

phil11:09:01

Or on the mailing list?

colin.yates11:09:59

@phil - I don’t know what the heuristics/etiquette is, but long thoughtful discussions might be best on the mailing list otherwise they risk getting broken up and later on they aren’t easily discoverable.

colin.yates11:09:13

Maybe do a gist, start here and then move it elsewhere? Dunno.

colin.yates11:09:25

Also, I think a bunch of people are away at a conference