Created
February 22, 2017 17:07
-
-
Save Phoenix23A/8e706a615d335ea24a8d91602f72c0fa 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 %> | |
<%= form_for(@product) do |f| %> | |
<% if @product.errors.any? %> | |
<div id="error_explanation"> | |
<h2><%= pluralize(@product.errors.count, "error") %> prohibited this product from being saved:</h2> | |
<ul> | |
<% @product.errors.full_messages.each do |message| %> | |
<li><%= message %></li> | |
<% end %> | |
</ul> | |
</div> | |
<% end %> | |
<div class="field"> | |
<%= f.label :name %><br> | |
<%= f.text_field :name %> | |
</div> | |
<div class="field"> | |
<%= f.label :description %><br> | |
<%= f.text_area :description %> | |
</div> | |
<div class="field"> | |
<%= f.label :image_url %><br> | |
<%= f.text_field :image_url %> | |
</div> | |
<div class="actions"> | |
<%= f.submit %> | |
</div> | |
<div class="field"> | |
<%= f.label :color %><br> | |
<%= f.text_field :color %> | |
</div> | |
<% end %> | |
<div class="container-fluid"> | |
<div class="row"> | |
<% @products.each do |product| %> | |
<div class="col-sm-2 col-md-4"> | |
<%= image_tag("racebike.jpg", class: "img-responsive") %> | |
<h1>Bike 1</h1> | |
<p>Pretty cool bike</p> | |
<strong>$ 42</strong> | |
</div><!-- /col --> | |
<% end %> | |
</div> | |
</div> | |
</body> | |
<footer> | |
© 2015 Bike Berlin | |
</footer> | |
</html> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment