Skip to content

Instantly share code, notes, and snippets.

@mankind
mankind / application.js
Last active April 7, 2016 21:58
ember-cli solving rails csrf problems
import Ember from 'ember';
export default Ember.Route.extend({
//a = Charity.__container__.lookup('controller:application')
//a.get('csrfService')
//a.get('csrfService').token.authenticity_token
//or
//a.csrfService
//a.csrfService.token.authenticity_token
@coreyhaines
coreyhaines / .rspec
Last active August 15, 2024 15:13
Active Record Spec Helper - Loading just active record
--colour
-I app