DBè¨è¨ãããNight #6 æ£è¦å [online] https://dbnight.connpass.com/event/177859/
Windowsã«Ruby on Railsã¨MySQLãå ¥ãç°å¢ãä½ãããã®ä¸ã§ç°¡åãªããã¯ãã¼ã¯ã¢ããªã±ã¼ã·ã§ã³ãä½ãã¾ã§ãè¨é²ããã ã¼ãã¼ãç·¨éãã·ã§ãã³ãã«10å以å ã§ã¢ããªã±ã¼ã·ã§ã³ãæ§ç¯ãã¦ã¾ãã 詳ããã¯ã2005å¹´11æ18æ¥çºå£²ã®æè¡è©è«ç¤¾ SoftwareDesign 2005å¹´12æå·ã§è§£èª¬äºå®ã§ããã¾ããã Rails+MySQLã¤ã³ã¹ãã¼ã«ç·¨ ã¢ããªã±ã¼ã·ã§ã³ç·¨ 追å æ å ± Web Developer Study @Sapporo - 2005/11/19 Rails + Selenium - OSC2006 Do 2006/07/15 æ´æ°æ å ± 2006/07/15: OSC2006 Doã§ä½¿ã£ãè³æ Rails + Seleniumãå ¬é 2005/11/19: Web Developer Study @Sapporoã§ä½¿ã£ãè³æãå ¬éãã¦ãã¾ãã 2005/1
ã¡ãªã¿ã«ãæåã«çµè«ã ãè¨ã£ã¦ããã¨ãã¾ãSandi Metzã®ããªãã¸ã§ã¯ãæåè¨è¨å®è·µã¬ã¤ãããèªããã¨ãã話ã§ã ããã ãã§çµãã£ã¦ãã¾ãããæ°æã¡ã¯ããããä¸è¦ªåéãããããã¡ãã£ã¨Railsåãã®è©±ãæ¸ããã¨æãã ãã è¨ããããã¨ã¯ãããåãã£ã¦ãªãã®ã«ä½¿ãã®ã¯æ¢ããã¨ãããã¨ã èªåãæ¬ã§æ¸ãããããæåããããåèã«ãããçµæãªã®ãããããªãããä¸ã®ä¸ã«ã¯æ¬å½ã«é ·ãã¯ã©ã¹ãåå¨ãããã®ã§ãéã«ãµã³ãã«ã§æ¸ãã¨ä»¥ä¸ã®æ§ãªæãã®ã³ã¼ããåå¨ãããããã class HogehogeService # Hogehogeã¯ã¢ãã«åã¾ãã¾ def process(hogehoge, option_a: nil, option_b: nil, option_c: false) history = hogehoge.histories.last unless hogehoge.activ
shibaraku gem ããªãªã¼ã¹ãã¾ãã ããã¯ä½ï¼ ActiveRecord ã§æéãæ㤠model ãæ±ã gem ã§ããæééå®å ¬éããäºç´å ¬éãããã¨ããªããã«ä½¿ãã¾ãã ä½ã£ãã®ã¯ 1 å¹´åãªãã§ããããã£ã¨ç¤¾å gem ã¨ãã¦ä½¿ç¨ãã¦ãããã®ã rubygems.org / github.com ã«ä¸ãã¾ããã https://rubygems.org/gems/shibaraku https://github.com/onk/shibaraku USAGE åºæ¬çãªä½¿ãæ¹ start_at, end_at ã®ããã¢ãã«ãç¨æãã¾ãã create_table :campaigns do |t| t.datetime :start_at t.datetime :end_at end shibaraku 㨠1 è¡æ¸ã㨠class Campaign < ActiveRe
ããã¶ãåã®ãã¨ã ããWebã¢ããªã±ã¼ã·ã§ã³éçºãã¬ã¼ã ã¯ã¼ã¯ãRuby on Railsãã00年代å¾åã«ãã¼ã ãå·»ãèµ·ãããã¨ããå¼·ã主張ãæã¤ã½ããã¦ã§ã¢ã¨ãã¦Railsã¯å¤ãã®è°è«ãå¼ã³èµ·ãããããã®ä¸ã§ãæ大ã®ãã®ã¯ããã°ã©ãã®çç£æ§ã«é¢ãããã®ãå½æããã§ã«ããã¤ãåå¨ãã¦ããJavaãã¼ã¹ã®Webã¢ããªã±ã¼ã·ã§ã³éçºãã¬ã¼ã ã¯ã¼ã¯ã«æ¯ã¹ã¦ãRuby on Railsã¯10åã®çç£æ§ãéæã§ããã¨ãã主張ã ã Rubyã®çç£æ§ã¯Javaã®10åââããã®ä¸»å¼µãå¤ãã®ã¨ã³ã¸ãã¢ã®ç´ç·ããããã¯éé±ã«è§¦ãããããããã«10åã¯å¤§ããã ããããããç¾å®ã«è¨å®ãã¡ã¤ã«ãã³ã¼ããæ¸ãè¡æ°ãåçã«æ¸ãã®ã ããããã®ãããå½ç¶ã ãã¨æè¦ãåãããã®ã ã 2005å¹´ã®ãªãªã¼ã¹ããç´10å¹´ãRailsã®çã¿ã®è¦ªã§ãä»ãããã¸ã§ã¯ãããªã¼ããããã¤ãããã»ãã¤ããã¤ã¤ã¼ã»ãã³ã½ã³æ°ã¯å½æãæ¯ãè¿ã
ã¯ããã« ãã®ã³ã©ã ã¯ã 2014å¹´12æ5æ¥ããå§ã¾ã£ããRails4æè¡è èªå®ã·ã«ãã¼è©¦é¨ãã®æ¨å¥¨ææã¨ãªã£ããRuby on Railsã¬ã¤ããã«æ²¿ã£ã¦ãRubyåå¿è ã®çè ããªã¢ã«ã¿ã¤ã ã§åå¼·ããã¦ããã³ã©ã ã§ããå ¨12åãäºå®ãã¦ãã¾ããåå¼·ããä¸ã§ã¤ã¾ãããç¹ããã®åé¿æ³ãä»ã®ããã°ã©ãã³ã°è¨èªãè·æ¥çµé¨ã«åºã¥ããã¢ããã¤ã¹ãªã©ãç´¹ä»ããäºå®ã§ããRubyãRailsã«èå³ã®ããæ¹ã¯ããã²ä¸ç·ã«åå¼·ãã¦ã¿ã¾ãããã ä»ååç §ããã¬ã¤ãã¯ãã¡ãã§ãã ã¯ããã«Railsãã¯ãããã ããã§ã¯æ©éãã¥ã¼ããªã¢ã«ãéå§ãã¾ãããã ã¯ã©ã¦ãä¸ã«éçºç°å¢ãæ§ç¯ ä½ã¯ã¨ããããã¾ãã¯éçºç°å¢ãæããªãã¨ããã¾ãããããä»åã®ãã¥ã¼ããªã¢ã«ã§ä¸çªæéãããã£ãã®ããå®ã¯ããã§ãï¼ç¬ï¼ãã¬ã¤ãã«ã¯å¿ è¦ãªãã®ãããã£ã¨æ¸ãã¦ããã ãã§ãããå ·ä½çãªæé ãææ¡ããããã«ãä½åº¦ãä½åº¦ãGoogle
ããªãè¦è½ã¨ãã¦ããcore_ext ã辺ããããã¤ãã Range#overlaps? ç¯å²ãéãªã£ã¦ãããã (001): >> (1..3).overlaps?(0..1) => true (002): >> (1..3).overlaps?(1..3) => true (003): >> (1..3).overlaps?(3..4) => true (004): >> (1..3).overlaps?(4..5) => false String#exclude?, Enumerable#exclude? include? ã®éã (001): >> [1, 2, 3].exclude?(4) => true (002): >> [1, 2, 3].exclude?(3) => false String#squish, String#squish! ãã¯ã¤ãã¹ãã¼ã¹ãå§ç¸®ãããã¤ã
追è¨ï¼ç¶ç·¨ã§ã â Ruby on Rails ã¢ããã°ã¬ã¼ã 4.1 â 4.2ãRuby on Rails Advent Calendar 2015ã ãã㯠Ruby on Rails Advent Calendar 2014 ã®12æ¥ç®ã®è¨äºã§ãã æ¨æ¥ã¯ takeyuweb ããã® Active Job meets Amazon SQS ã§ããã ããã«ã¡ã¯ãkomiyak ã§ãã ããã¯ãRuby on Rails Advent Calendar ã®åå è¨äºã§ãã 12æã¨ããã° Advent Calendarï¼ æ®ãå°ãªã 2014 å¹´ã å¹´è¶ãã«åãã¦ã©ã¹ãã¹ãã¼ããããã¦ã 大æ¦æ¥ã¯ãã¬ã使ã§ãè¦ãªããããã£ãã天ã·ãè麦ãããããããã®ã§ããã ãã¦ãçæ§ããã®ææã«ãã£ã¦ãã¾ããããã¨ã¨ããã°ã ç©ããã«ç©ãã£ãï¼å¹´ã®æ±ããè½ã¨ãã大æé¤ã§ã¯ãªãã§ããããã å®ã¯ãã
Ruby Advent Calendar 11æ¥ç® Ruby - Railséçºã§æç¨ãªä¾¿å©Gemä¸è¦§ï¼2013å¹´ç - Qiita âå»å¹´ã®AdventCalendarã§æ¸ããä¸è¨ã®è¨äºã®2014å¹´çã§ãã ã ãã ãæ¯å¹´æä¾çã«ãªã£ã¦æ¥ã¾ããã æè¿ã¯ããã¡ã¯ãã¹ã¿ã³ãã¼ããã»ã¼åºã¾ã£ã¦ãã¦ãããªãæ¯å使ãGemã®ãªã¹ããåºå®åãã¦æ¥ã¾ããã â»2014/12/11æç¹ DBã¢ããã¿ sqlite3 pg mysql2 ãã®è¾ºãã¯ããå¤ãããªãã§ããã RubyãRailsã®ãã¼ã¸ã§ã³ãä¸ãã£ã¦ãç¶ç¶çã«éçºãç¶ãããã¦ããã®ã¯ç´ æ´ãããã¨æãã¾ãã ãã°ã¤ã³èªè¨¼ omniauth omniauth-twitter omniauth-facebook omniauth-github omniauth-identity (omniauth-githubã®ãªãã¸ããªã®URLãå¤ãã£ã¦ã¾ããã
11æ4æ¥ã«å ¥ç¤¾ãã¾ããã¨ã³ã¸ãã¢ã®è¶å·ã§ãã æ¬æ¥ã¯ãç§ãã³ã¼ããæ¸ãéã«æ°ãã¤ãã¦ãããã¨ãæ¸ããã¨æã£ãã®ã§ãããã©ãæ¸ããã«è¿·ã£ãæ«ãããã°è¨äºé§åããã«ã½ã³ãè¡ããã¨ã§ãã®ããã»ã¹ã§èããããã¨ãªã©ãè¨äºã«ãããã¨ã«ãã¾ããã ç§ã¯ã³ã¼ããæ¸ãéã«ããã¦ãªãã®å¿ã大äºã ã¨æã£ã¦ãã¾ããããã¦ãªãã®å¿ã¯æçµçãªã¢ã¦ããããã«è§¦ããã¦ã¼ã¶ã¼ã¯ãã¡ããã®ãã¨ããã¼ã ã¡ã³ãã¼ãæªæ¥ã®èªèº«ã¸åããæãããã§ãã ä»åé¡æã¨ããã®ã¯ãKPTãã¼ã«ã§ããKPTã¯ãæ¥ã ã®æ´»åãæ¯ãè¿ããKeepããã¹ããã¨ãProblemãã§ãããã¨ãTryãããããã¨ãä¸ãã¦ãæ´»åãæ¯ãè¿ãããã«ä½¿ããã¾ãã å æ¥è¡ãããããªã¬ãã¡ãç®æãâæå¼·ã®ã¨ã³ã¸ãã¢ããªãã³âããçµããå¾ã«æ¯ãè¿ãã§KPT使ã£ãã®ã§ããããWebã¢ããªã«ãã¦ã¿ã¾ãã ä»åã®ã³ã¼ãã¯ãã¹ã¦ãppworks/furikaeri/tree/
ã¿ã¤ãã«é·ãããã¾ã¬ãPHPerã¨ãã¦ç´10å¹´è¿ããRubyèªä½ã¯æ¡ä»¶ã«ãã£ã¦ã¡ããã£ã¨ã ã触ã£ããã¨ãããç¨åº¦ãRailsèªä½ãæ¬æ ¼çã«ãããã®ã¯ä»åãåãã¦ãPHPã ã¨CakePHPãä¸å¿ã«Zendï¼Symfonyãªã©ããã¤ãããããªåãä»åãRails4ããã¥ã¼ããã¦ãWebAPIãä½ããRSpecã§ãã¹ãé§åéçºé¢¨å³ã§ãGitHubãã«ãªã¯ãã¼ã¹ã®ãCircleCIçµç±ãããã¤ãããã¾ã§ã®éçºã®æµããã²ã¨éããã£ã¦ã¿ã¦ãåãã£ããã¨ãããã¤ããã£ãã®ã§ããããã¾ã¨ãã¦ã¿ããéå»ã®èªåã®ããã«ã 注æç¹ã¨ãã¦ã¯ãä»åä½ã£ãã®ã¯Webãµã¼ãã¹ã§ã¯ãªããã¹ããã²ã¼ã ï¼ãã¤ãã£ãï¼ã®ãµã¼ããµã¤ãWebAPIã¨ããç¹ããªã®ã§ãããããViewã«é¢ããé¨åã¯ããã¾ãåºã¦ããªãã§ãããã¾ã¬ã ããã¨ãã²ã¨éãã®æµãããã¥ã¼ããªã¢ã«çã«è§£èª¬ãããããªè¨äºã§ã¯ãªããèºãããã¤ã³ãã ã£ãããå½æåãã
Deleted articles cannot be recovered. Draft of this article would be also deleted. Are you sure you want to delete this article? 誰ãèªãã§ããªãããã°ããã®è»¢è¼ æè¿MVCãã©ãã¨ãã¨ããå 容ã話é¡ã«ãªã£ã¦ãã¾ãããã¡ãã£ã¨ä¹ã£ãã£ãå 容ã§ãã Railsã§åå¿è ã«ããè¦ãããè¯ããªãã³ã¼ãã¯ãã³ã³ããã¼ã©ã¼ã§ããããã®å¦çãå®è£ ãã¦ã³ã³ããã¼ã©ã¼ã®ä¸ã¤ã®ã¢ã¯ã·ã§ã³ã30è¡ã40è¡ã«ãªã£ã¦ãã¾ããã¨ã§ããããã«å¯¾ãã¦ãã¢ãã«ã«é©åã«å¦çã移ãã®ãè¯ããã ã¨ãããã¨ãè¨ããã§ãããâé©åã«âã£ã¦ä½ï¼ããã¼ãã³ã³ããã¼ã©ã¼ã«ã¯ä½ãæ¸ãã®ãããã®ï¼ã£ã¦ãã質åã¸ã®åãªãã®åçã§ãã è¯ãã¡ã½ããã¨ã¯ï¼ ç´æ¥åçããåã«ãã¾ãã¯åæã®å ±æãããããã°ã©ã ã«ããã¦è¯ãã¡ã½
Rails 4.0ããActiveRecordã«strict_modeãå°å ¥ãããããã©ã«ãã§ã¯æ¥ç¶æã«sql_mode = STRICT_ALL_TABLESãã»ããããããã«ãªãã¾ããã ããã¯ãæ¢ã«éç¨ããã¦ããDBã«æ¥ç¶ããçãªãããã®çç±ã§MySQLå´ã§é©åãªè¨å®ãè¡ãã¦ããªãå ´åæç¨ãªåä½ã§ãããããã§ãªãå ´åããµã¼ãã¼å´ã®è¨å®ãéã¿ãã«ã¯ã©ã¤ã¢ã³ãå´ãè¨å®ãä¸æ¸ãããã¹ãã§ã¯ãªãã§ãããã ãã®ãããdatabase.ymlã§strict: falseã¨è¨å®ãããã¨ã§ãã®åä½ãç¡å¹ã«ãããã¨ãã§ãã¾ããããRails 4.2.0ã§ã¯ãã®åä½ãå¤æ´ãããstrict: falseã®ã¨ãã¯strictã§ãªãç¶æ ã«ããããsql_mode = ''ãã»ããããããã«ãªãã¾ããã MySQLã®ããã©ã«ãã®sql_modeã«ä¾åãã¦æ¢ã«éã£ã¦ããã¯ãã®ãã¹ããéããªãã£ãããããã¨ãã
railstutorialã¯Ruby on Railsã¨ããã¡ã¯ãã¹ã¿ã³ãã¼ããªGemã使ã£ã¦Twitter風ã¢ããªã±ã¼ã·ã§ã³ãä½ãã¨ãããã¨ãé¡æã«ãå®éã®ä»äºã®éçºã§ãè¡ãGitHub Flowãæ¯ãèãé§åéçºãããªãããWebã¢ããªã±ã¼ã·ã§ã³éçºãå¦ã¶ãã¥ã¼ããªã¢ã«ã Ruby on Rails ãã¥ã¼ããªã¢ã«ï¼å®ä¾ã使ã£ã¦ Rails ãå¦ã¼ã é·ãã£ãã¼ãä¸é±é以ä¸ããã£ããæ¬æä¸ã«ãæ¸ãã¦ãã£ãããé£ã°ãèªã¿ã§ããªããã¨ã¦ãæ¿åãªãã¥ã¼ããªã¢ã«ãªã®ã§ã1æ¥1ç« ãã¼ã¹ãä¼ã¿ã®æ¥ã«8,9,10ç« ãä¸æ°ã«ãã£ãã大å¤éãã¦10ç« ã¯ãã¾ãé ã«å ¥ã£ã¦ããªãã£ããä¸ãã¹ã¨å¼ã°ãã¦ããæ¼ç¿ã¯å ¨ã¦é£ã°ããã åå¼·ã«ãªã£ãç¹ãçåç¹ãããã£ãç¹ãã¡ã¢ããªãããã£ã¦ã¿ãã ã¡ã¢ http://yuheikagaya.hatenablog.jp/entry/2014/10/15/005554 ht
2014-10-09 Railsã§ãã使ã便å©ãªGemã¾ã¨ã Ruby Ruby On Rails Railsã§ãã使ã便å©ãªGem ä¸ã¤ä¸ã¤ã¯ç´°ãã説æãã¾ãããããã使ã£ã¦ã便å©ç³»Gemãã¤ãã¤ã㨠awesome_print consoleã®åºåã綺éºã«ãã¦ããã ãããã¯æã«ããæãï¼ awesome_printç¡ã awesome_printæã paranoia è«çåé¤ã®æå©ãããã¦ããã uniqããªãã¼ã·ã§ã³ã§ãè«çåé¤ããããã®ã対象ã«å«ããããªããªããããå ¥ãã¨ãã¨ãã paranoia_uniqueness_validator rails_config å®æ°ã管çããGem ç°å¢ãã¨ã«èªã¿è¾¼ãå®æ°ãå¤æ´ã§ããã®ã§ä¾¿å© 使ãæ¹ã¨ãã¯ãã¡ãã«ã¾ã¨ã¾ã£ã¦ã¾ã Ruby - Railsã§å®æ°ãç°å¢ãã¨ã«ç®¡çããrails_config - Qiita Ruby - R
ã¯ã¦ãªã°ã«ã¼ãã®çµäºæ¥ã2020å¹´1æ31æ¥(é)ã«æ±ºå®ãã¾ãã 以ä¸ã®ã¨ã³ããªã®éããä»å¹´æ«ãç®å¦ã«ã¯ã¦ãªã°ã«ã¼ããçµäºäºå®ã§ããæ¨ããç¥ãããã¦ããã¾ããã 2019å¹´æ«ãç®å¦ã«ãã¯ã¦ãªã°ã«ã¼ãã®æä¾ãçµäºããäºå®ã§ã - ã¯ã¦ãªã°ã«ã¼ãæ¥è¨ ãã®ãã³ãæ£å¼ã«çµäºæ¥ã決å®ãããã¾ããã®ã§ã以ä¸ã®éãã確èªãã ããã çµäºæ¥: 2020å¹´1æ31æ¥(é) ã¨ã¯ã¹ãã¼ãå¸æç³è«æé:2020å¹´1æ31æ¥(é) çµäºæ¥ä»¥éã¯ãã¯ã¦ãªã°ã«ã¼ãã®é²è¦§ããã³æ稿ã¯è¡ãã¾ãããæ¥è¨ã®ã¨ã¯ã¹ãã¼ããå¿ è¦ãªæ¹ã¯ä»¥ä¸ã®è¨äºã«ãããã£ã¦æç¶ãããã¦ãã ããã ã¯ã¦ãªã°ã«ã¼ãã«æ稿ãããæ¥è¨ãã¼ã¿ã®ã¨ã¯ã¹ãã¼ãã«ã¤ã㦠- ã¯ã¦ãªã°ã«ã¼ãæ¥è¨ ãå©ç¨ã®ã¿ãªãã¾ã«ã¯ãè¿·æãããããããã¾ãããã©ãããããããé¡ããããã¾ãã 2020-06-25 è¿½è¨ ã¯ã¦ãªã°ã«ã¼ãæ¥è¨ã®ã¨ã¯ã¹ãã¼ããã¼ã¿ã¯2020å¹´2æ28
ããããRailsãµã¼ãã¹ãå ¬éãããæ¹ã«åãã¦ãå人ã使ãã®ã«æé©ãªã³ã¹ãããã©ã¼ãã³ã¹ã«åªããã¯ã©ã¦ã/PaaS/VPSãç´¹ä»ãã¦ããã¾ãã å¤æ´æ¥æ´(06/13 13:05) Paasã«OpenShift Onlineã追å ã ð½ ã¯ã©ã¦ãã¯ã©ã¦ããµã¼ãã¯ãã¢ã¯ã»ã¹ãå¢å ããå¤ã ããµã¼ãã®è½åãå¢å¼·ããã¦æ·±å¤ãæã¯æä½éã®ã¹ããã¯ã«ããã¨ãã£ã使ãæ¹ã容æã«ã§ãããµã¼ãã§ããåé¢ãã»ããã¢ããã¯èªåã§è¡ãå¿ è¦ããããä¸æã«ä½¿ãã«ã¯ãããªãã®ãã¦ãã¦ãå¿ è¦ãç¾æç¹ã§ã¯ãAWS(Amazon Web Services)ãå§åçNo1ãªãµã¼ãã¹ã§ãã ãµã¼ãã¹ã®ç´¹ä»AWS(Amazon Web Services) ãã¤ã¯ãã¤ã³ã¹ã¿ã³ã¹(ã¡ã¢ãª613MB, æ750æéã¾ã§)ã¯1å¹´éç¡æ æ±äº¬ãªã¼ã¸ã§ã³ãªãéä¿¡ã§ã®é 延ã¯ã»ã¨ãã©ãªã ã¹ã±ã¼ã«ã¢ããã容æãå種ãµã¼ãã¹(Amazon RDB
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}