2007/02/14 file_column and capistrano Railsã§ç»åãã¡ã¤ã«ãã¢ãããã¼ãããå ´åãfile_columnã¨ãããã©ã°ã¤ã³ãã¨ã¦ã使ãã¾ãã ãã®pluginã¯ãç»åã®ã¢ãããã¼ããä¿åããµã ãã¤ã«ä½æã¨ãã£ãé¢åãªå¦çãåçã«ç°¡ç¥åãã¦ããã¾ãã ãã¼ã¿ãã¼ã¹ã«ãã¡ã¤ã«åãä¿åããã«ã©ã ã追å ãã add_column :entry, :image, :string ã¢ãã«ã§ãfile_column pluginãæå®ãã¾ãã class Entry < ActiveRecord::Base file_column :image end ãã®å ´åã®ä¿åå ã¯ã public/[model_name]/[attribute_name]/[id]/[file_name].jpg ã«ãªãã¾ãã ãµã ãã¤ã«ãä½æããå ´åã¯ã次ã®ããã«ãã¾ãã class E
â» ãã®è³æã«ã¤ã㦠2006å¹´4æã®åå¼·ä¼è³æãCapistranoã®ãã¼ã¸ã§ã³ã¢ããï¼ç¾æç¹ã§ã¯1.3.1ã«ãªã£ã¦ã¾ããï¼ã«ããä»æ§å¤æ´ãªã©ã«åããã¦ã¡ãã£ã¨ä¿®æ£ãããã®ã§ãã 質çå¿çã®é¨åã¯å½æã®ã¾ã¾ãªã®ã§æåã®è³ªåãåã ããã§ãã Capistranoã£ã¦ä½ãªã®ã ãããã¤ãã¼ã« ãããã¤=é å åè : Capistrano: Automating Application Deployment ä¸è¨ã§è¨ãã¨è¤æ°ã®ãµã¼ãä¸ã§åæã«ä¸¦è¡ãã¦ã³ãã³ããå®è¡ã§ãããã¼ã«ã è¤æ°ã®ãµã¼ãã§åãã¦ãããµã¼ãã¹ã®ãããã¤ã楽ã«è¡ããã¨ãã§ããã Railsèµ·æºãªã®ã§Railsã«ç¹åããé¨åãããããã»ãã®ã¢ããªã±ã¼ã·ã§ã³ã§ã使ããã æã¯SwitchTowerã¨å¼ã°ãã¦ãããã¯ã¦ãªã§ã使ããã¦ãã ä½ãããã®ã è¤æ°ãµã¼ãã¸ã®ä½æ¥ãå¹çåãèªååã§ãã å®ç¾©æ¸ã¿ã®æ¨æºã¿ã¹ã¯ã«æ²¿ã£ãéç¨ããã
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}