ç°å¢ï¼ rails (4.1.6) activerecord (4.1.6) mysql2 (0.3.16) Rails4 ã¨ããã Rails ã§ã«ã¦ã³ã¿ã¼ç¨ã«ã©ã ãã¤ã³ã¯ãªã¡ã³ãããç°¡åãªæ¹æ³ããªãã調ã¹ã¦ã¿ãã ããããã㨠MySQL ã ã£ãã以ä¸ã®ãã㪠SQL ãçºè¡ãããã update books set reviews_count = reviews_count + 1, updated_at = now() where id = ? ã«ã¦ã³ã¿ã¼ã®ã¤ã³ã¯ãªã¡ã³ãã¨åæã«ã½ã¼ãã®ããã«æ´æ°æ¥æãä¸ç·ã«æ´æ°ãããã æ¤è¨¼ç¨ç°å¢ã®ä½æ $ bundle exec rails new counter_app -d mysql -T --skip-bundle $ cd counter_app $ bin/bundle install --path vendor/bundle ã¢ã
{{#tags}}- {{label}}
{{/tags}}