View style.css
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
// | |
// _oo0oo_ | |
// o8888888o | |
// 88" . "88 | |
// (| -_- |) | |
// 0\ = /0 | |
// ___/`---'\___ | |
// .' \\| |// '. | |
// / \\||| : |||// \ | |
// / _||||| -:- |||||- \ |
View application.html.erb
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
<%= render 'layouts/navbar' %> | |
# Put this flash message block between the navbar and the yield | |
<% flash.each do |name, msg| %> | |
<% unless flash_blacklist(name) %> | |
<%= content_tag(:div, class: flash_class(name)) do %> | |
<%= msg %> | |
<button type="button" class="close" data-dismiss="alert">×</button> | |
<% end %> | |
<% end %> |
View _form.html.erb
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
# Store#performance | |
# This is the old way of doing checkbox collections. | |
# Note the hidden field tag to make sure that unchecked items are passed to the server | |
<fieldset class='form-group mx-sm-3'> | |
<legend class='pt-4'>Performance</legend> | |
<div class='row'> | |
<% hidden_field_tag 'store[performance_ids][]', nil %> | |
<% Performance.all.each do |performance| %> | |
<div class='col col-sm-6 pt-2'> |
View rspec_matchers.rb
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
describe 'Expectation Matchers' do | |
describe 'equivalence matchers' do | |
it 'will match loose equality with #eq' do | |
a = "2 cats" | |
b = "2 cats" | |
expect(a).to eq(b) | |
expect(a).to be == b # synonym for #eq |
View configfolder.yml
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
# figaro gem | |
# config/application.yml | |
stripe_publishable_key: pk_test_TLr0qqdKhm0yX1bZtKC4kFAC | |
stripe_secret_key: sk_test_Qbppb2nkFEzPoquOdBym0JL2 | |
# rails 4.1 | |
# config/secrets.yml | |
stripe_publishable_key: pk_test_TLr0qqdKhm0yX1bZtKC4kFAC | |
stripe_secret_key: sk_test_Qbppb2nkFEzPoquOdBym0JL2 |
View _settings.scss
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
// Foundation for Sites Settings | |
// ----------------------------- | |
// | |
// Table of Contents: | |
// | |
// 1. Global | |
// 2. Breakpoints | |
// 3. The Grid | |
// 4. Base Typography | |
// 5. Typography Helpers |
View addToAdvance.js
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
// you may need to first load jquery | |
<script src='https://cdnjs.cloudflare.com/ajax/libs/jquery/2.0.0/jquery.js'></script> | |
$(document).ready(function () { | |
$('time span').remove(); | |
}); | |
// or if that doesn't work try this.... | |
var monthNames = [ "January", "February", "March", "April", "May", "June", |
View style.sass
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
.max-row-margin | |
width: 100% | |
margin-left: auto | |
margin-right: auto | |
max-width: initial |
View simple_form_bootstrap3.rb
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
SimpleForm.setup do |config| | |
config.input_class = 'form-control' | |
config.boolean_style = :nested | |
config.wrappers :bootstrap3, tag: 'div', class: 'form-group', error_class: 'has-error', | |
defaults: { input_html: { class: 'default_class' } } do |b| | |
b.use :html5 |
View form.htm.erb
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
<div class="form-inputs"> | |
<%= f.input :title, :input_html => { :value => "This is title field value." } %> | |
<%= f.input :body, :input_html => { :value => "This is body field value." } %> | |
</div> | |
or | |
<div class="form-inputs"> | |
<%= f.input :title, input_html: { :value => "This is title field value." } %> | |
<%= f.input :body, input_html: { :value => "This is body field value." } %> |
NewerOlder