Responsive Images in Rails applications
Posted on .As a quick tip, here's how to generate a <picture> element within Rails that will instruct browsers how to load different images on different screen resolutions: In the above example I'm using standard media queries, you can obviously customize these to…