Skip to content

Instantly share code, notes, and snippets.

@ornerymoose
ornerymoose / david.css
Created May 4, 2012 20:26
Scss being rendered but things are off (sidebar is overlapping, padding isn't right in some areas)
#about.static .clear {
clear: both;
}
#about.static body {
background: #243B78;
background: -moz-linear-gradient(top, #243B78 0%, #14254F 100%);
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #243B78), color-stop(100%, #14254F));
background: -webkit-linear-gradient(top, #243B78 0%, #14254F 100%);
background: -o-linear-gradient(top, #243B78 0%, #14254F 100%);
@ornerymoose
ornerymoose / david.css
Created May 4, 2012 20:27
Scss being rendered but things are off (sidebar is overlapping, padding isn't right in some areas)
#about.static .clear {
clear: both;
}
#about.static body {
background: #243B78;
background: -moz-linear-gradient(top, #243B78 0%, #14254F 100%);
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #243B78), color-stop(100%, #14254F));
background: -webkit-linear-gradient(top, #243B78 0%, #14254F 100%);
background: -o-linear-gradient(top, #243B78 0%, #14254F 100%);
= form_for @order, :url => {:action => "confirm"} do |f|
-if @order.errors.any?
#error_explanation
%h2= pluralize(@order.errors.count, "error") prohibited this order from being saved:
%ul
- @order.errors.full_messages.each do |msg|
%li= msg
.fields
= render :partial => "shared/sidebar_nav"
#about.static
.page-header
%h1 Please complete this form and submit it. Our CouponTrade team will connect with you regarding your order within 1 business day.
%section.content
.container
%h4 Please complete this form and submit it. Our CouponTrade team will connect with you regarding your order within 1 business day.
.billing-shipping-container
.billing
%h3 Billing Information
= render :partial => "shared/sidebar_nav"
#about.static
.page-header
%h1 Please complete this form and submit it. Our CouponTrade team will connect with you regarding your order within 1 business day.
%section.content
.container
%h4 Please complete this form and submit it. Our CouponTrade team will connect with you regarding your order within 1 business day.
.billing-shipping-container
.billing
%h3 Billing Information
%link(rel="stylesheet" type="text/css" href="sass/static/bulk_order_form_style.scss")
#about.static
.container
%h4
Please complete this form and submit it. Our CouponTrade team will connect with you regarding your order within 1 business day.
.billing-shipping-container
.billing
%h3
Billing Information
.date-cust
= render :partial => "shared/sidebar_nav"
#about.static
.container
%h4
Please complete this form and submit it. Our CouponTrade team will connect with you regarding your order within 1 business day.
.billing-shipping-container
.billing
%h3
Billing Information
.date-cust
.bottom-form
%h3 Is This For:
%input{:name => "employeeIncentives", :type => "checkbox", :value => "employeeIncentives"}
%label.textlabel{:for => "employeeIncentives"} Employee Incentives
%input{:name => "corporateLoyalty", :type => "checkbox", :value => "corporateLoyalty"}
%label.textlabel{:for => "corporateLoyalty"} Corporate Loyalty Program*
%input{:name => "nonProfit", :type => "checkbox", :value => "nonProfit"}
%label.textlabel{:for => "nonProfit"} Non-Profit Fundraiser
%input{:name => "corporateGifting", :type => "checkbox", :value => "corporateGifting"}
%label.textlabel{:for => "corporateGifting"} Corporate Gifting
class BulkOrder
attr_accessible :amex, :billing_address, :billing_city, :billing_company,
:billing_email_address, :billing_fax, :billing_phone,
:billing_state, :billing_zip, :bulk_order_date, :check,
:corporate_gifting, :corporate_loyalty_program, :credit_card,
:customer_number, :discover, :employee_incentives, :gift_card,
:initial_total, :mc, :non_profit_fundraiser, :overall_total,
:processing_fee, :quantity, :requested_brands, :shipping_address,
:shipping_city, :shipping_company, :shipping_fee, :shipping_name,
:shipping_phone, :shipping_state, :shipping_zip, :subtotal, :unit_cost, :visa
@ornerymoose
ornerymoose / bulk_order.rb
Created May 8, 2012 14:56
undefined method `model_name' for NilClass:Class-this error is occurring in the view
class BulkOrder
attr_accessible :amex, :billing_address, :billing_city, :billing_company,
:billing_email_address, :billing_fax, :billing_phone,
:billing_state, :billing_zip, :bulk_order_date, :check,
:corporate_gifting, :corporate_loyalty_program, :credit_card,
:customer_number, :discover, :employee_incentives, :gift_card,
:initial_total, :mc, :non_profit_fundraiser, :overall_total,
:processing_fee, :quantity, :requested_brands, :shipping_address,
:shipping_city, :shipping_company, :shipping_fee, :shipping_name,
:shipping_phone, :shipping_state, :shipping_zip, :subtotal, :unit_cost, :visa