Skip to content

Instantly share code, notes, and snippets.

@argent-smith
argent-smith / attach-select2.js.coffee
Created October 4, 2012 19:30
a hack attaching select2 to best_in_place
# connecting select2 to the appropriate hooks:
#
# hard case: best_in_place's select
$ ->
# first, find the mount point
$('body').on 'best_in_place:activate', '.best_in_place', ->
# second, attach empty update() to `this` to screen the downstream calls
# which otherwise will cause an error
@KenneyE
KenneyE / rails_template.rb
Last active August 29, 2015 14:00
Overwriting defaults in new Rails app using a template
# template.rb
# Helpful links:
# Templates doc
# http://guides.rubyonrails.org/rails_application_templates.html
# Generator docs - in particular section 9
# http://guides.rubyonrails.org/generators.html