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
nodeã®Socket.ioã£ã½ãç©ã®Rubyçãä½ã£ãã https://github.com/shokai/sinatra-rocketio ä¾å EventMachineãæå¹ãªWebãµã¼ãã¼ï¼thinã¨ãï¼ã¨ãjQueryãå¿ è¦ã Rubyã¯1.8.7ã2.0.0ã¾ã§åãã Sinatraã§ä½¿ã ã¤ã³ã¹ãã¼ã« gem install sinatra-rocketio ãã©ã¦ã¶ã¨ãåç·ã«å¿ãã¦WebSocketã¨Cometã®ä½¿ããæ¹ãèªåçã«é¸ã°ããã åæããã¦ãå®æçã«åæ¥ç¶ã試ã¿ãããã«ãªã£ã¦ãã sinatraã«èªã¿ããã ãã§ä½¿ãããsinatraã®ããã»ã¹å ã«websocketãµã¼ãã¼ãçµã¿è¾¼ã¾ããã require 'sinatra' require 'sinatra/rocketio' modular styleã§ã¯classå ã§registerããã°ok class
Dismiss Octotip: You've activated the file finder by pressing t Start typing to filter the file list. Use â and â to navigate, enter to view files.
â [Ruby][Sinatra] Sinatraã§Rack::Csrfã®ä¾å¤ããã³ããªã³ã°ãã Sinatraã§ã®CSRF対çã«ã¯Rack::Csrfã使ãã¾ãããæ®éã« use Rack::Csrf, :raise => true ã¨ãæ¸ããã ãã§ã¯ãerrorãã³ãã©ã§ä¾å¤ãææã»å¦çã§ãã¾ãããproductionç°å¢ã§ã¯CSRFãã§ãã¯ã«å¼ã£ãããã¨403å¿ç+çã£ç½ãªç»é¢ã«ãªãã®ã§ãããfalse negativeã®å¯è½æ§ã0ã§ã¯ãªãã®ã§ãä½ããã®å¦çã¯ãã¦ããããã¨ããã§ãã ã¨ããããã§ã試è¡é¯èª¤ã®çµæè¡ãçããã®ã以ä¸ã®ãããªã³ã¼ãããã£ã¨è¯ãæ¹æ³ããã£ããã³ã¡ã³ããã ããã require 'rubygems' require 'sinatra' require 'rack/csrf' require 'haml' use Rack::Session::Pool use
Rack-based interactive console (Ã la Rails console) in your web application's front-end Resources Example video Documentation Install In your Gemfile: gem 'rack-webconsole' Rack-webconsole needs JQuery. If you are using Rails 3, JQuery is loaded by default. In case you don't want to use JQuery in your application, rack-webconsole can inject it for you only when it needs it. To do that you should p
gyazo-sinatra gyazo-sinatra is a Gyazo server ported on Sinatra (The original server a.k.a upload.cgi written by Toshiyuki Masui.) Contributing to gyazo-sinatra Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it Fork the project Start a featu
Description¶ â Tux dresses up sinatra in a shell. Use it to interact with your helpers, view rendering and your appâs response objects. Tux also gives you commands to view your appâs routes and settings. Install¶ â Install the gem with: gem install tux Usage¶ â Start with: $ tux If your appâs config file isnât config.ru, specify with -c $ tux -c app.ru To interact with your helpers: >> app.my_help
ãç¥ãã
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}