ããªãã©ã¤ã³éå¬ãRoppongi.rb #27 https://roppongirb.connpass.com/event/343872/

é·å¹´ã®éç¨ã§ãGemfileã¯ããéç¨ããã¨ä¸æããã£ããã¨ããç¥è¦ãèç©ããã¦ããã®ã§ãããã«æ¸ãåºãã¦ã¿ã¦ããã Bundler/OrderedGemsãæå¹åãã RuboCopã® Bundler/OrderedGems Copãæå¹åããã æªãä¾: gem 'puma' gem 'jbuilder' è¯ãä¾: gem 'jbuilder' gem 'puma' ã»ã¯ã·ã§ã³ãåããªã åºæ¬çã«ãç¬èªã®å¤æã§ç©ºè¡ãå ¥ãã¦ã»ã¯ã·ã§ã³ãåãããããªãã ããã§è¨ãã»ã¯ã·ã§ã³ã¨ã¯ã空è¡ã§åºåãããï¼ã¤ã®ã¾ã¨ã¾ããã®ãã¨ã§ãããBundler/OrderedGems ã¯ããã®ã¾ã¨ã¾ãã®ä¸ã§è¾æ¸é ã§ãããã¨ãè¦æ±ããã æªãä¾: gem 'aws-sdk-rails' gem 'aws-sdk-s3' gem 'graphql' gem 'graphql-batch' è¯ãä¾: gem 'aw
æ¦è¦ å ãµã¤ãã®è¨±è«¾ãå¾ã¦ç¿»è¨³ã»å ¬éãããã¾ãã è±èªè¨äº: Drive-by Active Storage advice | justinâ¤searlsâ¤co åæå ¬éæ¥: 2024/09/16 åèè : Justin Searls -- Test Doubleã®å ±ååµæ¥è ã§ã æ¥æ¬èªã¿ã¤ãã«ã¯å 容ã«å³ãããã®ã«ãã¾ããã åè: Active Storage ã®æ¦è¦ - Railsã¬ã¤ã ä»ã¯ã«ã³ãã¡ã¬ã³ã¹ã®çºè¡¨ã®æºåä¸ã§ãããã¾ã§ç§ãç©ã¿éãã¦ããã¢ããã¤ã¹ã«ã¤ãã¦è©³ãã説æãã¦ããä½è£ãããã¾ãããããããããã§ãããã¤ãã®ã¢ããã¤ã¹ãæ¬è¨äºã«ã¾ã¨ãã¦ããã¦ãã¹ã©ã¤ããããªã³ã¯ãããã¨ã«ãã¾ãã ä»æ¥ã®ãé¡ã¯Ruby on Railsã®Active Storageã§ããActive Storageã¯ãã¢ããªã±ã¼ã·ã§ã³ããã¼ã¿ãã¼ã¹ã»ãµã¼ãã¼ãè©°ã¾ãããã«ãåçãåç»ãªã©ã®ã¦ã¼ã¶ã¼ç
ã次ã®è·å ´ã Ruby ãªãã ãã©ãã¨èªã¿æ¸ãããã°ããèãããã®ã¨ã大éªRubyä¼è°03ã大æ±æ¸Rubyä¼è°10ãKaigi on Rails 2023 㨠Ruby/Rails é¢ä¿ã®ã¤ãã³ãã«ç¶ãã¦åå ãã¦ãä½è ã®çãã¾ã¨ä¼ã£ãã®ã§ã ãèªãããã«ãªãããã« è¨èªä»æ§ã¯ä½ããã®æ¬ 1 åã®åé ã®æ¹ãèªãã°é°å²æ°ã¯æ´ããã ããã Ginza Rails27 igaiga - Speaker Deck èæ¸ãæè¡é¡§åãå¥åº·è¨ºæã¬ãã¼ã ã§ã馴æã¿ã® @igaiga555 ããã®ä½ã£ã表ã§ãé£æ度å¥ã«ã¾ã¨ã¾ã£ã¦ããã ãã®ããRuby ãããããç®æã人ã®ããã®Rubyå ¥é ãå®çªããªãã ã§ãããã¨ãç¥ã ããã¾ (Ruby ãªãã¡ã¬ã³ã¹ããã¥ã¢ã«) ã® EnumerableãString Rails Guides ã® Active Support Core Extensions æ¥æ¬èª
ååã«ç¶ããRSpecã®changeãããã£ã«é¢ããè¨äºã§ãã å¤ã®å¤åãæ¤è¨¼ããæ㯠change ãããã£ã便å©ã§ãã ãã ãããããªæã©ããããã ã£ããã¨èª¿ã¹ããã¨ãå¤ãã£ããã¨ããã change ãããã£ã¾ããããããã試ãã¦ã¿ãã¨ãã®ã¡ã¢ãæ®ãã¾ãã ç®æ¬¡ ç°å¢ ããã¥ã¡ã³ãã«ã¤ã㦠ã¡ã½ããã¹ã¿ã¤ã«ã¨ãããã¯ã¹ã¿ã¤ã« å¢æ¸ã確èªãã(by, from, to) å¢æ¸ã®å¹ (æå°ã»æ大)ãæ¤è¨¼ (by_at_least, by_at_most) å¤åããªããã¨ãæ¤è¨¼ (not_to + change) andã¨changeã®çµã¿åãã 2ã¤ã¨ãå¤åãã (change and change) 1ã¤ã¯å¤åããããã1ã¤ã¯å¤åãªã (and + define_negated_matcher) changeã¨reloadã«ã¤ã㦠æ´æ°ã®ãã£ãã¢ãã«ã®ã¤ã³ã¹ã¿ã³ã¹ãæ¤è¨¼ããã¨ã㯠rel
åé¤äºå®ã®ãã¼ã¸ãFactoryBotã«é¢ããè¨è¿°ã¯FactoryBotã¡ã¢ã«ç§»åãã¾ããã
ç°å¢æ§ç¯ã®è©±ã¯ãã¡ããã èæ¯ éçºç°å¢æ§ç¯ãçµãããæ¥åã§ä½¿ç¨ãã¦ããDocker for Macã§Railsã¢ããªã®ã³ã³ããèµ·åå®äºããã¾ã§ã«ãåæ¥2æ¥éããã£ã¦ãã¾ã£ãçµé¨ãå ±æãããã¨æãã¾ãã éçºç°å¢ãã¼ã¸ã§ã³ Ruby: 2.7.2 Rails: 6.0 Postgesql: 10.5 Docker for Macãã¤ã³ã¹ãã¼ã« Intelçã§Docker for Mac version:4.2.0ã使ç¨ãã¦ãã¾ãããããã¾ã«ã½ã¼ã¹ã³ã¼ãã®å·®åãæ¤ç¥ã§ããªããã¨ããããããä»åã¯ãã¼ã¸ã§ã³4.1.1(M1ç¨)ãã¤ã³ã¹ãã¼ã«ãã¾ãã Docker for Macã®ç¦ãæ ä¸ã®è¨å®ç»é¢ã§CPUæ°ã9以ä¸ã«ããã¨ãdocker engineãstoppedã¨startingãç¡éã«ã¼ããã¦ãã¾ãã¾ããåèµ·åãã¦ããç¡éã«ã¼ãçµããã¾ããã ããããããªã£ããä¸åº¦Docker for
Variables ãã«ãã«å¿ è¦ãªãã ãã©ãªãã¸ããªã«ç´æ¥ã³ãããããããªããããªå¤æ°ãããã¦ãããã¨ãã§ãã¾ããï¼ä¾ï¼Slackã®ãã¼ã¯ã³ãsshã®ç§å¯éµãªã©ï¼ ããã«è¨å®ãã¦ããã°ã¸ã§ãå®è¡æã«ç°å¢å¤æ°ã¨ãã¦ä½¿ããã¨ãã§ãã¾ã 3. gitlab-ci.yml ããªãã¸ããªã«ã³ããããã http://doc.gitlab.com/ce/ci/yaml/README.html ã http://doc.gitlab.com/ce/ci/quick_start/README.html ãåèã«ãã¡ã¤ã«ãä½ã£ã¦ãã ãã Railsã¢ããªããã¹ããéç解æãèªåãããã¤ãããããã®è¨å®ãµã³ãã« ãã¡ãã«ãªãã¾ã https://github.com/sue445/gitlab-ci-example æ®éã«Railsã¢ããªããã«ãããã ããªãä¸è¨ãã¡ã¤ã«ãã³ããããã ãã§ã»ã¼ãããã¨æãã¾ãã
ããã¼ãã©ã¯ã¼ãç¦å²¡æ ç¹ã®è²¬ä»»è ããã¦ããã¾ã é»ç° ã§ãã æ®æ®µã¯Railsã¨ã³ã¸ãã¢ã¨ã㦠ããã¼ãã©ã¯ã¼ãã¯ã©ã¦ãçµè²» ã®éçºãæ å½ãã¦ãã¾ãã æ®æ®µRailsã使ã£ã¦éçºããã¦ããæ¹ã§ããã°ãN+1åé¡ã«æ©ã¾ãããçµé¨ã¯å¤§æµã®æ¹ããããã§ã¯ãªãã§ããããã N+1ãªã¯ã¨ãªã®çºè¦ã«ã¯ bullet ã使ãã¨è¯ãã§ããã bulletã使ãã¨N+1ãªã¯ã¨ãªãçºè¦ãã¦ãããããã«ãå ·ä½çã«ããã«includesã追å ããªããã¨ææã¾ã§ãã¦ãããã®ã§å¤§å¤å©ããã¾ãã ããããå æ¥bulletã«è¨ããããã¾ã¾ã«includesãä»ãã¦ã¿ãã¨ãããN+1ã¯è§£æ¶ãããã®ã®ãã¹ãã¼ã¯ã¨ãªã«è¦èããããã¨ã¨ãªã£ãã®ã§ãincludes,preload, eager_loadã«ã¤ãã¦æ¹ãã¦èª¿ã¹ã¦ã¾ã¨ãã¦ã¿ããã¨ã«ãã¾ããã ï¼ã½ã¼ã¹èª¿æ»ããRailsã®ãã¼ã¸ã§ã³ã¯ 6.0.0.beta3 ã§ããï¼ i
çµè« Dockerå ¬å¼ã®ãQuickstart: Compose and Railsãã«æ¸ãã¦ã¾ãã ãªã®ã§ã¹ã©ã¹ã©ç解ã§ããæ¹ã¯ä¸è¨ãªã³ã¯å ã¸ã©ãã https://docs.docker.com/compose/rails/ å ¬å¼ã®ã¯ã¤ãã¯ã¹ã¿ã¼ãã¯å ¨é¨è±èªã§æ¸ããã¦ãã¦ã ç¥è½ã®ä½ãåã¯ç²ãã¦ãã¾ãã¾ãã®ã§ ãã¡ãã®å ¬å¼ã¬ã¤ããå°ããã¤ç´è§£ããªããç°å¢æ§ç¯ãã¾ãã http://docs.docker.jp/glossary.html http://docs.docker.jp/engine/articles/dockerfile_best-practice.html ãã¡ãã®dockerã¬ã¤ãã¨ãã¹ããã©ã¯ãã£ã¹éã詳ããããã¤åãããããã§ãã Dockerã¨ã¯ï¼ å¤ãã®æ¹ã ãåãããããDockerãã³ã³ããæè¡ã«ã¤ãã¦è§£èª¬ãã¦ããã¦ã¾ãã®ã§ ãã¡ããèªã¿ã¾ãããã <解説ãªã³
Deleted articles cannot be recovered. Draft of this article would be also deleted. Are you sure you want to delete this article? åãã¾ãã¦ãqsona (tw) ã¨ç³ãã¾ããRuby on Rails Advent Calendar 2016 6æ¥ç®ã®è¨äºã«ãªãã¾ãã Railsæ´ã¯10ã¶æã§ããã¡ããAdvent Calendarã¸ã®åæ¦ãåã§ãã å ¨ä½çã«çææ°ãªå 容ã¨æãã¾ããã ããããããããµã«ãªæãã¦ãã ãã ãææããã«ãé¡ããã¾ãã ã¯ããã« ç°å¢ JSONãè¿ãAPIã§ããã¼ã¿ãã¼ã¹ã¯RDBãæ³å®ãã¦ã¾ãã ããã¾ãé¢ä¿ãªãã§ããä¸å¿ãRails5 (api mode) + MySQLãæ³å®ãã¦ãã¾ãã ãã¤ã¯ããµã¼ãã¹ã¨ãã¦ã®ããã¯ã¨ã³ãã«ä½¿
Rails Developers Meetup 2019ï¼2019/03/22 - 23ï¼
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}