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
@import url('normalize'); | |
@media print{ | |
@page { | |
size: landscape; | |
margin: 0px; | |
text-align: center; | |
-webkit-transform: rotate(-90deg); | |
} | |
.order-info { |
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
guests GET /guests(.:format) guests#index | |
POST /guests(.:format) guests#create | |
new_guest GET /guests/new(.:format) guests#new | |
edit_guest GET /guests/:id/edit(.:format) guests#edit | |
guest GET /guests/:id(.:format) guests#show | |
PATCH /guests/:id(.:format) guests#update | |
PUT /guests/:id(.:format) guests#update | |
DELETE /guests/:id(.:format) guests#destroy | |
calls GET /calls(.:format) calls#index | |
POST /calls(.:format) calls#create |
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
Rails.application.routes.draw do | |
resources :notes | |
resources :guests | |
resources :calls | |
devise_for :users, controllers: { sessions: 'users/sessions', :invitations => 'users/invitations' } | |
resources :users, only: [:show] | |
resources :campers | |
resources :customers do |
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 OrdersController < ApplicationController | |
before_action :set_order, only: [:show, :edit, :update, :destroy] | |
layout "order", only: [:show] | |
# GET /orders | |
# GET /orders.json | |
def index | |
@orders = Order.all.reverse_order | |
end | |
# GET /orders/1 |
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
odule Quickbooks | |
module Model | |
class Customer < BaseModel | |
XML_COLLECTION_NODE = "Customer" | |
XML_NODE = "Customer" | |
REST_RESOURCE = 'customer' | |
include NameEntity::Quality | |
include NameEntity::PermitAlterations | |
xml_name XML_NODE |
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
<%= stylesheet_link_tag 'bootstrap-datepicker' %> | |
<%= javascript_include_tag 'bootstrap-datepicker' %> | |
<%= bootstrap_form_for([@camper, @order], label_errors: true, inline_errors: false) do |f| %> | |
<div class="row"><!-- Date Fields Start --> | |
<div class="col-md-4"><%= f.text_field :title, label: "Work Order Name" %></div> | |
<div class="col-md-4"><%= f.text_field :dateIn, label: "Date In", class: "datepicker" %></div> | |
<div class="col-md-4"><%= f.text_field :dateOut, label: "Date Out", class: "datepicker" %></div> | |
</div><!-- Date Fields 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
Sales-Macbook-Air:Workorder serveradmin$ rake routes | |
Prefix Verb URI Pattern Controller#Action | |
new_admin_session GET /admins/sign_in(.:format) devise/sessions#new | |
admin_session POST /admins/sign_in(.:format) devise/sessions#create | |
destroy_admin_session DELETE /admins/sign_out(.:format) devise/sessions#destroy | |
admin_password POST /admins/password(.:format) devise/passwords#create | |
new_admin_password GET /admins/password/new(.:format) devise/passwords#new | |
edit_admin_password GET /admins/password/edit(.:format) devise/passwords#edit | |
PATCH /admins/password(.:format) devise/passwords#update | |
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
// application_helper.rb | |
def us_states | |
[ | |
['Alabama', 'AL'], | |
['Alaska', 'AK'], | |
['Arizona', 'AZ'], | |
['Arkansas', 'AR'], | |
['California', 'CA'], | |
['Colorado', 'CO'], |
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
# Customer Search that works | |
### Search Field in Customer Index Page with Table | |
``` | |
<%= search_form_for @search do |f| %> | |
<th colspan="2"><%= f.text_field :lastName_cont, class: 'customer-search', placeholder: 'Search By Last Name' %></th> | |
<th><%= f.submit "Search", class: 'btn btn-info btn-block' %></th> | |
<% end %> | |
``` |