Skip to content

Instantly share code, notes, and snippets.

View austinklenk's full-sized avatar

Austin Klenk austinklenk

  • Master Tech RV
  • Elkhart, Indiana
View GitHub Profile
.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;
<%= 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>
<%= 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>
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
<%= 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>
@austinklenk
austinklenk / RoR Links
Created November 21, 2014 00:46
Ruby on Rails Links
@austinklenk
austinklenk / Mysql Server Commands
Last active August 29, 2015 14:10
Access Mysql Server from Terminal
#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