Is t开发者_开发百科here a plugin/gem to log/record the history of rails script/generate commands?
I added code to script/generate and that does the trick.
CMD = "#{$0} #{ARGV.join(' ')}\n"
File.open(File.expand_path('../../log/generate.log',
__FILE__), 'a') {|f| f.write(CMD) }
精彩评论