1. æè¿ã®Railsäºæ - 4.1! author: â@ke_tachibanaâ about: gem ârailsâ, â4.1.0.beta1â generated_by: âslideshow(s9) gem (https://github.com/slideshow-s9/slideshow)â
çãããããã«ã¡ããMUGENUPã® narikazu ã§ãã6æ2æ¥ã«RSpec 3.0.0ããªãªã¼ã¹ããã¾ããï¼Myron Marston » RSpec 2.99.0 and 3.0.0 have been released!ï¼ãRSpec 3.0.0ã§ã®å¤æ´ç¹ã¯Myron Marston » Notable Changes in RSpec 3ãããã¯ããã®æ¥æ¬èªè¨³ã®RSpec 3ã®éè¦ãªå¤æ´ - æé 天Rubyããåç §ä¸ããã ããã§ã¯ãå¼ç¤¾Railsããã¸ã§ã¯ã(Rails 3.2.18)ã§ã®RSpec3.0.0ã¸ã®ã¢ãããã¼ãæé ãè¨è¿°ãããã¾ãããã®è¨äºãçããã®ã¢ãããã¼ãæã®åèã«ãªãã°å¹¸ãã§ãã ã¢ãããã¼ãæé ã¢ãããã¼ãæé ã¯ä»¥ä¸ã®è¨äºãåèã«è´ãã¾ããã æ¢åã®Railsããã¸ã§ã¯ããRSpec 3.0ã«ã¢ããã°ã¬ã¼ãããéã®æ³¨æç¹ ï½RSpec 3ã¯æããªã
Twitter Bootstrap 3ããªãªã¼ã¹ããã¦ããçµæ§æ¥ãçµã¡ã¾ãããtwitter-bootstrap-railsã¯ãã©ã³ãçã§ãsimple_formã¯RCçã§ãããã対å¿ã§ãã¦ããããã§ããå°å ¥ããã«ããã£ã¦ãã¡ãã£ã¨ãããç®æããã£ãã®ã§ãç°¡åã«ãã¥ã¼ããªã¢ã«ã«ã¾ã¨ãã¦ããããã¨æãã¾ãã ç°å¢ Mac OS X 10.8 Ruby 2.1 Ruby on Rails 4.1 twitter-bootstrap-rails 3.1.1 (2014/6/21æç¹ã§ã¯branch) simple_form 3.1.0.rc ã»ããã¢ãã Gemfileã«å¿ è¦ãªgemãè¨è¿°ãã¾ãããã¤ã³ãã¯twitter-bootstrap-railsã¨simple_formã§ããåã ææ°å®å®çã§ã¯ã¾ã 対å¿ãã¦ããªãã®ã§(2014/6/21ç¾å¨)ã以ä¸ã®ããã«ãã¼ã¸ã§ã³æå®ãå¿ è¦ã§ãã ðGe
ååãç§ãRSpecãæ¸ãå ´åã®ããæ¹ã«ã¤ãã¦ã®è¨äºãæ¸ãã¾ããã ä»åã¯ã¤ã³ãã°ã¬ã¼ã·ã§ã³ãã¹ãã«ã¤ãã¦æ¸ãã¾ãã ç§ã®å ´åã¯Controller,Viewã®ãã¹ãã¯åºæ¬çã«ã¯æ¸ãããã¤ã³ãã°ã¬ã¼ã·ã§ã³ãã¹ãã§æ¸ã¾ãã¦ãã¾ããã¤ã³ãã°ã¬ã¼ã·ã§ã³ãã¹ããã¬ã¼ã ã¯ã¼ã¯ã¯ã Cucumber Turnip RequestSpec FeatureSpec Steak ãªã©è²ã ããã¾ãã以åã¯Cucumberã使ã£ã¦ããã®ã§ãããç¾å¨æ å½ãã¦ããããã¸ã§ã¯ããå§ããåã«ãCucumberã«ä¸æºããã£ãã®ã§ãä»ã®ãã¤ã試ããã¨ãã話ã«ãªã£ã¦ãSteak, RequestSpec, FeatureSpecã試ãã¦ãFeatureSpecã«ãã¾ãããTurnipã¯ããããæ¤è¨ãã¦ããé ã¯æåã§ãªãã£ãã®ã§ã試ãã¦ãã¾ãããããã¡ã®ä¼ç¤¾ã®ä»ã®ããã¸ã§ã¯ãã§ã¯ãCucumberã®ä»£ããã«Turnipã使ãã
åç½®ã 製ä½ä¸ã® Webãµã¤ã ããã¨ããããããæãã®ã¬ã¤ã¢ã¦ãã«ãã¦ãå®æå½¢ã®ã¤ã¡ã¼ã¸ï¼ãç®ã®ä¿é¤ï¼ã«ããçºã«ããã Bootstrap ã使ããã¦ãã¾ãã Bootswatch 㯠Bootstrap ã®ãã¼ãã§ããã£ã±ãããæãã®ã¬ã¤ã¢ã¦ããã¾ã¨ã¾ã£ã¦ãã¾ãã ãã®ä¸ã®ãã¼ãã®1ã¤ã Rails 4 ã§å©ç¨ããæ¹æ³ãã¡ã¢ãã¾ãã Gemfile gem 'twitter-bootswatch-rails', '~> 3.1.1' gem 'twitter-bootswatch-rails-helpers' gem 'execjs' gem 'less-rails'
ã¯ããã« Railsã§webãµã¤ããä½æããã«ããããã°ã¤ã³æ©è½ãå®è£ ãããã¨ã¯ãããããã¨æãã¾ãã ããã§ä»åã¯è¯ã使ããã¦ããDeviseã¨Authlogicã使ã£ã¦ã¿ã¾ããã ã¾ãã¯ããããã®åºæ¬æ©è½ã«ã¤ãã¦æ¯è¼ãã¦ã¿ã¾ãã éçºç°å¢ Mac OS 10.9 Ruby 2.1.1 Rails 4.1.0 DB SQLite3 Devise ã¾ãã¯Deviseã®åºæ¬æ©è½ããã§ãã Railsããã¸ã§ã¯ããä½æããå¾ã«Gemfileã«ä»¥ä¸ãè¨è¿°ãã¾ãã $ gem 'devise' ã¤ã³ã¹ãã¼ã«ãã¾ãã $ bundle install $ rails g devise:install ã¤ã³ã¹ãã¼ã«ãããgenerateã³ãã³ããå®è¡ãã¾ãã å¼æ°ã«ã¢ãã«åãæå®ãã¾ããããã§ã¯userã¨ãã¾ãã $ rails generate devise user å®è¡ããã¨ã¢ãã«ã®ä»ã«ãã¤ã°ã¬
Rails + iOSã¨ããçµã¿åããã¯å²ã¨å¤ãã¨æããã ãã©ããã¡ãã¡ãµã¼ãã¼ã¨ã¯ã©ã¤ã³ãã®ç¹ãè¾¼ã¿ãèªåã§æ¸ãã®ã¯ã¤ãããªã¼ã¨æã£ã¦èª¿ã¹ãããNSRailsã¨ãã便å©ãªã®ããã£ãã®ã§è©¦ãã¦ã¿ãã https://github.com/dingbat/nsrails Railsã®ã¢ãã«ã¨å¯¾ã«ãªããã®ãiOSå´ã§å®ç¾©ãã¦ããã¨iOSã®ãªãã¸ã§ã¯ããæä½ããã ããµã¼ãã«ãã¼ã¿ãæ°¸ç¶åãããããã¼ã¿ã®åå¾ãã§ããããã£ããããã¨parse.comã¨é常ã«ä½¿ç¨æãä¼¼ã¦ããã å°å ¥ å°å ¥ã¯cocoapodsçµç±ã§ãPodfileã«use 'NSRails'ã¨ããã ãã pod 'NSRails' iOSå´ã§Railsã¢ããªã®å ´æãæå®ããã«ã¯ãAppDelegateã§ä»¥ä¸ã®ããã«æå®ããã ãã - (BOOL)application:(UIApplication *)application did
æè¿å人çã«ä½ã£ãåçå ±æãµã¤ããå ¬éãã¾ããã photoll - ã¹ãããåçå ±æãµã¤ã ãã®åçå ±æãµã¤ãã§å®éã«ä½¿ã£ã¦ããããããGemãæãã¦ã¿ã¾ãã ãã¨ããã¾ãã§ä½¿ã£ã¦ãªããã©ä¾¿å©ãããªGemã¨ããç´¹ä»ã ä¸äººã§1ããWebãµã¼ãã¹ãä½ãéç¨ãæ¸ããæä½ã®ããã°ã¨ã³ããªãããã£ããè¦ã¦ãã ããã ã1人ã§Webãµã¼ãã¹éçºãæ°ç±³Railsã¨ã³ã¸ãã¢ãç¡è¬ã«ãåçå ±æãµã¤ããä½ãã¾ãã ã ãã¶é·ãã§ãããGemfileããã®ã¾ãã¾è¼ãã¾ãããç°¡æ説æä»ãã 主è¦ãªGemããã¨ã§èª¬æãã¾ãã source 'https://rubygems.org' gem 'rails' gem 'mysql2' gem 'haml-rails' # HTMLãç°¡æ½ã«æ¸ãã gem 'sass-rails' # CSSãå¹ççã«æ¸ãã gem 'bootstrap-sass' # Twitte
ã㢠ãªãªã¼ã¹rubyjump.vimXRubyJumpã¨ããvimãã©ã°ã¤ã³ãæ¸ããããæ¬æ¥ãããå¤§å¹ ã«æ©è½æ¡å¼µããææ°çããªãªã¼ã¹ãããã¾ãããã®ãªãªã¼ã¹ã«åããã¦ãååãXRubyJumpããRubyJumpã«å¤æ´ããã 主ãªå¤æ´ç¹ã¯ä»¥ä¸ã®ã¨ããã ã¸ã£ã³ãåè£ã®ããã¾ããªè£å®ãå¯è½ã«ãªã£ã RubyJumpãå ¨ã¦ã£ã³ãã¦ãæ¤ç´¢ã§ããããã«ãªã£ãã«ã¬ã³ãã¦ã£ã³ãã¦ã®æ¤ç´¢ã¯RubyJumpLocalã¨ãã¦æ®ããã«ã¼ã½ã«ä¸ã®åèªã§ã¸ã£ã³ãããRubyJumpCursourã追å ããååã®åè£ã¸RubyJumpNext/RubyJumpPrevã§ç§»åã§ããããã«ããåå¾ã®å®ç¾©ã¸RubyJumpForward/RubyJumpBackwardã§ç§»åã§ããããã«ããã«ã¼ã½ã«ç§»åã®ä¾¿å©ã³ãã³ãã¨ãã¦RubyJumpNextForward/RubyJumpPrevBackwardã追å ãã Rub
å¯ã¦ããæé以å¤ã¯Vimã¨Railsã触ã£ã¦ããåãé¸ã¶Vim Tips10é¸ãç´¹ä»ãã¾ãã Vimã使ãå§ãã¦3ã¶æãããã®äººã«ãªã¹ã¹ã¡ã§ãã â» ããã¾ãRailsã¯é¢ä¿ããã¾ããã diw ï¼ãã¼ãã«ã¢ã¼ãï¼ ã«ã¼ã½ã«ä¸ã®åèªãæ¶ã ããã¤ããªãã¦ã¯Vimã使ãæå³ãç¡ãã¨ããã»ã©ãã使ãã³ãã³ãã ãã¼ãã«ã¢ã¼ã㧠hoge ã¨ããæååä¸ã®ãã©ããã«ã«ã¼ã½ã«ãããç¶æ ã§diwã¨ã¿ã¤ãããã¨hogeã¨ããåèªãæ¶ãã¾ãã ãã®ä½ãåèªã¨ããã®ãããã®å¤å®ãé常ã«ç§é¸ã§ãç´æã«ããããã¦ãã¦ä¾¿å©ã§ãã ãã¨ãã°ã|ãã«ã¼ã½ã«ä½ç½®ã ã¨ãã¦ã ho|ge bar -> bar ho|ge.bar -> .bar "ho|ge" -> "" <di|v> -> <> ãã®ããã«ããã¾ãæãã«ç¹æ®è¨å·çãé¿ãã¦ãåèªãåé¤ãã¦ããã¾ãã ciwã¨ã¿ã¤ããããã¨ã§ãhogeãåé¤å¾ãæ¿å ¥ã¢ã¼ã
ã¯ããã« ãµã³ãã«ã¢ããªçãä½æããéããã¶ã¤ã³ã«æ©ããã¨ã¯å¤ããã¨æãã¾ãã (ç¹ã«ãã¶ã¤ã³ã»ã³ã¹ã«ä¹ããç§ã®ãããªããã°ã©ãã¯ã»ã»ã») ãã®ãããªæã«ãBootstrapã¯å¼·ãå³æ¹ã¨ãªãã¾ãã(ä»æ´æã¯å¼·ãã§ããã»ã»ã») ã¾ãBootstrapã«ã¯ãã¶ã¤ã³ã®ãµã³ãã«ãç¨æããã¦ããã®ã§ããã®ãµã³ãã«ããã¼ã¹ã¨ãã¦ã¢ããªãä½ã£ã¦ããã°ãã¶ã¤ã³ã«ã¤ãã¦æ©ããã¨ãæ¸ãããã¨ãã§ãããã§ãã ä»åã¯Ruby on Rails 4 ã«Bootstrap3ãé©ç¨ãããµã³ãã«ã«ãããStarter templateãã¨åããã¼ã¸ãä½ã æé ã«ã¤ãã¦çºãã¦ã¿ããã¨æãã¾ãã ä½æ¥æé 以ä¸ã«ãä»åã®ä½æ¥æé ãæ¸ãã¦ããã¾ãã 1.ãã¼ã¸ä½æ ã¾ãã¯Ruby on Railsã«ã¦ãä»å表示ãããã¼ã¸ãä½æãã¾ãã ã³ã³ããã¼ã©ããã¥ã¼ã®ä½æ ä»å表示ããç»é¢ã®ã³ã³ããã¼ã©ã¯ãwelcomeãããã¥ã¼ã¯ã
Rails4æ代ã®é«éãã¹ãç°å¢ Rspec+Guard+FactoryGirl+Spring[NEW!]RailsRSpecGuardFactoryGirlspring Railsã®ãã¹ãç°å¢ã®å®çªã¨ããã° Rspec Guard FactoryGirl Spork ãã®ã¸ãã®çµã¿åãããå®çªã ã£ããã§ã¯ãªãã§ããããã Sporkã§ãã¹ãç°å¢ãããªãã¼ããã¦ãGuardã§ãã¡ã¤ã«ãç£è¦ãã¦ã¬ã³ã¬ã³ãã¹ããåãã¦ã¨ã ä»åã¯ãã®Sporkãæè¿ã¡ãã¡ãã¨é è§ãç¾ãã¦ãã¦ããSpringã«ç½®ãæã㦠ããã¢ãã³ãªé«éãã¹ãç°å¢ã®ä½ãæ¹ã説æãã¾ãã Springã®ããã¨ãã ãã®Springãªã«ãããã£ã¦ãè¨å®ããããç°¡åã ãã¾ãã«Guard+Rspec以å¤ã«ãrails generateãrake routesãªã©ä»ã®ã³ãã³ããé«éåãã¦ããã¾ãã ä¸åº¦ä½é¨ãããããæ»ãã¾ããã å¿ è¦
gistfile1.md ruby-debugã使ã£ãRubyã»Railsã¢ããªã±ã¼ã·ã§ã³ã®ãããã°æ¹æ³ ã¤ã³ã¹ãã¼ã« # Ruby 1.8ç³»ã®å ´å gem install ruby-debug # Ruby 1.9ç³»ã®å ´å gem install debugger bundlerã®å ´å㯠gem "ruby-debug" ãGemfileã«è¿½è¨ã㦠bundle install ãã¾ãã ãã¥ã¼ããªã¢ã« ãããã¬ãèµ·åãã ãããã°ãããå ´æ㧠debugger ã¡ã½ãããã³ã¼ã«ãã¾ãã class User def name debugger # â ãã puts "åæ©" end end rails consoleã --debugger ãªãã·ã§ã³ä»ãã§èµ·åãã¾ãã èµ·åæã«ãããã¬ãæå¹ã«ãªã£ãæ¨ã®ã¡ãã»ã¼ã¸ãåºåããã¾ãã script/console --debugger
Webã¢ããªã®ãªãã㪠ã¨ãããã¨ã§ãOfficial Blog: A second spring of cleaningã§åç¥ããããGoogle Readerééã«åãã俺å°ç¨RSSãªã¼ãã¼ãRuby on Railsã§è»½ãã«ä½ã£ã¦ã¿ãã read.aho.mu ç®çã¨ãã¦ã¯Ruby + Railsã®å¦ç¿ã¨ããµã¼ãã¼ãµã¤ãã®ãªãããªã®ã¤ããã ã£ãã®ã ãã©ãç°¡åããã¦å®ä½æ¥1æ¥åãããã§çµãã£ã¦ãã¾ã£ã..(´ã»Ïã»`) èªåã§ç»é²ãããã£ã¼ãããèªåã§ãªãã¨ãªãæµãèªã¿ãã¦ãè¯ãã¨æã£ãè¨äºã«â¡ãä»ããããã ããªã®ã§ããããããã¤ãã§ã«ãªã¼ãã³ã«ãªã£ã¦ããã ãã è²ã ãã«ããã«ã 触ã£ã¦ã¿ãç®æã«ã¤ãã¦ææãªã©ã åããScalaãªãNodeãªãã§Hello Worldã¾ã§ã¯è©¦ãã¦ã¾ããããç´ ç´ã«Railsããããã¤ãã¦åãã¨ããã¾ã§æãå ¥ããã®ã¯åã ç¡æã§ä½¿ããã¢ããªã³ãå¹¾ã¤ãå ¥ã
Railsã¢ããªã«èªè¨¼æ©è½ãã¤ããã«ã¯ããã¤ãæ¹æ³ãããã¾ãããç¡åã®ã¢ããªãåºã使ã£ã¦ãããããã«ã¯ã¦ã¼ã¶ç»é²ã®ãã¼ãã«ãä¸ããå¿ è¦ãããã¾ããã¨ãªãã¨ãtwitterãfacebookã®ã¢ã«ã¦ã³ãã§èªè¨¼ãã§ããOmniAuthã使ãã®ãããããã OmniAuthã®ã¤ã³ã¹ãã¼ã«ã¨è¨å®ãã¡ã¤ã«ã®ç·¨é ã¾ãã¯Gemfileã«gemãè¨è¼ãã¾ããomniauth-twitterã¨omniauth-facebookã¯ãã©ã®æ¬ã«ãã¦ã§ããµã¤ãã«ãæ¸ãããã«æ示ããªããã ãã©ãåã®ç°å¢ã ã¨å¿ è¦ã ã£ãã®ã§è¨è¿°ãã¦ããã¾ããã gem 'omniauth' gem 'omniauth-twitter' gem 'omniauth-facebook' ã§ãbundle installãå®è¡ãã¦ãã ããã $ bundle install ç¶ãã¦ã/config/initializers/ãã«ãomnia
å æ¥ã®ããã°ã©ãåããã¶ã¤ã³åå¼·ä¼ã§çºè¡¨ããããå°ãªãæéã¨ç¥èã§âãããªãâã«è¦ããããºã«ããã¶ã¤ã³ãã¯ããã¯ãï¼by 赤å¡ããï¼ã®ä¸ã«æ¸ããã¦ããSassã®MixinãRailsã§ä½¿ããGemã«ãã¦ã¿ã¾ããã zurui-sass-rails: https://github.com/mahm/zurui-sass-rails sample: http://zurui-sample.herokuapp.com/ ããããããï¼ï½ RT @mah_lab: .@ken_c_lo ããã®ãºã«ããã¶ã¤ã³ãGemã«ãã¦ã¿ã¾ããã github.com/mahm/zurui-sas⦠ãµã³ãã«ã¯ãã¡ã zurui-sample.herokuapp.com (based on github.com/machida/Customâ¦) â TAEãã (@ken_c_lo) 11æ 7, 2012 @m
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}