Created
February 22, 2017 17:01
-
-
Save Phoenix23A/e88010bbf172f32788f5d9b3eb98f4fe to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Nameofapp</title> | |
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css"> | |
<%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %> | |
<%= javascript_include_tag 'application', 'data-turbolinks-track' => true %> | |
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<%= csrf_meta_tags %> | |
</head> | |
<body> | |
<h1>Welcome to Bike Berlin</h1> | |
<h2>Your source for used bikes in Berlin</h2> | |
<nav> | |
<ul> | |
<li>Home</li> | |
<li>About</li> | |
<li>Contact</li> | |
</ul> | |
</nav> | |
<%= yield %> | |
<% @products.each do |product| %> | |
<tr :class => "crazy"> | |
<h2 :class => "loco"><%= product.name %></h2> | |
<td><%= product.description %></td> | |
<td><%= product.image_url %></td> | |
<td><%= link_to 'Show', product %></td> | |
<td><%= link_to 'Edit', edit_product_path(product) %></td> | |
<td><%= link_to 'Destroy', product, method: :delete, data: { confirm: 'Are you sure?' } %></td> | |
</tr> | |
<% paragraph_number = 1 %> | |
<% 5.times do %> | |
<p>This is paragraph number <%= paragraph_number %></p> | |
<% paragraph_number = paragraph_number + 1 %> | |
<% end %> | |
</body> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment