This is more tricky than it should be because url_for, asset_path, etc. all rely on different mechanisms.

Attached (see below) is some code to allow using unobtrusive JavaScript on pages fetched with an AJAX call.

Best results in other decks

makandra Curriculum

makandra offers an 8 month paid trainee program 🇩🇪 for junior developers that are looking to start a professional career in...

When things go wrong, for example, caused by a bad commit, we need to revert back to an earlier known...

Search in all decks