This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# doesn't fucking work | |
class Logo < ActiveRecord::Base | |
state_machine :state, :initial => :initial do | |
# here vvv | |
after_transition :initial => :used, :do => :test_callback |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
run 'rm public/index.html' | |
run 'rm public/favicon.ico' | |
run 'rm public/images/rails.png' | |
# remove Prototype defaults | |
run 'rm public/javascripts/controls.js' | |
run 'rm public/javascripts/dragdrop.js' | |
run 'rm public/javascripts/effects.js' | |
run 'rm public/javascripts/prototype.js' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Prototype's helper for quick and easy observing | |
click events on different elements including | |
anchors with '#' href | |
Usage examples: | |
instead of: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Prototype toQueryString fix | |
(function(){ | |
'use strict'; | |
function typeOf(obj) { | |
if (obj instanceof Date) { | |
return 'date'; | |
} else if (Object.isArray(obj)) { | |
return 'array'; |
NewerOlder