サクサク読めて、アプリ限定の機能も多数!
トップへ戻る
おうちレシピ
dev.to/coderberry
I often find myself spending a lot of time in the Rails console testing out code. As my examples get more complex, I often will create a temporary ruby file to write the script, then copy-paste into the console. Although this works ok, it is tedious and could be optimized. Rails runner (rails r) will allow you to run a ruby script within the context of the application environment. For example, if
このページを最初にブックマークしてみませんか?
『dev.to』の新着エントリーを見る
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く