Interpolation works with double quotes, not single quotes.
Change
style="background-image: url(<%= asset_path '#{image}.jpg' %>);"
To
style='background-image: url(<%= asset_path "#{image}.jpg" %>);'
or
style="background-image: url(<%= asset_path image %>.jpg);"