#318 Upgrading to Rails 3.2 - RailsCastsãè¦ã¦ ææã¡ã®Rails3.1ã¢ããªãRails3.2.2ã¸upgradeãã¦ã¿ã¾ããã ãã¨ãå¾åã¯æ°æ©è½ã®ã試ãã§ãã ãã§ã«Rails 3.2.2ããªãªã¼ã¹ããã¦ãã¾ãã 3.1ç³»ããä¸æ°ã«3.2.2ã¸upgradeãå¯è½ã§ãã upgradeä½æ¥èªä½ã¯ã3.1ã®æã®ãããªé¢åãã¯ç¡ã ããããæ®éã®upgradeä½æ¥ã§ããã æºå 0.Rails3.1㸠Rails2ç³»ã®äººã¯ã²ã¨ã¾ã Rails3.1.0ã¸ã®upgradeæ¹æ³ - ããããããããæ¥è¨ãã¡ã㸠1.Rails3.1(3.1.4)ã®ææ°ã¸ 1)Gemfileå ã®railsã®versionãããã 2)bundle update rails 3)bundle exec rake rails:update 4)å·®åã確èªããªããå¿ è¦ãªç®æã¯
#282 Upgrading to Rails 3.1 - RailsCastsãè¦ã¦ã The Ruby Toolbox SearchãRails3.1.0ã«ç§»è¡ãã¦ã¿ã¾ãããã (諸åé¡ãããæªããã㤠http://www.toolboxsearch.tk/ããã£ã¡ã«ç§»è¡ãã¦ãããã¤ãã¦ã¾ã ï¼ æã£ããã大å¤ã§ããã ããããåµã£ãã®ã§ãå人çã«ã¯Rail2.3ããRail3.0ã¸ã®ç§»è¡ããããã©ãå°è±¡ã§ãã productionã§ã®ç¢ºèªã¯è¦å®æ½ã§ãã ãã¨ãasset pipelineã¯ãå¤åã¯ã¾ãã¨æãã®ã§ Ruby on Rails Guides: Asset Pipelineãä¸èªããã®ã ãããã¨æãã¾ãã æºå 1.ã3.0ç³»ãã®ææ°ï¼3.0.10ï¼ã¸upgrade 1)Gemfileå ã®railsã®versionãããã 2)bundle update rails 3
ä¸äººã§ä½¿ã£ã¦ãscaffoldã«æ¯ãçãããããªRails 2.3.5ã®ã¢ããªãRails 3.0ã«ã¢ããã°ã¬ã¼ãããã¾ã§ã®ã¡ã¢ã§ããããã¾ãæ å ±ããªãã®ã§ææ¢ãã§ãã£ã¦ã¿ã¦ããã®å¾ã«ãããããã¨ããã®ããªã¼ãã¨ããã®ãã¾ã¨ãã¾ããããã£ã¨ããæ¹æ³ãã£ããæãã¦ãã ããã Rails 3.0ã¯æ¢ã«ã¤ã³ã¹ãã¼ã«æ¸ã¿ã®ãã®ã¨ãã¦è©±ãé²ãã¦ã¾ãã rails_upgradeã®ã¤ã³ã¹ãã¼ã« Rails 3 ã¸ã®ã¢ããã°ã¬ã¼ããè£å©ãããã©ã°ã¤ã³ rails_upgrade ãã¤ã³ã¹ãã¼ã« script/plugin install git://github.com/rails/rails_upgrade.git ããã¯ã¢ãã rake rails:upgrade:backup ã§ä¸»è¦ãªãã¡ã¤ã«ãããã¯ã¢ãã Gemfileã®ä½æ rake rails:upgrade:gemsã®åºåçµæãGemfi
ã½ã¼ã¹ã®ä¸ã§å®æ°ã¨ãã¦æ±ãã®ã§ã¯ãªããè¨å®ãã¡ã¤ã«çã«æ±ããã Rubyã¯ãããªãã«é·ãé使ã£ã¦ãã¾ãããRailsã¯ã¡ã¸ã£ã¼ãã¼ã¸ã§ã³æ¯ã«ã¡ãã£ã¨è§¦ããããã§ãã¾ã£ãããã¹ããã©ã¯ãã£ã¹ã¨ãç¥ããªããã§ããã ã§ããã¾ã¯ä½ãéã®ãææ¬ã¨ã㦠æ¥æ¬Rubyä¼è° 2010, 8æ27æ¥ã29æ¥ ã®ã½ã¼ã¹ã§ãã ruby-no-kai/rubykaigi · GitHub ãè¦ã¦ãã¯ããããªã®ã¯ãã¯ãã¨ããã¹ã¿ã³ã¹ã§ãã£ã¦ã¾ãã ã§ãæ¬é¡ã®è¨å®ãã¡ã¤ã«ã®æ±ãã«ã¤ã㦠ä¸è¨ rubykaigi ã® Gemfile ãè¦ã㨠'configatron' ã£ã¦ããã®ãããã ãªã®ã§ãããã cool ãªè¨å®ãã¡ã¤ã«ãæ±ãã©ã¤ãã©ãªãªã®ããããã¨æã£ã¦ãã®ã§ãããã¡ããã© id:ursm ãããã @sugamasao æè¿ã¯ Settingslogic ã使ã£ã¦ãã¾ã 2010-09-02 21:3
以åãRails2.xæ代ã«app_configã¨ãããã©ã°ã¤ã³ã使ã£ã¦ã¢ããªã±ã¼ã·ã§ã³ã¬ãã«å¥ã®è¨å®ãã§ãã¦ãã¾ããã Rails3ã«ç§»è¡ããå¾ã§ãããã®é¡ã®è¨å®ã¯å¯è½ã ããã§ã ä»åã¯ãrails_app_configã¨ããgemã使ããããã rails_app_configã¯ãRails3.0ã§ä½¿ç¨å¯è½ã¨READMEã«æ¸ãã¦ããã¾ããã ï¼ä½¿ãæ¹ï¼ ï¼ï¼Gemfileã«ä»¥ä¸ã®ããã«ï¼è¡è¿½å ããã gem "rails_app_config" ï¼ï¼ä»¥ä¸ã®ãã¡ã¤ã«ãç½®ãã config/app_config.yml config/app_config/settings.yml config/app_config/#{environment}.yml config/environments/#{environment}.yml ä¸ï¼ã¤ã«ã¯ãå ¨ã¬ãã«å ±éã®äºé ãè¨è¼ããã ä¸ï¼ã¤ã«ã¯ãã¬ã
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}