Skip to content

Instantly share code, notes, and snippets.

@sabril
Created August 3, 2017 23:42
Show Gist options
  • Save sabril/647dc1e230b270d42eb908f323e9bbef to your computer and use it in GitHub Desktop.
Save sabril/647dc1e230b270d42eb908f323e9bbef to your computer and use it in GitHub Desktop.
Halaman Index
<div class="row">
<br/>
<% @courses.each do |course| %>
<%= link_to course do %>
<div class="col s12 m6">
<div class="card">
<div class="card-image waves-effect waves-block waves-light">
<%= image_tag course.image.url %>
</div>
<div class="card-content">
<span class="card-title grey-title text-darken-4">
<%= course.title %>
</span>
</div>
</div>
</div>
<% end %>
<% end %>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment