Skip to content

Instantly share code, notes, and snippets.

View EliseFitz15's full-sized avatar

Elise Riley EliseFitz15

  • ezCater
  • United States
View GitHub Profile

Active Record Associations Practice

Associations let us access our data in diverse and flexible ways, simplifying our queries and allow some of our CRUD functionality.

When we are creating apps we start with a map of our initial tables and build them out one at a time.

After we create a table we add any necessary associations. To get some practice, we will start by drawing an ER Diagram, determining the proper associations/relationships between models and test them out in pry.

Note: These are often questions you may get in a technical interview when it comes to modeling a database for an app.

@EliseFitz15
EliseFitz15 / group-project-winter-15.md
Last active January 3, 2016 21:12
winter-15-group-projects

#Winter 2015 Group Project Groups

Elise's Mentor Group

###Group 1

  • Carl Venezia
  • Jie Xu
  • Lawrence Kati
  • Tali Koss

###Group 2

@EliseFitz15
EliseFitz15 / untitled
Created January 26, 2016 20:51
datepicker.js
/**
* @preserve jQuery DateTimePicker plugin v2.4.5
* @homepage http://xdsoft.net/jqplugins/datetimepicker/
* (c) 2014, Chupurnov Valeriy.
*/
/*global document,window,jQuery,setTimeout,clearTimeout,HighlightedDate,getCurrentValue*/
(function ($) {
'use strict';
var default_options = {
i18n: {
@EliseFitz15
EliseFitz15 / daily-lesson-plan.md
Last active February 23, 2016 19:24
Winter-2015-Daily-Lesson-Plan.md
# This file is copied to spec/ when you run 'rails generate rspec:install'
ENV['RAILS_ENV'] ||= 'test'
require File.expand_path('../../config/environment', __FILE__)
# Prevent database truncation if the environment is production
abort("The Rails environment is running in production mode!") if Rails.env.production?
require 'spec_helper'
require 'rspec/rails'
# Add additional requires below this line. Rails is not loaded until this point!
# Requires supporting ruby files with custom matchers and macros, etc, in

API Tools Recommendation

Swaggerhub

Our recommendation is to use SwaggerHub for building out our documentation and building out some mocked endpoints for partners to see. SwaggerHub is a web app that pulls together a suite of Swagger products. Among to pros listed below, Swagger is also a common documentation tool and we know some partners will be familiar with it.

API Tools Considered