Rails
Railsã®ã¢ãã«ã«ã¡ãã³ã¡ãã³ã¨å¦çã追å ãã¦ããã¨ããã¤ã®éã«ããµã¤ãºãè¨ãä¸ãã£ã¦ãã¾ã£ã¦ãããããã Railsã§ãã¸ãã¯ãæ¸ãå ´æã¨ãã¦ä¸ãããã¦ããå ´æã¯ã³ã³ããã¼ã©ãã¢ãã«ãªã®ã§ããã³ã³ããã¼ã©ã¯åç´ã«ããªãããã¨ããæãã«å¾ãã¨ãå¿ ç¶â¦
Railsã§ã¢ããªãä½ã£ã¦ãã¦ãã¢ãã«ã®æ´æ°ç³»ã¡ã½ãããã©ãå®ç¾©ããã®ãè¯ãã®ã ãããã¨è©¦è¡é¯èª¤ãã¦ããã®ã ããããããã§ããããããªãããªãã¨ãããã¿ã¼ã³ãåºã¾ã£ã¦ããã®ã§ã¡ã¢ã£ã¦ããã å¦çã¨ã¨ã©ã¼ãã§ãã¯ã®åé¢ ã¡ã½ããå®ç¾©å ã§ã¯ã¨ã©ã¼ãã§â¦
å¼ã°ãããã³ã«ååè¿ããå¤ãã+1ãããã®ãè¿ãã«ã¦ã³ã¿ã¼ã®ã¯ã©ã¹ãæ¸ãããã®ã®ãåºçªããªããªã£ãããä»å¾åããããªãã®ãæ¸ããããªã®ã§ã¡ã¢ã åä½ã¯MySQLã§è©¦ããã ãã¼ãã«ã®å®ç¾© class CreateCounters < ActiveRecord::Migration def change creâ¦
Single Table Inheritanceã§è¦ªåé¢ä¿ã«ããäºã¤ã®ã¯ã©ã¹Hoge, Fugaãããã¨ããã class Hoge < ActiveRecord::Base end class Fuga < Hoge end ãã®ã¨ãHogeã¯ã©ã¹ã®ãªãã¸ã§ã¯ãaããã£ãã¨ãã¦ãããFugaã¯ã©ã¹ã«å¤æãããã¨ããã ããããããããç¶æ³â¦
Railsã¢ããªãããããã®ã¡ã¼ã«ããã¯ã¹çµç±ã§ã¡ã¼ã«ãéä¿¡ãããã¨ããã¨ã¨ã©ã¼ã¡ãã»ã¼ã¸ãè¿ãããã ã¡ã¼ã«ãéãã«ã¯ã¾ãåä¿¡ãããã¨ããå 容ã®ãã®ã ã£ãã POP before SMTP ããã¯ãããã®ãµã¼ããPOP before SMTPã¨ããèªè¨¼æ¹å¼ãæ¡ã£ã¦ããããã§â¦
Railsã§è¤æ°äººéçºããã¦ããã¨ãä»ã®äººã®ã³ãããã«ãã¤ã°ã¬ã¼ã·ã§ã³ãã¡ã¤ã«ãå«ã¾ãã¦ãããã¨ãããã ãã®ãã¤ã°ã¬ã¼ã·ã§ã³ã®ãã¼ã¸ã§ã³ï¼ã¿ã¤ã ã¹ã¿ã³ãï¼ãæå ã«ãããã¤ã°ã¬ã¼ã·ã§ã³ã®ãã¡ææ°ã§ããã°ããã rake db:migrateãå®è¡ããã°ãã¼ã¿ãã¼â¦
è¦ããã«ãmetaã¿ã°ã«ããauthenticity_tokenãPOSTæã®ãã©ã¡ã¼ã¿ã§æ¸¡ãå¿ è¦ããããHTMLä¸ã®ãã¿ã³ãæ¼ãã¨sendHoge()é¢æ°ãå®è¡ãããã¨ããã <div ng-controller="HogeCtrl"> <button ng-click="sendHoge()">éã</botton> </div> ãã®ã¨ãsendHoge()ã¯æ¬¡ã®ããã«ãªãã HogeCtrl = function($scope, $http) { $scope.sendHoge = funâ¦