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
This gem has been designed to work with Sinatra (www.sinatrarb.com). Sinatra is a DSL for quickly creating web applications in Ruby with minimal effort. The canonical example of how to create an entire simple web application with Sinatra is something like: # myapp.rb require 'rubygems' require 'sinatra' get '/' do 'Hello world!' end and then to run the application: $ ruby myapp.rb The extreme simp
ã¾ãSinatra gem install rack -r gem install mongrel -r gem install sinatra -r 㧠hello.rb ã¨ããååã§ä»¥ä¸ã®ã½ã¼ã¹ä¿åã㦠require 'rubygems' require 'sinatra' get '/' do "Hello, sinatra" end ruby hello.rbã§åã Haml gem install sinatra-haml -r gem install haml -r require 'rubygems' require 'sinatra' get '/' do haml <<HAML %h1 Hello haml & sinatra HAML end ruby hello.rb ã§å®è¡ http://localhost:4567/ã«ã¢ã¯ã»ã¹ãã¦åä½ç¢ºèª Shotgun gem
This page is also available in English. å§ããã Sinatraã¯Rubyã§ä¸è¨ã®ãããªæå°å´åã§ææ©ãã¦ã§ãã¢ããªã±ã¼ã·ã§ã³ãä½æããããã®DSLã§ãã # myapp.rb require 'rubygems' require 'sinatra' get '/' do 'Hello world!' end gemãã¤ã³ã¹ãã¼ã«ãã¦åããã¦ã¿ãã sudo gem install sinatra ruby myapp.rb localhost:4567 ãè¦ãã ã«ã¼ã Sinatraã§ã¯ãã«ã¼ãã¯HTTPã¡ã½ããã¨URLãããã³ã°ãã¿ã¼ã³ããã¢ã«ãªã£ã¦ãã¾ãã ã«ã¼ãã¯ãããã¯ã«çµã³ä»ãããã¦ãã¾ãã get '/' do .. ä½ãè¦ãã .. end post '/' do .. ä½ãçæãã .. end put '/' do .. ä½ãæ´
Sammy What Sammy is a tiny javascript framework built on top of jQuery. Itâs RESTful Evented JavaScript. Why jQuery is probably the fastest, most robust way to abstract basic low-level Javascript functionality that every Javascript developer needs. However, it really remains low-level and does not imply any structure or organization for larger scale Javascript applications. Working heavily with Si
ã¯ãã㫠第7åã¯Rails以å¤ã®Webãã¬ã¼ã ã¯ã¼ã¯ã®ç°¡åãªç´¹ä»ã¨ãSinatraã§Hello Worldã¢ããªã±ã¼ã·ã§ã³ãåããã¨ããã¾ã§ã解説ãã¾ãããä»åã¯Sinatraã§å®éã®ã¢ããªã±ã¼ã·ã§ã³ãä½ããSequelã¨Hamlã¨ãã2ã¤ã®ã©ã¤ãã©ãªãç´¹ä»ãã¾ãã Sinatraã®ç¹å¾´ã¯ãCGIã¹ã¯ãªããã®ããã«ãã¡ã¤ã«ä¸ã¤ããã¢ããªã±ã¼ã·ã§ã³ãæ¸ããæ°è»½ãã§ããCGIã¹ã¯ãªããã¨ããã°ã代表çãªãã®ã¯ä½ã¨è¨ã£ã¦ãæ²ç¤ºæ¿ï¼BBSï¼ã§ããããã§ãä»åã¯Sinatraã§æ²ç¤ºæ¿ã¢ããªãä½ã£ã¦ã¿ã¾ãããã½ã¼ã¹ã³ã¼ããå°ãé·ããªã®ã§ãgithubã«ã¦å ¨æãå ¬éãã¦ãã¾ããé©å®åç §ããªããèªã¿é²ãã¦ä¸ããããã¡ã¤ã«æ§æã¯ä»¥ä¸ã®ããã«ãªã£ã¦ãã¾ãã start.rb ã¢ããªã±ã¼ã·ã§ã³ã®æ¬ä½ã model/comment.rb æ²ç¤ºæ¿ã®æ¸ãè¾¼ã¿ã表ãã¢ãã«ã®å®ç¾©ã view/index.haml ãã
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}