This file contains 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
type = ARGV[0] | |
types = ["model", "controller"] | |
def strip_down_filename(f,token) | |
f.split("/").last.gsub("#{token}.rb","") | |
end | |
if !type || !types.include?(type) | |
puts "Usage: 'ruby missing_tests.rb [ model|controller ]'" | |
else |
This file contains 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
function fitImage(image_container, image_url, el, callback) { | |
//hide image until loaded | |
$(image_container,el).html('<img src="'+image_url+'"/>'); | |
var image = $(image_container+' img',el); | |
$(image,el).css({ | |
'display':'none' | |
}) | |
//set a spinner animation in the background of the container |
This file contains 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
.button-container { | |
width:100%; | |
} | |
.button-container.right { | |
text-align:right; | |
} | |
a.button { | |
display:block; |
This file contains 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
#Put this in application.rb, or in a rake task initialize code | |
if defined?(Rails) && (Rails.env == 'development') | |
Rails.logger = Logger.new(STDOUT) | |
end |