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
.tc-navbar { | |
margin-left: 14em; | |
height: 55px; | |
width: 100%; | |
background-color: #ffffff; | |
position: fixed; | |
top: 0; | |
left: 0; | |
z-index: 9999; | |
border-bottom: 1px solid #e5e5e5; |
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
<%= bootstrap_form_for(@customer, inline_errors: false, label_errors: false) do |f| %> | |
<div class="row"> <!-- Row Start--> | |
<div class="col-md-10"> <!-- Col 1 Start--> | |
<div class="col-md-4"> <!-- First Name Start--> | |
<div class="input-group"> | |
<span class="input-group-addon"><span class="glyphicon glyphicon-user"></span></span> | |
<%= f.text_field :firstName, class: 'form-control', placeholder: "First Name", hide_label: true %> | |
</div> |
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
<%= bootstrap_form_for(@customer, inline_errors: false, label_errors: false) do |f| %> | |
<div class="row"> <!-- Row Start--> | |
<div class="col-md-10"> <!-- Col 1 Start--> | |
<div class="col-md-4"> <!-- First Name Start--> | |
<div class="input-group"> | |
<span class="input-group-addon"><span class="glyphicon glyphicon-user"></span></span> | |
<%= f.text_field :firstName, class: 'form-control', placeholder: "First Name", hide_label: true %> | |
</div> |
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
class CustomersController < ApplicationController | |
before_action :set_customer, only: [:show, :edit, :update, :destroy] | |
# GET /customers | |
# GET /customers.json | |
def index | |
@customers = Customer.all | |
@campers = Camper.all | |
end |
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
<%= bootstrap_form_for(@customer, inline_errors: false, label_errors: false) do |f| %> | |
<div class="row"> <!-- Row Start--> | |
<div class="col-md-10"> <!-- Col 1 Start--> | |
<div class="col-md-4"> <!-- First Name Start--> | |
<div class="input-group"> | |
<span class="input-group-addon"><span class="glyphicon glyphicon-user"></span></span> | |
<%= f.text_field :firstName, class: 'form-control', placeholder: "First Name", hide_label: true %> | |
</div> |
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
<%=image_tag("img_name.png", alt: "alt-text", class: "img-responsive")%> |
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
#Anything surrounded in parenthesis represent a databasename / tablename | |
# Any Command in mysql requires a semi colon{;} after each statement | |
#Start Mysql | |
mysql.server start # <------ In Terminal, say Ruby on rails Application --> | |
#Access Databases | |
mysql -uroot # <--- In Terminal --> | |
#Select Database |
NewerOlder