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
ã¯ãã㫠第7åã¯Rails以å¤ã®Webãã¬ã¼ã ã¯ã¼ã¯ã®ç°¡åãªç´¹ä»ã¨ãSinatraã§Hello Worldã¢ããªã±ã¼ã·ã§ã³ãåããã¨ããã¾ã§ã解説ãã¾ãããä»åã¯Sinatraã§å®éã®ã¢ããªã±ã¼ã·ã§ã³ãä½ããSequelã¨Hamlã¨ãã2ã¤ã®ã©ã¤ãã©ãªãç´¹ä»ãã¾ãã Sinatraã®ç¹å¾´ã¯ãCGIã¹ã¯ãªããã®ããã«ãã¡ã¤ã«ä¸ã¤ããã¢ããªã±ã¼ã·ã§ã³ãæ¸ããæ°è»½ãã§ããCGIã¹ã¯ãªããã¨ããã°ã代表çãªãã®ã¯ä½ã¨è¨ã£ã¦ãæ²ç¤ºæ¿ï¼BBSï¼ã§ããããã§ãä»åã¯Sinatraã§æ²ç¤ºæ¿ã¢ããªãä½ã£ã¦ã¿ã¾ãããã½ã¼ã¹ã³ã¼ããå°ãé·ããªã®ã§ãgithubã«ã¦å ¨æãå ¬éãã¦ãã¾ããé©å®åç §ããªããèªã¿é²ãã¦ä¸ããããã¡ã¤ã«æ§æã¯ä»¥ä¸ã®ããã«ãªã£ã¦ãã¾ãã start.rb ã¢ããªã±ã¼ã·ã§ã³ã®æ¬ä½ã model/comment.rb æ²ç¤ºæ¿ã®æ¸ãè¾¼ã¿ã表ãã¢ãã«ã®å®ç¾©ã view/index.haml ãã
ãã«ã¹ã¿ãã¯ãã¦ãªã®Railsãããã¾ã§å¿ è¦ãªãããã¨ãERBã§ã´ãªã´ãªãã¡ã³ãã¯ã»ã¼ããã£ã±ãRailsã§ããªã©ã¨ãé½ã¯ã¾ãã®ã¼ããããããã¦ã¼ãããRubyã®Webãã¬ã¼ã ã¯ã¼ã¯ã¯ä»ã«ããããã©ãã軽ãã¦ãããã ãPHPã使ããããªãã ããªãã ã ãããªæ©ã¾ããã解æ¶ãã¦ããããã¬ã¼ã ã¯ã¼ã¯ãçºè¦ãã¦ãã¾ãã¾ããããSinatraãã§ãããã¾ããããã¤ã¯ã軽ããã ã Sinatra ãµã¤ãã®ããããã¼ã¸ã«æ¸ããã¦ããã³ã¼ãããããããµã¯ãµã¯æããããåºãã¦ããã¦ãã¾ãã require 'rubygems' require 'sinatra' get '/hi' do "Hello World!" end 説æèªã¾ãªãã¦ã解ãããããã æ¥æ¬èªã®è§£èª¬ã¹ã©ã¤ããããã¾ãããã解ã解説ã¼ã å ¬å¼ãµã¤ãã®READMEãèªãã°ãã ãããOKã Sinatra: README ãã©ã¡ã¼ã¿ãåå¾ã
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}