Deleted articles cannot be recovered. Draft of this article would be also deleted. Are you sure you want to delete this article?
This is the first in a two-part series. See Part 2 of our build and deploy process. Like any good startup, we try to leverage off-the-shelf tools to save time in our development process. Sounds simple enough, but the devil is in the details, and sometimes a custom solution is worth the effort. In this post, Iâll describe how and why we replaced the Rails asset pipeline with a Grunt-based system. I
以åã®ã¨ã³ããªã¼ã§äºåãã¦ããã¾ããã¨ããã -Rails3 㨠jQuery ã§ãçé¢ç®ã«ãªã·ã£ã¬ãªã¨ããµã¤ããã¤ãã£ã¦ã¿ã¾ãã - h300 h300 ãã¹ãã¼ããã©ã³å¯¾å¿ããã¾ããã ä»åãjpmobileãã¨ãã Rails ãã©ã°ã¤ã³ã使ã£ãã®ã§ãããããã使ãã¨çµæ§ç°¡åã«ã¹ãã¼ããã©ã³å¯¾å¿ã§ãã¦ããªã¹ã¹ã¡ãªãã©ã°ã¤ã³ã ã£ãã®ã§ããç´¹ä»ãã¾ãã jpmobile ã®ã¤ã³ã¹ãã¼ã«ãåºæ¬çãªä½¿ãæ¹ãªã©ã¯ãjpmobile ã® README ã«ä¸å¯§ã«æ¸ããã¦ããã®ã§ãããã¯è©³ãã触ãã¾ãããã代ããã«ããããã jpmobile ãå°å ¥ãã¹ããå¦ãã«ã¤ãã¦èãããã¨ããjpmobile å°å ¥åå¾ã®ããã©ã¼ãã³ã¹ã®å¤åçã«ã¤ãã¦æ¸ãã¦ã¿ããã¨æãã¾ãã **Rails 3.2 + jpmobile ã§ã¹ãã¼ããã©ã³å¯¾å¿ããã¿ã +jpmobile ã¨ã¯ï¼ +ãã¼ã¸ã§ã³æ å ± +ãããã j
htmlã¿ã°ãscriptã¿ã°ãå«ãã³ã³ãã³ãããã¼ã¿ãã¼ã¹ããåãåºãã¦viewã«åºåããå ´åã¯ãå±éºãªã¿ã°ãåºåããªãããã«ããå¿ è¦ãããã¾ãã ç¹ã«CMSã®ãããªã¢ããªãä½æããå ´åã¯ãã¢ããªãä½æãã人ã¨ç°ãªã人ãã³ã³ãã³ããå ¥åã§ãããããã¦ã¼ã¶ã¼ã®å ¥åããã®ã¾ã¾viewã«åºåãããã¨ã¯å±éºã§ãã ä¾ãã°ã <script type="text/javascript">alert("I'm going to steal your secret.");</script> ã®ãããªå ¥åããã®ã¾ã¾åºåããã¨ãå½è©²ã®ãã¼ã¸ããªãã¼ãããããã³ã«JavaScriptã®ã¢ã©ã¼ãã¡ãã»ã¼ã¸ã表示ããã¦ãã¾ãã¾ãã ãã®ãããªãã¨ãé¿ãããããä¸è¬ã«sanitizeã¨ããå¦çãè¡ããã¾ãã ãã¬ã¼ã ã¯ã¼ã¯ã§ããç¨åº¦ã®é¢åã¯ã¿ã¦ãããã¾ãã Rails 3ã®ActionViewã§ã¯ãviewã«æ
Google ã®ã¦ã§ããã°å ¬éãã¼ã«ã使ã£ã¦ãããã¹ããåçãåç»ãå ±æã§ãã¾ãã
Ruby on Rails ãããããå§ãã人åãã®æ å ± Ruby on Rails ãããããå§ãããã®ã§ãããã©ããªæ¬ãããããã§ããï¼ã¨èãããã®ã§ãã¡ãã£ã¨ã¾ã¨ãã¦ããããã¨æãã¾ãã » åã Ruby on Rails ã絶è³ããçç± - åã¯çºå±éä¸æè¡è ã¨ããã¨ã³ããªã¼ã2007å¹´ã«æ¸ãã¾ãããããã®å¾ç¶æ³ã¯ããããã¨å¤ãããåèªèº« iOS ã¢ããªã Android ã¢ããªãéçºããããã«ãªã£ãããWeb ãµã¼ãã¹ã§ã Python on GAE ã触ãããã«ãªã£ãããã¦ãå½æã»ã© Ruby on Rails ä¸è²ã¨ããããã§ã¯ãªããªãã¾ããã ã¾ããRuby on Rails ã®ç°å¢ãèªåã®éçºãã·ã³ã«ç¨æããã®ã » Mac OS X 10.8 Mountain Lion ã« Ruby on Rails ç°å¢ãã»ããã¢ãããã - åã¯çºå±éä¸æè¡è ã§æ¸ããããã«ã
@todeskingæ°ã®Railsãã¬ã³ããªã³ã°ãããHTMLã®ã©ããã©ã®partialããæ¥ãã®ããã³ã¡ã³ãã¨ãã¦åãããè¯ãã£ãã®ã§ãå®å ¨ã«ãã¯ã£ã¦ãæ¹è¯ãã¦ç¸å¯¾ãã¹å表示ããããã«ãã¦ãconfig/initializers/以ä¸ã«ç½®ãããéçºç°å¢ã§ã®ã¿åãããã«ãã¦ã¿ããããã®ããã¹ãã¡ãã£ã¨å¼ããããã©ã©ã®ãã¡ã¤ã«ã«æ¸ãã¦ããã®...ã¿ãããªã±ã¼ã¹å¤ãã®ã§ãChromeã®Inspectorã¨ãã§è¦ããHTMLã³ã¡ã³ãã§ãã¡ã¤ã«ååãã£ã¦ä¾¿å©ãrender layout: "wrapper" do ... ã¨ãã風ã«renderãå¼ãã ã¨ãã«ä¸æããã¹åãåå¾ããæ¹æ³ãåãããªãã®ã§ãã©ãªãããããããé¡ããã¾ãã @miyagawa gemified :) http://t.co/A3LSJFC1â r7kamura (@r7kamura) December 4, 2012 ht
GitHubã§äººæ°ã¬ãã¸ããªã®ã©ã³ãã³ã°ãå ¬éããã¦ãããããªã®ã§å ¨è§£èª¬ãã¦ã¿ã¾ããï¼ ã©ããç´ æ´ããããã®ã°ãã! ããªãã®ããã°ã©ãã³ã°ã©ã¤ããå¿«é©ã«ãã¦ãããã©ã¤ãã©ãªããã£ã¨è¦ã¤ããã¯ã!! rails rails 9835 watching Ruby on Rails. 説æä¸è¦ã ãã! ãã«ã¹ã¿ãã¯Webãã¬ã¼ã ã¯ã¼ã¯ jquery jquery 8710 watching JavaScriptã©ã¤ãã©ãªï¼ããã説æãããªããã! node joyent 8572 watching æ§ånode.jsï¼æã®ååã®æ¹ãéããããã§ãï¼JavaScriptã¨ã³ã¸ã³ã®V8ç¨ã®ãã³ããããã³ã°IOãªä½ãï¼ä¸»ã«Webãµã¼ã/ã¢ããªã±ã¼ã·ã§ã³ã«ä½¿ãããï¼ html5-boilerplate paulirish 6998 watching HTML5ã¨ãã®ãã³ãã¬ã¼ãéï¼ãã ãå ¬å¼ãã¼ã¸ã®ã
æ¬ã¯ææ³ãæªæ¥ã«å½±é¿ãä¸ããããåãããã¯ãµã³ã¿ã«ãªããªããï¼ 12æã§ãããããã¼ã£ãï¼(æ¨æ¶) å¹´æ«ã«ãªãã¨åéã ã¨ãå¯ä»ãå©ãåãã®è©±é¡ãçãä¸ããã¾ããã 以åã«ããã¤ã³ã¿ã¼ãããã«æ©è¿ããã¦ã人é¡ã®çºå±ã«è²¢ç®ãã¡ãããã¨ããè¨äºãããBe My Eyes ã«ã¤ãã¦æ¸ãããããã®ã§ãããã¡ãã£ã¨ããèªåã®æéãå°ãã®ãéâ¦
Ruby on Rails ãç¨ãã¦ãã¤ã³ã¯ãªã¡ã³ã¿ã«æ¤ç´¢ã®ã§ããè±åè¾æ¸webã¢ã㪠ãä½ã£ã¦ã¿ã¾ãããã¤ã³ã¯ãªã¡ã³ã¿ã«æ¤ç´¢ã¨ã¯ãæ¤ç´¢èªå¥ã®å ¥åéä¸ã®æåå ããéææ¤ç´¢ãè¡ããçµæãåçã«æ¸ãæãã¦ããæ¤ç´¢ã®ãã¨ã§ãã対象èªè ã¯åºæ¬ç㪠Rails ã®ç¥èããã人ã¨ãã¦ãã¾ãã ãã¼ã¿ãã¼ã¹ã¯ SQLite ã使ç¨ãã¾ããããã¼ãã«æ§é ã¯åç´ãªã®ã§ ä»ã®ãã¼ã¿ãã¼ã¹ã«å¤æ´ããã®ã¯å®¹æã§ãã dictã¢ããªã±ã¼ã·ã§ã³ç¨ãã£ã¬ã¯ããªã®ä½æ ã¾ãã¢ããªã±ã¼ã·ã§ã³ã®ãã£ã¬ã¯ããªãä½æãã¾ããã¢ããªã®åå㯠dict 㨠ãã¾ãã % rails dict è¾æ¸ãã¼ã¿ 以ä¸ã®ä½æ¥ã¯ããã¹ã¦ dict ã¢ããªã® db ãã£ã¬ã¯ã㪠(dict/db) ã§è¡ãã¾ ãã è¾æ¸ãã¼ã¿ã¯ã GENE95è¾æ¸ ãç¨ãã¾ãããã®ãã¼ã¸ãããã¼ã¿ããã¦ã³ãã¼ãããå±éãã㨠gene.txt ã¨ããããã¹ãã
2010.07.09 次ä¸ä»£Ruby on Railsãµã¼ãã¼Unicornï¼æ±ç¨ã®Rackã¢ããªã±ã¼ã·ã§ã³ãµã¼ãï¼ã使ã£ã¦ã¿ã 2010.07.20追è¨: prefixãæå®ããéç¨ãå¯è½ã§ããããææé ããããã¨ããããã¾ãã 2010.07.28追è¨: é¢é£è¨äºãRailsãµã¼ãUnicornã飼ããªãã! éç¨æã®ä¾¿å©æãã¸ã®ãªã³ã¯ãå¼µãã¾ããã Railsãµã¼ãã¯ãããããã£ã¦ãããããã§ããï¼ æè¿ããã«Unicornã¨ãããã®ãé è§ã表ãã¦ããããã§ãTwitterãgithubã使ã£ã¦ãããããªã®ã§ä½¿ã£ã¦ã¿ã¾ããã®ã§ãç¹å¾´ã使ãæ¹ãªã©ã¬ãã¼ããã¦ã¿ããã¨æãã¾ãã ãã®ããã°ã®ä»ã«ãEngine Yardã®ããã°è¨äºãEverything You Need to Know About Unicornããgithubã®è¨äºãUnicorn!ããé常ã«åèã«ãªãã¨æãã¾ãã®ã§ã
15å36ç§éã«æ¸¡ãåç»ã§ç´¹ä»ããã¦ããæé ã«å¾ããRuby + Ruby on Railsãç¨ãã¦ç°¡ç´ ãªBlog applicationãä½æãã¾ãã 1 ç®æ¬¡ ç®æ¬¡ æ¼ç¿ã®ç®ç 対象ã¨ãªãèªè åä½ç°å¢ ææ Blog applicationã®ä½æ è¨äºã®æ稿æ©è½ [00:00]- Atomã®é ä¿¡æ©è½ [02:47]- Basicèªè¨¼ [04:29]- Commentæ©è½ [05:31]- Debug [08:47]- Ajax [10:38]- Testing [12:46]- è£è¶³ MySQLã®å©ç¨ã«ã¤ã㦠PostgreSQLã®å©ç¨ã«ã¤ã㦠è³æ Software Text editor Web browser 2 æ¼ç¿ã®ç®ç è¦åºãã¨æ¬æãæã¤è¨äºãæ稿/ä¿åããäºãåºæ¥ã è¨äºæ¯ã«Commentãæ稿ããäºãåºæ¥ã è¨äºã®å 容ãAtomã§é ä¿¡ããäºãåºæ¥ã Basicèªè¨¼ã§æ
Herokuã«ç§»è¡ãããã便å©ãªãã¼ã«ãè¦ã¤ãã¦éçºç°å¢ãä¿®æ£ããã¨ãããããã®ã§ã2012åå¤ãã¼ã¸ã§ã³ãã¨ãã¦æè ã®éçºç°å¢ãæãã¾ããæå¾ã«Gemfileãè¼ãã¦ããã¾ãããå¤æ´ãããã¤ã³ãã¯ãHerokuã¸ã®ãããã¤ããã½ã¼ã¹ã³ã¼ãå ¬éãããã©ã¦ã¶ã®ãªãã¼ãã®èªååãã®3ã¤ã§ãã Herokuã¸ã®ããã㤠VPSã§ã®éç¨ã¯ããåå¼·ã«ãªã£ããã®ã®ã以ä¸ã®ãããªåé¡ãããã¾ããã æ§ç¯ã«æéãããããããããµã¼ãã¹éçºã¸ã®ç±ãå·ãã¦ãã¾ããããã°ã©ã ãæ¸ãã®ã«å°å¿µãããã æ¢ã«åãã¦ããã·ã¹ãã ã«æ¯éãåºãã®ãæãã¦ãæ°ãããã¼ã«ï¼ä¾ãã°SSLã¨ããã°ãµã¼ãã¼ã¨ãç£è¦ãµã¼ãã¼ã¨ãï¼ãå ¥ããããªãã ã»ãã¥ãªãã£ã®åé¡ ãªãã¹ããµã¼ãã¹ã®éçºã«æéãããããã®ã§ãããããéç¨ãHerokuã«ä»»ãã¦ãã¾ããã¨ã«ãã¾ããããããã¤ã¯capistranoã®ããã«è¨å®ãã¡ã¤ã«ãæ¸ãå¿ è¦ãããªãã
Google ã®ã¦ã§ããã°å ¬éãã¼ã«ã使ã£ã¦ãããã¹ããåçãåç»ãå ±æã§ãã¾ãã
ã¿ãªãããmacãè²·ãçç±ã®1ã¤ã«herokuã使ã£ã¦Railsã®éçºããããã¨ããã®ãããã¨æãã¾ããããã§ãä»åã¯macãè²·ã£ã¦ãã¦herokuã«deployããã¾ã§ã®æé ãæ¸ãã¦ã¿ã¾ããã念ã®ãããæå ã®ãã·ã³ã§Lionãã¯ãªã¼ã³ã¤ã³ã¹ãã¼ã«ãã¦ããã®æé ãè¨è¿°ãã¦ãã¾ãã è²·ã ããmacãæã£ã¦ããªããã°ãä»ããè¿ãã®macã売ã£ã¦ããããªãåº(ããããã¶ãã¤ãã¦ããã¨ãã«macã売ã£ã¦ããã®ãè¦ããã¨ããã¾ãããï¼ããã«è¡ããã§ãï¼)ã§è²·ã£ã¦ãã¦ä¸ããããããã§è²·ãã¨ãã¾ãããã®è¨äºã«æ¸ãã¦ãããã¨ã試ããã¨ãã§ãã¾ãããããããããããæ°ããmacã¨ãåºããã ããè½ã¡çããæ¹ãããæãããã®ã§ããã®è¾ºã¯èªå·±è²¬ä»»ã§å¤æãã¾ãããã ã½ããã¦ã§ã¢ã¢ãããã¼ã ããããªãã¨ä¸å®ããã¾ãããã(ã¢ãããã¼ãå¾ã«åèµ·åãä¿ããããã¨ãå¤ãã¨æãã¾ãã) iTerm2 iterm2ãå ¥ã
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}