Hack hack hack...

An open journal-- some of it written for you, but most of it is for me.

Planes

Devise on rails 4

Factory Girl

  • in the spec_helper remember to:
    require 'factory_girl'
    require 'factory_girl_rails'
    
    config.use_transactional_fixtures = false
    config.include FactoryGirl::Syntax::Methods
    

Patch vs. Post

Jquery

  • make sure you wait for the jquery to load you dumbass…

    $ -> $(‘.balloon’).on ‘click’, ->

    $(@).hide()
    

NOT

  $('.balloon').on 'click', ->
    $(@).hide()

Comments