RailsãSinatraã§ç»åãã¢ãããã¼ãããããDBãAmazonS3ã«ä¿åãããããããã®ã©ã¤ãã©ãªã¨ãã¦ãcarrierwaveãããã¾ãã ãã¾ãä¸è¬çã§ã¯ç¡ãããããã¾ããããcarrierwave-mongoidã¨ããæ¡å¼µã©ã¤ãã©ãªãå©ç¨ãããã¨ã§ã MongoDBã®GridFSã«ç»åãæ ¼ç´ãããã¨ãåºæ¥ã¾ãã ãã®å ´åãç»åã表示ããæã«ä¸çªã¦ã£ã¨ãæ©ãã®ã¯ã Railsä¸ã§GridFSã«æ¥ç¶ãã¦ãã¤ããªãèªã¿åºããsend_dataã§ãã®ã¾ã¾ã¯ã©ã¤ã¢ã³ãã«è¿ãæ¹æ³ã§ãã ãããããã®æ¹æ³ã¯Railsã®å¦çã丸ã éãã®ã§ãç»åã®ããã«ç´°ããã¢ã¯ã»ã¹ãå¤ããã®ã«ã¯ä¸åãã§ãã ããã§ã次ã®æ段ãRackããã«ã¦ã§ã¢ã使ãæ¹æ³ã§ãã 以ä¸ã®ãããªããã«ã¦ã§ã¢ãä½æããRackã®ã¹ã¿ãã¯ã«ç©ãã§ããã¾ãã # config/initializer/carrierwave.rb
{{#tags}}- {{label}}
{{/tags}}