You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert
æ¨ä»ã®éçºã§ã¯HTMLããã®ã¾ã¾è¨è¿°ããã®ã§ã¯ãªããç°¡æ½ã«è¨è¿°ããçºã®ãã³ãã¬ã¼ãã¨ã³ã¸ã³ãå©ç¨ãããã¨ãå¤ãã¨æãã¾ããä»åã¯Hamlã¨Slimã¨ãããã³ãã¬ã¼ãã¨ã³ã¸ã³ããMiddlemanã¨ããéçºãµã¼ãã¼ãã¼ã«ãå©ç¨ãã¦æ¯è¼ãã¦ããã¾ãã Hamlã¨Slimã¨ã¯ï¼ Haml 㨠Slim ã¯HTMLãçæããããã®ãã³ãã¬ã¼ãã¨ã³ã¸ã³ã§ãã HTMLããã®ã¾ã¾è¨è¿°ããã®ã¨æ¯ã¹ãã¤ã³ãã³ããç°¡ç¥æ§æã«ãã£ã¦ç°¡æ½ãªè¨è¿°ãè¡ããã®ãç¹å¾´ã§ãã Hamlã¯Ruby On Railsãªã©ã®ããã¸ã§ã¯ãã§å©ç¨ãã¦ããæ¹ãå¤ãã¨æãã¾ãããSlimã¯èããªããªãæ¹ãããã®ã§ã¯ãªãã§ããããï¼ â»Ruby On Railsã§å©ç¨ããã«ã¯ããããã haml-rails ã slim-rails ã¨ããgemã追å ããå¿ è¦ãããã¾ã 以ä¸ã§Hamlã¨Slimã«ã¤ãã¦ããµã³ãã«ã³ã¼ããç¨ãã¦æ¯è¼ã
第ååä¸å å æ¥ã®ã¨ã³ããªãRuby on Rails ã® View ãæ°æã¡ããã·ã³ãã«ã«æ¸ãã Haml - ã®ã»ã»ãå¾ç¶ãã§ç´¹ä»ããHamlãå®éã«Railsã®ã¢ããªã±ã¼ã·ã§ã³ã§ä½¿ç¨ãã¦ã¿ã¾ããï¼ ç§ã大å¦é¢ã®è¬ç¾©ã§åºãããã¬ãã¼ã課é¡ãWeb Service*1ãå©ç¨ããWeb Applicationãä½æããªãããã®ææç©ã¨ãã¦æ¨å¹´ä½ã£ããhttp://www.unraki.com/imozuru/itemsããå©ç¨ãã¦ã¿ã¾ãï¼ä½ææã«æ¸ããViewã¯rhtmlã§ããã®ã§ï¼ãããHamlã§æ¸ãç´ãã¦ã¿ãã¨ãããã¥ã¼ããªã¢ã«ã«ãã¾ãï¼ Haml Pluginãã¤ã³ã¹ãã¼ã« ãã§ã«ï¼Railsããã¸ã§ã¯ãã®ä½æãï¼ãã¼ã¿ãã¼ã¹ã¨ã®é£æºãªã©åæè¨å®ã¯æ¸ãã§ããåæã¨ãã¾ãï¼ãªãï¼ä»åã¯æ¢ã«ä½ææ¸ã¿ã®rhtmlãHamlã§æ¸ãç´ãã¾ããï¼ããã¸ã§ã¯ãéå§æããViewã¯Hamlã§æ¸ããï¼
GT Nitro: Car Game Drag Raceã¯ãå ¸åçãªã«ã¼ã²ã¼ã ã§ã¯ããã¾ãããããã¯ã¹ãã¼ãããã¯ã¼ãã¹ãã«å ¨éã®ã«ã¼ã¬ã¼ã¹ã²ã¼ã ã§ãããã¬ã¼ãã¯å¿ãã¦ãããã¯ãã©ãã°ã¬ã¼ã¹ããã¤ãã¼ï¼å¤å ¸çãªã¯ã©ã·ãã¯ããæªæ¥çãªãã¼ã¹ãã¾ã§ãæãã¯ã¼ã«ã§éãè»ã¨ã«ã¼ã¬ã¼ã¹ã§ãã¾ããã¹ãã£ãã¯ã·ããããã¹ã¿ã¼ããããããè³¢ã使ã£ã¦ç«¶äºãæã¡ç ´ãå¿ è¦ãããã¾ãããã®ã«ã¼ã¬ã¼ã¹ã²ã¼ã ã¯ãã®ãªã¢ã«ãªç©çå¦ã¨ç´ æ´ãããã°ã©ãã£ãã¯ã¹ã§ããªãã®å¿ãççºããã¾ããããã¾ã§ãã¬ã¤ãããã¨ã®ãªããããªãã®ã§ãã GT Nitroã¯ããªãã¬ãã¯ã¹ã¨ã¿ã¤ãã³ã°ã試ãã«ã¼ã¬ã¼ã¹ã²ã¼ã ã§ããæ£ããç¬éã«ã®ã¢ãã·ããããã¬ã¹ãæãåãè¸ãå¿ è¦ãããã¾ããã¾ãã大ç©ãã¡ã¨ç«¶ãã¤ã¤ãè»ã®ãã¥ã¼ãã³ã°ã¨ã¢ããã°ã¬ã¼ããè¡ããªããã°ãªãã¾ãããä¸çä¸ã§æé«ã®ãã©ã¤ãã¼ã¨è»ã¨ã«ã¼ã¬ã¼ã¹ã«æããã¨ã«ãªãããã©ãã°ã¬ã¼ã¹ã®çå
ä¼ç¤¾ã§Rails3ã¨Hamlã使ã£ã¦ãããã§ãããæ¢ã«ä»ã®æ¹ãç°å¢ãä½ã£ãä¸ã§ã³ã¼ããæ¸ãã¦ããã®ã§ãåå¼·ã®ããã«ä¸ããç°å¢æ§ç¯ããã£ã¦ã¿ã¾ããã Railsç°å¢æ§ç¯ $ rvm 1.9.2 $ gem install rails $ rails new rails3_haml $ cd rails3_haml $ bundle install vendor/bundle #å¿ è¦ãªgemãvender/bundleã«ä¸æ¬ã¤ã³ã¹ãã¼ã« $ rails server ããã§ãã©ã¦ã¶ããhttp://localhost:3000ã«ã¢ã¯ã»ã¹ãã¦åä½ãã¦ããã°ã²ã¨ã¾ãæä½éã®Railsã®ç°å¢æ§ç¯ã¯OK. Hamlã¤ã³ã¹ãã¼ã« Gemfileã«haml-rails*1ã追å ã gem 'haml-rails' haml-railsã¯Rails3ã«Haml Generatorã追å ããããã®ãã©ã°ã¤ã³ã§
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}