ãããã¤ã³ã¹ãã¼ã«ä»£è¡¨ã®ã©ã¤ãããã¯ããã°
First we create a rails app without Test Unit (as we will use rspec as per Jasmine). Let's call it party_time: rails new party_time -T cd party_time rm public/index.html Let's start with Jasmine. I played around with a couple of methods of integrating it but settled on using Jasminerice, which has worked superbly. This tutorial uses version 0.0.8, but I imagine it will continue to work for later v
Hamlã¨Sassã®ãã¼ã¸ã§ã³3.1ã4æ24æ¥ã«ãªãªã¼ã¹ããã¾ãããå ã 両è ã¯åãããã¸ã§ã¯ãã ã£ãã®ã§ãããä»åã®ãªãªã¼ã¹ããå¥ã ã®gemã¨ãªããã¤ã³ã¹ãã¼ã«ãå¥ã«ã§ããããã«ãªãã¾ããã Hamlã¯ã¤ã³ãã³ãã使ã£ã¦ã·ã³ãã«ã«HTMLãçæã§ãããã³ãã¬ã¼ãã¨ã³ã¸ã³ãSassã¯Hamlã¨ã»ããã§èªçãããã¤ã³ãã³ãã使ã£ã¦CSSãã·ã³ãã«ã«æ¸ããç¬èªã®ã¹ã¿ã¤ã«æå®è¨èªã§ããCSSãæ¸ãã®ãè¦çãããªãã¦ã楽ãããªãã¨ãã触ãè¾¼ã¿ã§ãã Hamlã®ã»ãã¯ãä»åã¯Sassã®åé¢ã大ããªãããã¯ã§ãã以å¤ã¯å¤åã¯ããã¾ãããå¤åã大ããã®ã¯ãBrainy Bettyãã¨åä»ããããSass 3.1.0ã®ã»ãã§ãï¼brainyã£ã¦è³ã¿ããè©°ã¾ã£ã¦ãã¦é ãè¯ãã¨ããæå³ã§ãããå¤ãªååãä»ãã人ãã¡ã§ãâ¦â¦ãSassèªä½ããçææ°ãªå¥³ã¨ããæå³ã§ä½¿ããããsassy girlãã«ããã¦ãããã
æ°ããã·ã¹ãã åãã®æ¤ç´¢ã·ã¹ãã ï¼åæ£KVSã§æ±ç¨çã«ä½ããã¨ãã¦ãäºç®ã®é½åã§æ念ãããã¤ï¼ã®ã ã³ã¢ã¨ã³ã¸ã³é¨åãå æ¥å®æãã¾ã㦠æ¤ç´¢é¨åãDBã«ãããã¦ããã¼ã¿åå¾ã¯KVSã¨ããã çµæçã«ããããã®ã·ã¹ãã ãè¡ãçããããªä»çµã¿ã«ãªã£ãããã§ããã ããã¯æ¬é¡ã§ã¯ãªãã®ã§ç½®ãã¦ããã¦ã»ã»ã» ã¨ããããåºæ¥ä¸ãã£ããã®ã社å ã«å ¬éããå¿ è¦ããã£ãã®ã§ã ç°¡åãªWebUIãSinatraã§æ¸ãã¾ãã ããããã«ã¼ãºãªä½¿ãæ¹ãã§ããããããSinatraã®è¯ãã§ã(ï½ï½¥Ï・´) ï½ æåã§èµ·åãã¦ã®åä½ã¯ç¢ºèªããconfig.ruãæ¸ãã¦ã®rackupãæåããã®ã§ã Passengerçµç±ã§èªåèµ·ååãããã¨ãããããªããã¨ã©ã¼ã«ãªãã¾ã㦠Encoding::CompatibilityError - incompatible character encodings: ASCII-
Easily generate a Rails 3 application with RSpec, Factory Girl, Haml, and jQuery in one line: % rails new my_app -J -T -m \ http://github.com/leshill/rails3-app/raw/master/app.rb rvm We love rvm, so the application has an .rvmrc generated to specify a gemset. Generators This also gives you the Factory Girl and Haml Rails 3 generators â the generators for RSpec are in the RSpec gem â so that your f
(2010-08-30: Rails 3.0.0ããªãªã¼ã¹ãããã®ã§ããã«ãããã¦æ´æ°ãgeneratoré¢é£ãå°ãå¤ãã£ã¦ã) ä¼ç¤¾ç¨ã®ãå°ç©Webã¢ããªãä½ãããã¨æãããã£ãããªã®ã§Ruby on Rails 3ã§mongoDB使ã£ã¦ã¿ããããªãã¨æããã¨ããããç°å¢ãä½ãã¨ããã¾ã§ã®ã¡ã¢ã Rails 3 ã®ã¤ã³ã¹ãã¼ã« ã¨ãããã Rails 3 ã®ã¤ã³ã¹ãã¼ã«ãBundlerã§å ¥ãããBundlerèªä½ã®ãã¼ã¸ã§ã³ã1.0以ä¸ã§ãªãã¨ãã¡ã¿ãããªãã§ãããããæªæºããå ¥ã£ã¦ããªãå ´åã«ã¯Bundlerã®ã¤ã³ã¹ãã¼ã«ããããã ããã¸ã§ã¯ãã®ããããã£ã¬ã¯ããªã¨ãªãã¨ãããä½æããããã«Gemfileãä½ãã $ mkdir ~/workspace/hoge_prj $ cd ~/workspace/hoge_prj Gemfile source 'http://rubygems
Haml is a markup language thatâs used to cleanly and simply describe the XHTML of any web document, without the use of inline code. Haml functions as a replacement for inline page templating systems such as PHP, ERB, and ASP. However, Haml avoids the need for explicitly coding XHTML into the template, because it is actually an abstract description of the XHTML, with some code to generate dynamic c
å§ã Haml ã®ç´¹ä»è¨äºãèªãã æãè¦ç´ ã®å±æ§ã®æ¸ãæ¹ãããã¦ãªã (HTML ã§æ®éã«æ¸ãããé·ãããã㨠http-equiv ãããã¨ãã¨ã) ããããæ°ã«å ¥ããªãã£ãã®ã ãã©ãHaml 2.2 ãã㯠HTML ã¨åæ§ã«æ¸ããã¨ç¥ã£ã (via Haml ã¬ã·ããã㯠11ã®æ - ursmã®æ¥è¨) ã®ã§è©¦ãã« atomos ã®ãã³ãã¬ã¼ãã Haml ã使ãããåãæ¿ãã¦ã¿ãã æä½éã®ä½¿ãæ¹ãã¡ã¢ã åºæ¬ %h1 What is the Best Template Engine on Ruby? %p The answer is %strong Haml â <h1>What is the Best Template Engine on Ruby?</h1> <p> The answer is <strong>Haml</strong> </p> %{ã¿ã°å} ã§è¡¨ãããè¦ç´
æ°ç±³ã¨ç§åéã®ããç¼ã ãåºèº«ç¨ã®ç§åéãè²·ãã¾ããã1å°¾250åã§ã 3æã«ãããã¦ãç§åéã®ããã«é ãå³éãé¤æ²¹ã§èª¿å³ãã¦1æéã»ã©æ¼¬ãè¾¼ã¿ãã°ãªã«ã§ç¼ãã¾ãã ç§åéã®ããç¼ã ããã®ãè¦å³ãç¨ãããã¤ã«ãã«èª¿å³ãããã¯ã»ã«ãªãå³ããã§ã è¶ãããªæ°ç±³ã¨ä¸ç·ã« èªå®¶è£½ãæ¼¬ç© åâ¦
æ´å¤©ã®ä¾¡å¤ 2æä¸æ¬ã«åºå¼µã§åèã¸è¡ã£ãã5æ¥éã®æ»å¨ä¸ã¯ãã£ã¨å¿«æ´ã§ãæ°æ¸©ã¯20âã«è¿«ãæ¥ã®ãããªæããã ã£ããä»äºã¯æããæ©ã¾ã§ç¾å ´ãèµ°ãåãéé ·ãªãã®ã§ã身ä½çã«ãç²¾ç¥çã«ã追ãè¾¼ã¾ãããæ¯æã京èç·ããè¦ããç¾ããæ¯è²ãçºãã¦æ£æ°ãä¿ã£ã¦ããã太平æ´ã¸ç¦ã ã¨â¦
ç»å±±å¤§å¥½ãç¬ã¨å¾¡å²³å±±ã«ç»ã ååã®æ¥åå±±ç»å±±ã楽ããã£ãã®ã§ãæ¬æ ¼çã«æããªãåã«ãããã£ã¡ãç»å±±ã«è¡ã£ã¦ãã¾ãããã¡ããã©ããããã¤ã¨ããæéã§ããã£ãã®ã§ãç©ããããªãã¨ããæ°æã¡ãè¾¼ãã¦ã ç¬ãã±ã¼ãã«ã«ã¼ã«ä¹ããããã°ãã¬ã³ããªã¼ãªå±±ãã ãã©ä»åãå¾æ©ã§ç»ã£ã¦ããã¾ãâ¦
æ°ç±³ã¨ç§åéã®ããç¼ã ãåºèº«ç¨ã®ç§åéãè²·ãã¾ããã1å°¾250åã§ã 3æã«ãããã¦ãç§åéã®ããã«é ãå³éãé¤æ²¹ã§èª¿å³ãã¦1æéã»ã©æ¼¬ãè¾¼ã¿ãã°ãªã«ã§ç¼ãã¾ãã ç§åéã®ããç¼ã ããã®ãè¦å³ãç¨ãããã¤ã«ãã«èª¿å³ãããã¯ã»ã«ãªãå³ããã§ã è¶ãããªæ°ç±³ã¨ä¸ç·ã« èªå®¶è£½ãæ¼¬ç© åâ¦
GT Nitro: Car Game Drag Raceã¯ãå ¸åçãªã«ã¼ã²ã¼ã ã§ã¯ããã¾ãããããã¯ã¹ãã¼ãããã¯ã¼ãã¹ãã«å ¨éã®ã«ã¼ã¬ã¼ã¹ã²ã¼ã ã§ãããã¬ã¼ãã¯å¿ãã¦ãããã¯ãã©ãã°ã¬ã¼ã¹ããã¤ãã¼ï¼å¤å ¸çãªã¯ã©ã·ãã¯ããæªæ¥çãªãã¼ã¹ãã¾ã§ãæãã¯ã¼ã«ã§éãè»ã¨ã«ã¼ã¬ã¼ã¹ã§ãã¾ããã¹ãã£ãã¯ã·ããããã¹ã¿ã¼ããããããè³¢ã使ã£ã¦ç«¶äºãæã¡ç ´ãå¿ è¦ãããã¾ãããã®ã«ã¼ã¬ã¼ã¹ã²ã¼ã ã¯ãã®ãªã¢ã«ãªç©çå¦ã¨ç´ æ´ãããã°ã©ãã£ãã¯ã¹ã§ããªãã®å¿ãççºããã¾ããããã¾ã§ãã¬ã¤ãããã¨ã®ãªããããªãã®ã§ãã GT Nitroã¯ããªãã¬ãã¯ã¹ã¨ã¿ã¤ãã³ã°ã試ãã«ã¼ã¬ã¼ã¹ã²ã¼ã ã§ããæ£ããç¬éã«ã®ã¢ãã·ããããã¬ã¹ãæãåãè¸ãå¿ è¦ãããã¾ããã¾ãã大ç©ãã¡ã¨ç«¶ãã¤ã¤ãè»ã®ãã¥ã¼ãã³ã°ã¨ã¢ããã°ã¬ã¼ããè¡ããªããã°ãªãã¾ãããä¸çä¸ã§æé«ã®ãã©ã¤ãã¼ã¨è»ã¨ã«ã¼ã¬ã¼ã¹ã«æããã¨ã«ãªãããã©ãã°ã¬ã¼ã¹ã®çå
ã¦ã¯ãµã®Hamlã使ã£ã¦ã¿ã¾ãããHamlã®ææ³ã¯ç°¡åã§ãã æ¬å®¶ãµã¤ãã®ãã¥ã¼ããªã¢ã«ãèªãã§ãèªã¾ãªãã¦ãæ¸ãããããã ã¨ããããã§ãã¾ãã¯kaeruspoonã®layoutsãã¥ã¼ãã¡ã¤ã«ãHamlã«ãã¦ã¿ã¾ããã以ä¸ã®ãããªæãã§ãããããç°¡æ½ã§ããã§ããã app/views/layout/application.html.haml !!! XML !!! 1.1 %html %head %meta{:name => "Description", :content => "ããããã¤ããã®ããã°ã§ãã"} %meta{:name => "Keywords", :content => "Ruby,programming,bike,drive,novel,book"} %meta{:name => "Author", :content => "OISHI Tsukasa"} %ti
View at: http://localhost:4567 The code you changed will not take effect until you restart the server. Please restart the server every time you change or use a code reloader like rerun or rack-unreloader. It is recommended to also run gem install puma, which Sinatra will pick up if available. Routes In Sinatra, a route is an HTTP method paired with a URL-matching pattern. Each route is associated
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}