blocknotes / tiny_admin

A compact and composable dashboard component for Ruby
MIT License
11 stars 0 forks source link

Is there a way to add flash messages to a page? #48

Open pboling opened 4 months ago

pboling commented 4 months ago

I haven't been able to figure it out, and there are no examples in the documentation or specs.

I'm reading through the source, but it isn't clear how the various Flash mentions are connected.

pboling commented 4 months ago

In other words, I think there is a bug, or missing documentation. I've tried everything I can think of and I can't get them to render.

pboling commented 4 months ago

So far I have tried setting flash via:

And a bunch of other crazy things...

I think the issue is that I am expected to send the alerts / flashes in to the prepare_page call somehow. This doesn't make any sense to me since it should have access to the rodauth.flash.

@blocknotes any idea how to use flash?

pboling commented 4 months ago

I have gotten it to work, but it doesn't seem to be the intended way to do it.

blocknotes commented 3 months ago

Thanks for your feedback @pboling - I'll make some evaluations when possible.