<%= javascript_include_tag 'main', 'data-turbolinks-track' => true %>
<div id="carousel-example-generic" class="carousel slide" data-ride="carousel">
	<ol class="carousel-indicators">
	</ol>
	<div class="carousel-inner" role="listbox">
		<div class="item slid">
			<img src="" alt=""> <!-- src and title --> 
			<div class="carousel-caption">
				<h3><!--title--> TITLE</h3>
				<p><!--text--> TEXT</p>
			</div>
		</div>
	</div>
	<a class="left carousel-control" href="#carousel-example-generic" role="button" data-slide="prev">
		<span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
		<span class="sr-only">Previous</span>
	</a>
	<a class="right carousel-control" href="#carousel-example-generic" role="button" data-slide="next">
		<span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
		<span class="sr-only">Next</span>
	</a>
</div>
<div class="notice"><%= notice %></div>
<div class="alert"><%= alert %></div>

<%= javascript_include_tag 'main', 'data-turbolinks-track' => true %>
<div id="carousel-example-generic" class="carousel slide" data-ride="carousel">
	<ol class="carousel-indicators">
	</ol>
	<div class="carousel-inner" role="listbox">
		<% @images.each do |image| %>
			<div class="item slid">
				<%= image_tag image.image.url(:medium) %>
				<div class="carousel-caption">
					<h3><%= image.title %></h3>
					<p><%= image.text %></p>
				</div>
			</div>
		<% end %>
	</div>
	<a class="left carousel-control" href="#carousel-example-generic" role="button" data-slide="prev">
		<span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
		<span class="sr-only">Previous</span>
	</a>
	<a class="right carousel-control" href="#carousel-example-generic" role="button" data-slide="next">
		<span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
		<span class="sr-only">Next</span>
	</a>
</div>
<div class="notice"><%= notice %></div>
<div class="alert"><%= alert %></div>

Add display images to Home page
Add display images to Home page
