3 ms·
How is the validator gem used in rails? I'm thinking of starting a rails project and I'd like to validate every single produced page, every time it's produced.
by ZeroGravitas 18y ago
How is the validator gem used in rails? I'm thinking of starting a rails project and I'd like to validate every single produced page, every time it's produced.
I'd assumed the best way to do it would be cache the output and run the validator 'offline' but I couldn't find any rails or rack projects that do this.
- bradgessler 18y agoI'm not sure, but I can say that it will slow your tests down quite a bit. If you're going to test every page you might just consider making your markup XHTML strict and test to make sure the XML is well formed.