RejectKaigi 2017ã§çºè¡¨ããè³æã§ããActiveStorageã®æ©è½ãç´¹ä»ããéç¨ã§ããã¡ã¤ã«ã¢ãããã¼ããå®è£ ããã®ã«å¿ è¦ãªè¦ä»¶ã¨é¸æè¢ã«ã¤ãã¦è§£èª¬ãã¦ãã¾ãã
RejectKaigi 2017ã§çºè¡¨ããè³æã§ããActiveStorageã®æ©è½ãç´¹ä»ããéç¨ã§ããã¡ã¤ã«ã¢ãããã¼ããå®è£ ããã®ã«å¿ è¦ãªè¦ä»¶ã¨é¸æè¢ã«ã¤ãã¦è§£èª¬ãã¦ãã¾ãã
ã¾ããã 以åã® JavaScript ã¯ãã¤ããªãã¼ã¿ã®æ±ããã¨ã¦ãä¸æã§ããã ãã¤ããªãã¼ã¿ããã©ã¦ã¶ä¸ã«ä¸æ¦ä¿åãåå©ç¨ããã«ã¯ããµã¤ãºã1.3åã«ãªããã¨ãè¦æããä¸ã§ãã¼ã¿ãDataURIã«å¤æããå¿ è¦ãããã¾ããããXHRã使ã£ã¦ãµã¼ããããã¼ã¿ãåå¾ããå ´åããä¸åº¦å ¨ã¦ã¡ã¢ãªã«èªã¿è¾¼ãã§ãããã«ã¼ãã§ãã¹ã¯å¦çãæ½ããBase64ã«å¤æããDataURIã«å¤æã⦠ã¨ãä½éã«ãå¤æãç¹°ãè¿ãå¿ è¦ãããã¾ããã 2009å¹´ã«åºçããã JavaScript Good Parts ã§ã¯ããããæ¼ç®åãã使ãã¹ãã§ã¯ãªãæªããã¼ããã¨è©ä¾¡ããã¦ããäºãæãåºãæ¹ãããã§ãããã ãããã5å¹´ããã¯ãæ代ãéãã¾ãã 2015å¹´ã® JavaScript ã«ããã¦ã¯ããã¤ããªãã¼ã¿ã¯ãã¯ãæ±ãã¥ããå°ã£ãåå¨ã§ã¯ããã¾ããã ãã¼ãã¦ã§ã¢ã¨ JIT ã³ã³ãã¤ã©ã®é²åã«åããã大容éã®
2014å¹´02æ03æ¥13:54 Ruby å¤é¨ãµã¼ãã¹ã®ç»åãèªç¤¾ãµã¼ãã¹ã«ã¢ãããã¼ããã ä»æ¥ã¯ã¨ã¦ãæããã§ãããææ¥ããå¯æ³¢ã¿ããã§ããããããã«ã¡ã¯ã ä»æ¥ã¯å¤é¨ãµã¼ãã¹ã®ç»åãåã£ã¦ãã¦ããããèªç¤¾ãµã¼ãã¹ã«è¯ãæãã«ã¢ãããã¼ãããæ¹æ³ï¼Facebook ã¨ã Twitter ã§èªè¨¼ãã¦ãã°ã¤ã³ããã¨ããã¨ãï¼ãèãã¦ã¿ã¾ãããä¾ãã° paperclip ã使ã£ã¦ããå ´åãã¢ãããã¼ãã®ãã©ã¡ã¼ã¿ãåãåã£ã¦ãããªæãã§ç»åãã¢ãããã¼ãããã§ãããã # ã¢ãã« class User < ActiveRecord::Base has_attached_file :photo end # ã³ã³ããã¼ã© user.photo = params[:photo] # <input type="file" name="photo"> user.save! ãã©ã¦ã¶ããç»åã¢ãããã¼
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}