tapitapi’s blog

1日1杯タピオカ!エンジニア

2020-02-25から1日間の記事一覧

【Ruby on Rails: callback】before_action vs prepend_before_action

前提として、下記のアクション(カタカナ)はindexなど、コントローラのアクション *prepend_before_action before_actionの前に実行 *before_action アクションの前に実行 *append_before_action before_actionの後に実行 *prepend_around_action aroun…

似てる単語の使い分け【お料理編】

お料理に使う単語の使い分け! 1. a cook(料理人)/ a cooker(料理道具) My wife is a good cook. The cooker has broken. I need to buy a new one. 2. a recipe(レシピ)/ a dish(料理) I will write that recipe below. Macaroni cheese is my favorite dis…