Skip to content

Instantly share code, notes, and snippets.

Backbone.Collection = {
fetch: function() {
var requestUrl;
if (isAFunction(this.url)) {
requestUrl = this.url();
} else {
requestUrl = this.url;
}
@CH-JesseMa
CH-JesseMa / test_setup
Last active August 29, 2015 14:00 — forked from catm705/gist:10011321
Setting Up App for Testing
---------------------------------------------------------------------------------------
#### If you want to create a new GIT repo + ADD travis-ci.org #####
--------------------------------------------------------------------------------------
1.) cd into your app
2.) git init --> from inside your folder
3.) Create the new repo on Github
(Below should show up after creating new Repo)
* git remote add origin [email protected]:catm705/registry_app.git
* git push -u origin master
development: &defaults
adapter: postgresql
encoding: unicode
pool: 5
host: localhost
username: <%= `echo $USER`.chomp %>
password:
database: <%= File.basename(Rails.root) %>_development
test:
@CH-JesseMa
CH-JesseMa / guard_setup.md
Created April 6, 2014 15:08 — forked from phlco/guard_setup.md
How to Setup Guard

Setting up Guard with Rspec

Guard watches a directory and runs commands when it sees changes to files.

This is great for automating your rspec tests!

Set up

Add guard and guard-rspec to your Gemfile

@CH-JesseMa
CH-JesseMa / git_issue_template.md
Last active August 29, 2015 13:57
How to Submit Git Issues (template)

CONTEXT

WHAT USER STORY YOU ARE WORKING ON:

I am working on the user story "User wants to log in."

WHAT YOU ARE TRYING TO DO:

I am trying to have the user update their profile.