assaf / vanity

Experiment Driven Development for Ruby
http://vanity.labnotes.org
MIT License
1.55k stars 269 forks source link

Connection issues can go unnoticed with rails #346

Closed dgmora closed 6 years ago

dgmora commented 6 years ago

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.