jpmobileã§ä½æãããRailsããã¸ã§ã¯ãããã¹ãããå¿ è¦ããã£ãã®ã§èª¿ã¹ã¦ã¿ã¾ããã ã¡ãã£ã¨ã°ã°ãã¨æ¬¡ã®ãµã¤ããåºã¦ãã¾ãã Ruby 1.9 + Rails3 + jpmobileã§æ§ç¯ãããµã¤ããcucumberã§ãã¹ãããããã®Tips Capybara::Driver::RackTestã«ç´°å·¥ããã¦UserAgentãå½è£ ããæ¹æ³ã§ãã ãã ããæå ã«ã¤ã³ã¹ãã¼ã«ããã¦ããCapybara1.1.2ã¯Capybara::Driver::RackTestã¯ç¡ããªã£ã¦ãã代ããã«Capybara::RackTest::Driverãå®è£ ããã¦ãã¦ãä¸è¨ã®å½è£ ãè¡ããã¨ãã§ãã¾ããã ä»ã®æãæ¢ãã¦ã¿ãã¨ãã次ã®è¨äºãè¦ã¤ããã¾ããã Creating a custom Capybara driver ãã®æ¹æ³ã¯æ°ããCapybaraã®Driverãè¨å®ãã¦ãã¾ãæ¹æ³ã§ãã
2011/08/29 Ruby on Railsã®åºç¤ç¥èãåãèªå®è©¦é¨ããRails 3æè¡è èªå®ããã³ãºè©¦é¨ããã2011å¹´7æããå§ã¾ã£ãããã¼ã¿è©¦é¨ã®æ®µéã§åé¨ãããã§ã«åæ ¼ãã¦ããæ ªå¼ä¼ç¤¾ã¤ãªã¬ã®å°å·ä¼¸ä¸éããã«ãåé¨ã®ææ³ã伺ã£ãã å°å·ããã¯ãRailsã§Webãµã¼ãã¹ãéçºããã¨ã³ã¸ãã¢ã§ããã¨åæã«ãã¨ã³ã¸ãã¢æ¡ç¨ãæ å½ãããã¨ãããã¨ãããåé¨è ã§ãããã¾ãé¢æ¥æ å½è ã¨ãã¦è³æ ¼è©¦é¨ã«ã¤ãã¦ã®ãæè¦ãèããã â»ï¼ ITã¯æ¬è©¦é¨ã®éå¶å§å¡ä¼ã«ã¡ã³ãã¼ã¨ãã¦å ãã£ã¦ãã¾ãã ãã©ã°ã¤ã³éçºã§å®å磨ã ç¾å¨ãç§ã¯æ ªå¼ä¼ç¤¾ã¤ãªã¬ã¨ãã社å¡30人ã»ã©ã®ä¼ç¤¾ã§ãRuby on Railsã使ã£ãéçºããã¦ãã¾ããç§èªèº«ã¯ãæåã«å¤ããä¼ç¤¾ã§ã¯Perlã§CGIéçºãããããPHPã使ã£ãåè¨éçºãçµé¨ãã¦ãã¾ããããæè¿ã¯Rubyã°ããã§ãã æ ªå¼ä¼ç¤¾ã¤ãªã¬ æè¡éçºé¨ å°å·ä¼¸ä¸éãã
ä»å¹´ãRubykaigi ã«è¡ã£ã¦ãã¾ãããã¨ã¦ãåå¼·ã«ãªããã¨ãå¤ãã£ãã®ã§èå³ããã£ãå 容ãã¾ã¨ãã¾ãã ã¾ãã¯1æ¥ç®ããã2ï¼3æ¥ç®ãå¾ã«æ¸ãã¾ã! ããééãçããã¾ãããææããã ããã¨å©ããã¾ãã Conflicts and Resolutions in Ruby and Rails Rails ã®ã³ããã¿éãè¿ãããã¼ã¯ã»ãã·ã§ã³å½¢å¼ã Rails2 ã¨3 ã®éã Rails2 ã®ä¸ä½äºæã§ãããªããæ§ã ãªæ©è½ãçãè¾¼ãã Rails ã®ããããã®ãã¼ããRails ã®å¤ã§ä½¿ããããã¢ã¸ã¥ã¼ã«åãã Rails ãã¼ã ãRails3 æ§æ³æã«æããã´ã¼ã«ã¯éæã§ããã Yes. æã ã³ã¢ãã¼ã ã¯ãããã£ãã¨æã æãè¯ãã£ãã®ã¯å ±éã®API ãä½ã£ãã㨠ruby1.9 対å¿ãããä¸ã§é£ããã£ãã㨠encodingã常ã«encoding ã«ã¤ãã¦èããªããã°ãªããªããªã£ã
Rubyã®ã¤ãã³ããRubyKaigi 2010ãã«åå ãã¦ãã¾ãããé½åã«ããä»å¹´ã¯åæ¥ã®ã¿åå ãããã¼ãã ã¨ããã¤ã¤ããã®åæ¥ï¼ãããåå¾ããï¼ã«é å»ããã¨ãããããã¾ãããããã 以ä¸ãã¡ã¢ãã¡ããã¨ããã¬ãã¼ãã¯gihyo.jpã®è¨äºããããã jpmobile on Rails 3.0 (conceal_rs) Tokyu.rbã®ãã¼ãããã®ã²ã¨ããå°å·ããã«ãããjpmobileã¨ãã®Rails 3.0対å¿ã«ã¤ãã¦ãRails 3.0対å¿ã®è¦å´è©±ã主ç®çã«è´ãã¦ã¿ã¾ããã jpmobileã¯ãæºå¸¯åãWebã¢ããªãä½ãã¨ãã«ãæåã³ã¼ããçµµæåãã¡ã¼ã«ã®ã³ã¼ããªã©ã®å·®ãå¸åãããããã¯ã»ãã·ã§ã³ç®¡çãviewåãããããªã³ã¯ãã«ãã¼ãªã©ãæä¾ããRailsãã©ã°ã¤ã³ããã®ã¸ãã§ãåãã£ãªã¢ãã¨ã®ã³ã¼ãã®éããformããéä¿¡ãããããã¹ãã®æåãªã©ãç´°ãã説æããã¾ãããau
Railsã§ã®ã±ã¼ã¿ã¤ãµã¤ãä½ææ¹æ³ãã¾ã¨ããããè¨äºãRubyist Magazine â jpmobile + Rails 2.3.4 ã§ä½ãæºå¸¯ãµã¤ãå ¥éã Tweet 2010/4/7 æ°´ææ¥ matsui Posted in è¨äºç´¹ä»ã»ãªã³ã¯ | 1 Comment » ã¡ãã£ã¨ã ãåã®ãã¿ã§ãããè¨äºã«ããã®ãå¿ãã¦ããã®ã§ãç´¹ä»ãã¾ãã æ¥æ¬Rubyã®ä¼ãçºè¡ãã¦ããã¦ã§ãéèªããã³ã¾ãã«jpmobileã使ã£ã¦Railsã§ã±ã¼ã¿ã¤ãµã¤ããä½ãã¨ããè¨äºãããã¾ããã®ã§ãç´¹ä»ãã¾ãã âãRubyist Magazine â jpmobile + Rails 2.3.4 ã§ä½ãæºå¸¯ãµã¤ãå ¥é ãåç·¨ã [jp.rubyist.net] âãRubyist Magazine â jpmobile + Rails 2.3.5 ã§ä½ãæºå¸¯ãµã¤ãå ¥é ãå¾ç·¨ã [jp.rubyist
ããã³ã¾ãã¯ãRuby ã«é¢ããæè¡è¨äºã¯ãã¡ããã®ãã¨ãRubyist ã¸ã®ã¤ã³ã¿ãã¥ã¼ãã¨ãã»ã¤ããã®ä»ããå±ãããã¦ã§ãéèªã§ãã Rubyist Magazine ã«ã¤ã㦠ãRubyist Magazineããç¥ãã¦ããã³ã¾ãã¯ãæ¥æ¬ Ruby ã®ä¼ã®æå¿ã«ãã Rubyist ã® Rubyist ã«ãããRubyist ã¨ããã§ãªã人ã®ããã®ã¦ã§ãéèªã§ãã ææ°å· Rubyist Magazine 0058 å· ããã¯ãã³ãã¼ Rubyist Magazine 0058 å· RubyKaigi 2018 ç´åç¹éå· Rubyist Magazine 0057 å· RubyKaigi 2017 ç´åç¹éå· Rubyist Magazine 0056 å· Rubyist Magazine 0055 å· Rubyist Magazine 0054 å· æ±äº¬ Ruby ä¼è° 11 ç´
The document discusses Jpmobile, a Ruby gem that helps detect mobile devices and browsers and customize web content for mobile users. It provides encoding support for major Japanese carriers, integrates with Rails and Sinatra frameworks, and can detect mobile devices through the user agent. The goal is to support Ruby on Rails applications serving mobile users in Japan. It discusses implementation
jpmobileã大ããæ¹è¯ããããããªæ°ãããã®ã§ãªã¬ãªã¬æ¡å¼µãæãã¾ãã http://d.hatena.ne.jp/conceal-rs/20091205/1259974784 æºå¸¯ã¯ARã»ãã·ã§ã³ã¹ãã¢ãPCã¯Cookieã¹ãã¢ãã¤ããã # require "jpmobile_session_store" # config.action_controller.session_store = JpmobileSessionStore class JpmobileSessionStore #< ActionController::Session::AbstractStore def initialize(app, options = {}) # $app_logger.info "********** JpmobileSessionStore#initialize options=#
æã家ã®ãã°ã¦ãã ãã°ã¦ããã¨ã¯ããããºãã®ãã¨ã§ãããæãæ¥æ¬ããããããã¯ãªãã¼ã®æ¡ã®èæ¨ãéã£ãè¿ç¤¼ã¨ãã¦ãã¢ã¡ãªã«ããéããã¦æ¥ãã®ãæ¥æ¬ã§ã®å§ã¾ãã§ãã¢ã¡ãªã«åç£ã§ã¢ã¡ãªã«ã¤ããã¦ã·ã¨ããããããã æè¿ã§ã¯æ¥æ¬ã§ãããã¡ãã¡ã§ãè¡è·¯æ¨¹ã§ãã£ãããåºæ¨ã§ãã£â¦
ããã³ã¾ãã¯ãRuby ã«é¢ããæè¡è¨äºã¯ãã¡ããã®ãã¨ãRubyist ã¸ã®ã¤ã³ã¿ãã¥ã¼ãã¨ãã»ã¤ããã®ä»ããå±ãããã¦ã§ãéèªã§ãã Rubyist Magazine ã«ã¤ã㦠ãRubyist Magazineããç¥ãã¦ããã³ã¾ãã¯ãæ¥æ¬ Ruby ã®ä¼ã®æå¿ã«ãã Rubyist ã® Rubyist ã«ãããRubyist ã¨ããã§ãªã人ã®ããã®ã¦ã§ãéèªã§ãã ææ°å· Rubyist Magazine 0058 å· ããã¯ãã³ãã¼ Rubyist Magazine 0058 å· RubyKaigi 2018 ç´åç¹éå· Rubyist Magazine 0057 å· RubyKaigi 2017 ç´åç¹éå· Rubyist Magazine 0056 å· Rubyist Magazine 0055 å· Rubyist Magazine 0054 å· æ±äº¬ Ruby ä¼è° 11 ç´
æå¹Rubyä¼è°02 - Regional RubyKaigi ä»åè¡ããã¨ã«ããç®çã¯ããã¤ããã£ã¦ï¼ãã®å ¨ã¦ãéæã§ãã¾ããï¼é常ã«ææ義ãªï¼ããã¦æ¥½ããæå¹ã§ããï¼ ãã§ï¼ãã®ç®çã¨ããã®ãï¼ jpmobileä¼è°02ã®éå¬ åå¤ç¥ã§éå¬ã§ãã¾ããï¼ åå è ã¯2人ã§ããã ä»ã®å°åRubyä¼è°ãè¦ã¦ã¿ãã ã¨ããããTokyuRubyä¼è°ãã£ãã¨è¨ããã¨ã§ï¼ä»ã®å ´æã¯ã©ããªæãããè¦ã¦ã¿ããã£ãï¼ æå¹ã¯æ°åãå ¥ã£ã¦ã¾ããï¼ å°åRubyä¼è°ã®äººã¨ãããã話ã ä»ã®å°åã®äººãã¡ã¨ãããã話ãããã£ãã®ã§ï¼ç¹ã«ä½ãã¨è¨ããããããªãã§ããï¼ã¨ã«ãã交æµãããã£ãï¼ Rubyæå¹ã®äººãã¡ã¨ä¼ãããã£ãï¼ RubyKaigiã®æããããããã£ã¦è©±ã§ããªãã®ã§ï¼ãã®éã ã¨æã£ã¦ï¼åå¤ç¥ããåå ï¼ååã¨Twitterã®ã¢ã¤ã³ã³ã®ç¸é¢ãè¦ãã¦ããããã§ããããï¼ ãªã©ãªã©ï¼ãããå ¨ã¦éæã§ãã¾ã
èªåã®ç°å¢ã ããããããªããã©ãrequest.session_options[:key]ãnilã®æããã£ãã®ã§ã¨ããããã対å¿ãã¦ã¿ã. å ã®å®è£ ãããå¤å®ãå¢ãããç¨åº¦ãªã®ã§ãã®ã¾ã¾ã§ãããæ°ããããã©æ§åè¦. Index: trans_sid.rb =================================================================== --- trans_sid.rb (ãªãã¸ã§ã³ old) +++ trans_sid.rb (ãªãã¸ã§ã³ new) @@ -87,7 +87,9 @@ private # session_keyãè¿ãã def session_key - (request.session_options || ActionController::Base.session_options)[:key] + opts1 =
ç¹ç°ä¿¡é· ã¼ã¡ã¼ã¡ãå æ°ã«ãã£ã¦ãã¾ããå°ãè¬ã«ãæ £ãã...ãããªããç¸å¤ãããé£ã¹ãããªããã©ãæãæãããã°ã£ã¦æåãªãã¦å ¥åã§ããªãã£ããã©ãããã¯ã»ã¼ãªããªã£ããé¢ç¯ãã©ããçããªããè¬å¹ãã¦ããããããªã ã§ãããã°ãæ¸ããã¨è¨ãæ°ãã¾ãèµ·ãã¦ããã â¦
æ¬æ¥ãjpmobileã使ã£ã¦ãçµµæåå ¥ãã®mailãæºå¸¯ã«å¯¾ãã¦éãããã¨è¨ã話ããã¾ããã ã¨è¨ãããã§ãRailsã§çµµæåå ¥ãã¡ã¼ã«ãéãæ¹æ³: ããããæè¡å±ã®Tipsãåç §ã㦠ã¢ã¸ã¥ã¼ã«ãä½ã£ã¦ã¿ãã ActionMailer::Baseãä¸æ¸ãããã class ActionMailer::Base def create!(*) super @mobile_filter = nil @docomo_or_au = nil dummy_controller = DummyController.new if @mail.to.to_s.split(/@/).size == 2 if @mail.to.to_s.split(/@/)[1] =~ /docomo.ne.jp/ dummy_controller.request.mobile = Jpmobile::Mobile::Do
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}