@@ -378,8 +378,8 @@ def preload_link_tag(source, options = {})
378
378
# You can add HTML attributes using the +options+. The +options+ supports
379
379
# additional keys for convenience and conformance:
380
380
#
381
- # * <tt>:size</tt> - Supplied as "{Width}x{Height}" or "{Number}" , so "30x45" becomes
382
- # width="30" and height="45", and "50" becomes width="50" and height="50".
381
+ # * <tt>:size</tt> - Supplied as <tt>"#{width}x#{height}"</tt> or <tt>"#{number}"</tt> , so <tt> "30x45"</tt> becomes
382
+ # <tt> width="30" height="45"</tt> , and <tt> "50"</tt> becomes <tt> width="50" height="50"</tt> .
383
383
# <tt>:size</tt> will be ignored if the value is not in the correct format.
384
384
# * <tt>:srcset</tt> - If supplied as a hash or array of <tt>[source, descriptor]</tt>
385
385
# pairs, each image path will be expanded before the list is formatted as a string.
@@ -511,8 +511,8 @@ def picture_tag(*sources, &block)
511
511
#
512
512
# * <tt>:poster</tt> - Set an image (like a screenshot) to be shown
513
513
# before the video loads. The path is calculated like the +src+ of +image_tag+.
514
- # * <tt>:size</tt> - Supplied as "{Width}x{Height}" or "{Number}" , so "30x45" becomes
515
- # width="30" and height="45", and "50" becomes width="50" and height="50".
514
+ # * <tt>:size</tt> - Supplied as <tt>"#{width}x#{height}"</tt> or <tt>"#{number}"</tt> , so <tt> "30x45"</tt> becomes
515
+ # <tt> width="30" height="45"</tt> , and <tt> "50"</tt> becomes <tt> width="50" height="50"</tt> .
516
516
# <tt>:size</tt> will be ignored if the value is not in the correct format.
517
517
# * <tt>:poster_skip_pipeline</tt> will bypass the asset pipeline when using
518
518
# the <tt>:poster</tt> option instead using an asset in the public folder.
0 commit comments