assaf/vanity

Connection issues can go unnoticed with rails

dgmora opened this issue · 0 comments

While setting up vanity locally with rails and puma I found some issues. When going to /vanity I got ActionView::Template::Error undefined method vanity_html_safe.

I finally added a Vanity.reconnect in an initializer and the issue was gone.
It could be that vanity was not loaded because it was disconnected. Here Vanity loads only if there is a connection.

Wouldn't it be better if there was an error or a warning? I would rather have an error because there is no connection than having it failing silently.