ã¡ã¢ ActiveRecordãçæããSQLã¯é常ã/log/development.logãªã©ã®ãã°ãã¡ã¤ã«ã«åããããããããRailsã®ã³ã³ã½ã¼ã«ã«åºåããæ¹æ³ã å®ã¯ã¨ã¦ãç°¡åã§ãã°ã®åãåºãå ãæ¨æºåºåã«æå®ããã ãã ruby script/console # ãã°ã®åºåå ãæå®ããã以ä¸ã ActiveRecord::Base.logger = Logger.new(STDOUT) # ActiveRecordãæä½ããã¨ä»¥ä¸ã®ããã«SQLã®ãã°ãåºåãããã User.find(:first) [4;36;1mSQL (0.0ms)[0m [0;1mSET NAMES 'utf8'[0m [4;35;1mSQL (0.0ms)[0m [0mSET SQL_AUTO_IS_NULL=0[0m [4;36;1mUser Load (0.0ms)[0m [0;1mSELECT
{{#tags}}- {{label}}
{{/tags}}