kaigi on rails 2024ã®çºè¡¨è³æã§ã https://kaigionrails.org/2024/talks/willnet/
ãã®ã¨ã³ããªã§æ¸ããå 容ã¯ãã»ã¼ Growing Rails Applications in Practice ã®å 容ãå ã«ãªã£ã¦ãã¾ããè±èªã§ãããããã§æããå 容以å¤ã«ãã³ã¼ãã綺éºã«ä¿ã¤ãã¯ããã¯ãæ¸ããã¦ããããã¤ãã¼ã¸æ°ãå°ãªãèªã¿ãããã§ããã³ã¼ãã綺éºã«ä¿ã¤ã®ã好ããªæ¹ã¯ä¸èªãã¦ã¿ããã¨ããããããã¾ãã ã¯ããã« Rails 㧠fat model ãé¿ããããã®æ¹æ³ã¯ã7 Patterns to Refactor Fat ActiveRecord Models ãå§ãã¨ãã¦ãå¤ãã®ããæ¹ãåå¨ãã¾ã*1ã validation ã callback 㯠ActiveRecord(以ä¸AR) ãç¶æ¿ããã¨ãå©ç¨ãããã¨ãã§ãã¾ãã7 Patterns to Refactor Fat ActiveRecord Models ã® ã3. Extract Form Objects
Rails Developers Meetup 2018 Day 3 Extremeã§ã®ç»å£æ©ä¼ãé ããã®ã§ãæè¡é¡§åã¨ããããªããããããã ãã©ããããããªããä»äºãã®å 容ã«ã¤ãã¦è©±ãããã¦ããã ãã¾ããã以åæ¸ããããã°ã¨ã³ããªãããå°ãæ·±æããã¦ãç¾ç¶åãæãã¦ãã課é¡æãå ±æããæãã§ãã ã¹ã©ã¤ãã®æå¾ã®æ¹ã§ãæ¸ãã¦ããã®ã§ãããåããã£ã¦ããä»äº(ç¥è¦ãä¼ãã¦ã¬ã¼ã«ããå¤ããã®ãé²ãã ããå¤ããè»éãä¿®æ£ãã)ãçæ¥ã«ããã²ã¨ãå¢ããã¨webã¨ã³ã¸ãã¢ã®å¹¸ãã®ç·éãå¢ããã¨æãã®ã§ãããã®ãããã®å 容ãªãèªåã§ãã§ããããï¼ãã£ã¦ã¿ããããªãã¨ãã人ãåºã¦ãã¦ããããå¬ãããªãã ã¾ãããããã¹ã©ã¤ãã«æ¸ãã¦ããã©æè¡é¡§åã¨ä¼ç¤¾ã¨ã®ãããã³ã°ã«èª²é¡ãããã¨æãã¦ããã®ã§ãéãåãæã¦ã人ãä¼ç¤¾ãã§ã¦ããã¨ãããã*1*2ãsavanna.io ã§ãå°æ¥çã«ããããã¨ããã¾ã§æã£
é¢é£: system specã§Net::ReadTimeoutã«ãªã£ãã - ããããwebãµã¼ãã¹éçºæ¥è¨ãã©ã·ã®è£ ãã£ã±ãã¿ã¤ã ã¢ã¦ãã®æéã伸ã°ãã®ã§ã¯ãªãããã¹ãå´ã§ããªãã¼ã·ã§ã³ã®æ¡ä»¶ãç·©åãã¦ãããã»ãããã¼ã¿ã«ã®ãã¹ãå®è¡æéãçããªã£ã¦ããããããªãããã¨æã£ã¦æ¬¡ã®ããã«ãã (è¨å®ã¯palkan/anyway_config: Configuration library for Ruby gems and applicationsã使ã£ã¦ãã¾ã) class DailyReport < ApplicationRecord validates :body, presence: true, length: { maximum: -> { ValidationConfig.daily_report[:body][:maximum] } } end around do |exa
ãã®è¨äºã¯SmartHR Advent Calendar 2020 11æ¥ç®ã®è¨äºã§ãã åã®ãæä¼ããã¦ããSmartHRã§ã¯ãæ¯é±ããã¯ã¨ã³ãã¨ã³ã¸ãã¢ãéã¾ããæè¡çãªãããã¯ã«ã¤ãã¦å ±æãç¸è«ããããã¼ãã£ã³ã°ãéå¬ãã¦ãã¾ãããã®ãã¼ãã£ã³ã°ã§ã¯åãTipsãªã©ãå ±æããã³ã¼ãã¼ã常è¨ããã¦ãã¾ã*1ã ãã®ã¨ã³ããªã§ã¯ããã®ã³ã¼ãã¼ã§å ±æããå 容ãã²ã¨ã¤ç´¹ä»ãã¾ãã APIã«å¶éããããæ¹æ³ã«ã¤ã㦠APIãå¤é¨ã«æä¾ããã¨ããä¸å®ã®å¶éãããã¦ã¦ã¼ã¶ãAPIãä¹±ç¨ããã®ãé²ããã¨ã¯ãããããã¨ã§ã¯ãªãã§ãããããç´ ç´ã«èããã¨ã1æéã«5000åã¾ã§APIãå®è¡ã§ãããã®ãããªããæ¹ãæãã¤ãã¾ãããGitHubã®APIããã®ããæ¹ã§ãããSmartHRã®APIãåæ§ã§ãã ãããããã§ããã®ã§ã¯ãã¨ãªãããããã¾ãããå°ãå¾ ã£ã¦ãã ãããããããªã¯ã©ã¤ã¢ã³ããAPIã大éã«
2020å¹´6æä»ãã§å ¥ç¤¾ãããã£ãããã©ã¹ ã·ã¹ãã éçºé¨ã®è®å²ã¨ç³ãã¾ãã DietPlus Proã¨ããã¢ããªããç¹å®ä¿å¥æå°ã®é²æ管çç¨ã®Webã¢ããªã±ã¼ã·ã§ã³ãéçºãããµã¼ãã¼ãµã¤ãã¨ã³ã¸ãã¢ã¨ãã¦åãã¦ãã¾ãã ç¹å®ä¿å¥æå°ã«ã¤ãã¦ã¯ã以åã«ç¦æ¬ããã使ç¨ãã¦ããæè¡ãå«ãæ¸ãã¦ãã ãã£ãã®ã§ãã¡ããã覧ä¸ããã tech.medpeer.co.jp ã¨ã³ã¸ãã¢ã¨ãã¦ã®ãã£ãªã¢ã¯ã¡ããã¢ã§2社ç®ã¨ãªãã¾ããRailsã¯æªçµé¨ã§ãããRailsã¨ã³ã¸ãã¢ã¨ãã¦ã®æ¡ç¨ã§ããã ãããªããã§ã¡ããã¢ã§Railsã¨ã³ã¸ãã¢ã¨ãã¦ã®ãã£ãªã¢ãå§ã¾ã£ãããã§ãããéçºç°å¢ã«ã¤ãã¦ã¯èç°ãããä»ã®è¨äºã§ç´¹ä»ãã¦ããã¦ããã®ã§ãä»åã¯ã¡ããã¢ã®ã¨ã³ã¸ãã¢æåãç´¹ä»ãã¦ããããã¨æãã¾ãã 1. æ°ãããã¨ãå¦ã¶æ©ä¼ãå¤ã 2. æè¡è æ¯æ´ã®å¶åº¦ãã¡ããã¨ä½¿ç¨ããã¦ãã 3. æè¡é¡§åãwilln
ããæ°å¹´ãè²ããªäººã«ããã¼ãã§ã¯ã Ruby on Railsã®æ¹è¨çã¾ã ã§ãããã¨è¨ããã¦ç³ã訳ãªãæ°æã¡ã§ãã£ã±ãã§ãããããã¤ãã«æ¹è¨çãçºå£²ããããã¨ã«ãªãã¾ããï¼ãã¡ããææ°ã®Railsã§ãã6.0ã«å¯¾å¿ãã¦ãã¾ãã çºå£²æ¥ã¯7æ25æ¥ã§ãããå è¡ãã¦çºå£²ãã¦ããæ¸åºãããããã§ãã ãã¼ãã§ã¯ãRuby on Railsããå¢è£æ¹è¨çãï¼æ¸ç±æ¡å ï½æè¡è©è«ç¤¾ ããã°ã§æ¯ãè¿ãã¨ã第1çãæ¸ããã®ã¯6å¹´åã ã£ãããã§ãã6å¹´åã¨ããã°Railsã¯4.1ããªãªã¼ã¹ãããé ã§ãããã³ãã¨ã³ãã¯CoffeeScriptãæ¸ãã¦Sprocketsã§ã³ã³ãã¤ã«ããããã¤ã¯Capistranoã使ãã®ã主æµã ã£ããããªæ°ããã¾ãã6å¹´ã§ã ãã¶Railsã«ããéçºã®é²ãæ¹ãå¤ããã¾ãããããã®ãããã¯ãã¡ãã第2çã§æ´æ°ããã¦ãWebpackerãDockerã«ç½®ãæãã£ã¦ãã¾ãã æ¹è¨2çã®
表é¡ã®ã¨ãããªã®ã§ããã class Post < ApplicationRecord belongs_to :user end âã®ããã«æ¸ããã¨ãã«ãRails5ããã¯èªåã§validation_presence_of :userã¨ããã®ã¨åãã«ãªãã¾ããpostãããªãã¼ã·ã§ã³ããã¨ãã«userã®åå¨ããã§ãã¯ããå¿ è¦ãããã®ã§ãuserãæªãã¼ãã§ããã°ã¯ã¨ãªãçºè¡ããã¾ããä¸åº¦ã«ããããã®postãä¿åãããããªã±ã¼ã¹ã§N+1ãçºçãã¦å°ã£ãçµé¨ããã人ãããã®ã§ã¯ãªãã§ããããã ./bin/rails g model post user:references ã®ããã«ããå ´åã¯ã次ã®ããã«å¤é¨ãã¼å¶ç´ã¨belongs_toã両æ¹å®ç¾©ãããç¶æ ã«ãªãã¾ããã class CreatePosts < ActiveRecord::Migration[6.0] def change
Application Security Management Platform | Sqreen éã«çºããã®ã§ééã£ã¦ãããã ãã© ã¢ããªã±ã¼ã·ã§ã³ãµã¼ãã«å¯¾ãããã¡ã¤ã¤ã¦ã©ã¼ã« ã¨ã¼ã¸ã§ã³ã(ããªï¼)ãã¢ããªã±ã¼ã·ã§ã³ãµã¼ãã«ã¤ã³ã¹ãã¼ã«ãã¦ãæ»æãæ¤ç¥ãã 試ãã®ã¯ã¨ããããå¤æ®µã ãã¶é«ãããªã®ã§ãã¡ããã¨å£²ä¸ã®ç«ã£ã¦ãã¦ãã¤ã»ã³ã·ãã£ããªãµã¼ãã¹ã§ãªãã¨å°å ¥ãé£ããããªé°å²æ°ããã å°ãããµã¼ãã¹(3Mãªã¯ã¨ã¹ã/æ)ãªãç¡æã§ä½¿ããã®ã§ææã¡ã®ãµã¼ãã¹ã«ããã¦é°å²æ°ãæ´ãã§ã¿ãã Develop. Preview. Ship. - ZEIT ç¡æã§ãµã¼ãã¬ã¹ç°å¢ä½¿ããã®ã¯ä¾¿å©ããã§ã¯ãã rubyã使ããã£ã½ã que-rb/que: A Ruby job queue that uses PostgreSQL's advisory locks for speed and rel
ãã®æç« ã¯å æ¥éå¬ããã大éªRubyä¼è°02ã§ã®ç»å£å 容Concerns about Concernsãããã°ã¨ã³ããªã«ãããã®ã§ããæ¸ãã¦ããå 容ã¯ç»å£å 容ã¨ã ãããåãã§ããå®å ¨ä¸è´ã§ã¯ãªããæ§æãå¤æ´ãããåã£ã¦ããªãæ å ±ã足ããããã¦ã¾ã*1ã 大éªRubyä¼è°02ã«åºå¸ãã¦ããªãæ¹ã§ãã¹ã©ã¤ããèªãã°å¤§ä½ã®å 容ãææ¡ã§ããã¨æãã¾ãããããã ã¨ç´°ãããã¥ã¢ã³ã¹ã¯ä¼ããããªã(ãããã®æã®è©±ã¯ãã®ç´°ãããã¥ã¢ã³ã¹ã大äºã ã£ãããã)ã®ã§ã¡ããã¨ããã°ã¨ã³ããªã«ãã¦ãããã¨æã£ãã®ã§ããã æè¦ããã人ã¯ãã¡ãã®ã¹ã¬ã«æ¸ãã¦ããããã¨å¬ããã§ã(\( â°ââ°)/) Concernsã¨ã¯ãªã«ã Concernsã¨ããæ¦å¿µã¯ãRails 4.0ããå°å ¥ããã¾ãããå ·ä½çã«ã¯rails newããã¨ãã«çæããããã¡ã¤ã«ãã¡ã®ä¸ã« app/models/concerns app/contr
é座Rails#5 ã§ã®ç»å£è³æã§ããå人ã§webãµã¼ãã¹ãä½ãã¨ãã®tipséåã³turbolinks&stimulusã®ç´¹ä»ã主ãªå 容ã§ãã https://ginza-rails.connpass.com/event/112093/
2å¹´ã»ã©åãããããªã¼ã©ã³ã¹Railsæè¡é¡§åãã¿ãããªè©æ¸ã§è¤æ°ç¤¾ã®ãæä¼ãããã¦ãã¾ããããã¨ç¥ãåãã«ãæè¡é¡§åã£ã¦å®éã©ããªæãã§ä»äºãã¦ãã®ï¼ã¨èããããã¨ãå¤ãã®ã§ããããèªãã°ãããããã¨è¨ããããã«å®éã«ã©ããªãã¨ããã¦ããã®ãã¾ã¨ãã¦ããããã¨æãã¾ãã ãã£ããã©ããªãã¨ãã¦ãã® ãæä¼ããã¦ããä¼ç¤¾ã«ãã£ã¦ãã£ã¦ãããã¨ãéãã®ã§ä¸è¨ã§ã¯çãã«ããã§ãããåºæ¬çã«ãåã®èº«ã«ã¤ããRailsã¨ã·ã¹ãã éçºã®ç¥è¦ãæä¾ãããã¨ããã®ãå ±éãã¦ããã¨ãããåã¯CTOçµé¨ãªã©ãªãã®ã§ã¨ã³ã¸ãã¢çµç¹ã«ã¤ãã¦ã¯ãã¾ã触ãããæè¡å¯ãã®ç¥è¦ã«ã¤ãã¦ç¹åãã¦ä¼ãã¦ããæãã§ãã ã ããã次ã®ãããªä¼ç¤¾ã対象ãå ¨é¨Railsã使ã£ã¦ãããããããã使ããã¨ãã¦ããä¼ç¤¾ã§ãã åµæ¥ããæ°å¹´ãã¡æ¥åãæ¡å¤§ãã¦ããããè² åµãæºã¾ã£ã¦èº«åããåãã¥ãããªã£ã¦ããã®ã§ã¡ããã¨ä½å¶ãæ´ããã è² åµ
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}