Shortcode sample

Code executed after theme install:
shortcode_add("bootstrap_slider", "partials/bootstrap_slider")
Code located at: mytheme/views/partials/bootstrap_slider.html.erb
<%
id = "camaleon-car-#{Time.now.to_i}"
images = attributes["images"].split(",")
%>
<div id="<%= id %>" data-interval="false" class="carousel slide" data-ride="carousel" style="<%= attributes["style"] %>">
<div class="carousel-inner" role="listbox" style="width: 100%;">
<% images.each_with_index do |item, index| %>
<div class="item <%= "active" if index == 0 %>">
<img src="<%= item %>" alt="">
</div>
<% end %>
</div>
<a style="top: 42%;" class="left carousel-control" href="#<%= id %>" role="button" data-slide="prev"></a>
<a style="top: 42%;" class="right carousel-control" href="#<%= id %>" role="button" data-slide="next"></a>
</div> 
Sample in html:
[ bootstrap_slider images='https://myimage1.jpg,https://myimage2.jpg,https://myimage3.jpg' ]
Remove space in the sample [ bootstrap images...... ] into [bootstrap images.....]