You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 16, 2024. It is now read-only.
When PushType can't find a node, it raises ActiveRecord::RecordNotFound. I realised that I can add a rescue_from handler to my ApplicationController in order to handle this gracefully, but this isn't documented.
It would be helpful to add some doc for this, but I actually think it would be better to ensure that the *permalink route doesn't match unless the permalink exists in the database. Then, users can put other routes after the mount_push_type call and define their own handling for 404s (or just let Rails do its default thing, rendering public/404.html).