This replaces strings such as:
:src => "images/student2.jpg"
with:
:src => asset_path("student2.jpg")
The vim command is:
:%s/\v"images\/(.*)"/asset_path("\1")/gc
This replaces strings such as:
:src => "images/student2.jpg"
with:
:src => asset_path("student2.jpg")
The vim command is:
:%s/\v"images\/(.*)"/asset_path("\1")/gc