Overcome complex cloud challenges and build cloud talent from within
Rails 3.0.4ã¨2.3.11ããªãªã¼ã¹ããã¾ãããéè¦ãªã»ãã¥ãªãã£å¯¾çã®ãªãªã¼ã¹ã®ããã§ãã æã大ããªå¤æ´ç¹ã¯CSRF対çå¼·åã§ããã®çµæã¨ãã¦ãAJAXã®ããã«å¾æ¥ä½¿ç¨ãã¦ããJavaScriptã®ã³ã¼ãã§ã¯ãget以å¤ã®ã¡ã½ããã®é¨åãåä½ããªããªããããå½è©²ç®æã®ä¿®æ£ãå¿ è¦ã«ãªãã¾ãã Railsã§ã¯CSRFã®é²æ¢ã«ãã¼ã¯ã³ãç¨ãããã¦ãã¾ããRails 3.0.3以åã¯Ajaxã®XHRãªã¯ã¨ã¹ãã§ã¯CSRFãèµ·ããããªãã¨ããåæã§ãã¼ã¯ã³ã®æ¤è¨¼ãè¡ããªãããã«ãªã£ã¦ãã¾ããããFlashãJava appletãå©ç¨ããå ´åã«csrfãèµ·ããå¯è½æ§ãããã¨ã®ãã¨ã§ãRails 3.0.4ï¼ããã³Rails 2ç³»ã®Rails 2.3.11ï¼ã§ã¯XHRãªã¯ã¨ã¹ãã®å ´åããã¼ã¯ã³ã®æ¤è¨¼ãè¡ãããã«å¤æ´ãããããã§ãã ãããã£ã¦ãRails 3.0.4ï¼ããã³Rails 2
Posted by irohiroki Sun, 29 Aug 2010 09:15:00 GMT Rails 3ã§ã¯routesã®DSLãå®å ¨ã«å·æ°ããã¾ãããç¹ã«ããã®è¦é£ãã£ãããã·ã¥ã®å¡ã解ããã¦ã:memberã:getãªã©äºç´èªã®å½¹å²ããã¦ããã·ã³ãã«ã¯ãã£ã¬ã¯ãã£ãã«ãªãã¾ãããä¾ãã°Rails 2ã®ä»¥ä¸ã®è¨è¿°ã¯ map.resources :users, :member => {:foo => :get}, :collection => {:bar => :post}
(â»12æã®1æ¥ãã25æ¥ã¾ã§ãæ¥æ¿ãã㧠Ruby ã® Tips ãç´¹ä»ããã¤ãã³ãã Ruby Advent Calendar jp: 2009 ã® 12 æ¥ç®ã§ããæ¨æ¥ã¯ id:ohac ããã§ãããææ¥ã¯ãã¥ã(udzura) ããã®äºå®ã§ãã) Railsãã¿ãã²ã¨ã¤æ¸ãããã¨æãã¾ãã titleãviewã§è¨å®ããã ã»ã¨ãã©ã®Rails使ãã®çããã¯ãããããä¸è¨ã®ãããªlayoutã使ããã¨ã§viewãDRYã«ãã¦ããã®ã§ã¯ã¨æãã¾ãã app/views/layouts/application.html.erb <html> <head> <title>ã¿ã¤ãã«</title> </head> <body> <%= yield %><!-- ãããåviewãã¡ã¤ã«ã§å®ç¾©ãã --> </body> </html> ã§ããããã ã¨ã¿ã¤ãã«ãåºå®ã«ãªã£ã¦ãã¾ãã¾ãããã¢ã¯
æ¨å¹´æ«ããå§ãããRuby on Rails ã使ã£ãããä»äºãã²ã¨æ®µè½ããã®ã§ããµãããã£ã¦ã¿ã¾ããã ãã®ä»äºã§ä½ã£ãWebã¢ããªã®è©³ç´°ã¯æ¸ãã¾ããããç»é¢æ° 60ããã¼ãã«æ° 15 ã¨å°è¦æ¨¡ã®ãã®ã§ãããã·ã¹ãã ã¯ã¨ããã©ããã«é£ããé¨åã¯ããã¾ãããUIã¯ä¸é¨ã« Ajax(JQueryã使ç¨)ãå°å ¥ã使ãåæãé«ãã¦ãã¾ãã 1. ã½ã¼ã¹ã³ã¼ããå°ãªãï¼ æ¸ããRubyã³ã¼ãã®è¡æ°ãåè¨ãã㨠ç´3600è¡ ããããã¾ããã§ããï¼ 1ç»é¢ããã 60è¡ããæ¸ãã¦ãªã !! ã»ã»ã»ãããã¾ãä»äºãã¦ãªããããï¼ãã¨æããã¤ã¶ããã¦ãã¾ãã¾ã¾ãã ^^); ãã¯ããRuby on Rails ã¯çç£æ§ãé«ãã¨è¨ãããéãã§ãã ãã ããã ãã ãã¨ã³ã¼ããæ¸ããªãããã«ä»¥ä¸ã®ããã«æ³¨æãã¾ããã å ±éé¨åã¯ã¢ã¸ã¥ã¼ã«åãMix-inã§å ±æ ç¶æ¿ã«ããæ©è½ã®å ±æã¯è¨è¨ãé£ãããªãã¾ãããå§
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}