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
{{#tags}}- {{label}}
{{/tags}}