Skip to content

Instantly share code, notes, and snippets.

View yutokyokutyo's full-sized avatar
:octocat:
done! more and more!

Yuto Kondo yutokyokutyo

:octocat:
done! more and more!
View GitHub Profile
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Ansi 0 Color</key>
<dict>
<key>Blue Component</key>
<real>0.20179691910743713</real>
<key>Green Component</key>
<real>0.1818026602268219</real>
@seak0503
seak0503 / rails_build_method.md
Last active May 19, 2024 03:05
Railsモデルの関連付けでbuildを使う時のメソッド名

Railsモデルの関連付けで、buildを使うときのメソッド名

モデル間の関連付けの際に、データを保存したくない場合はbuildを使うが、 関連付けのパターンによって、メソッド名が変わるので、メモをしておく

1 対 1 の場合

モデル定義

@dhh
dhh / Gemfile
Created June 24, 2020 22:23
HEY's Gemfile
ruby '2.7.1'
gem 'rails', github: 'rails/rails'
gem 'tzinfo-data', '>= 1.2016.7' # Don't rely on OSX/Linux timezone data
# Action Text
gem 'actiontext', github: 'basecamp/actiontext', ref: 'okra'
gem 'okra', github: 'basecamp/okra'
# Drivers