2022-03-01から1日間の記事一覧
before_actionとは? before_actionを使うことでコントローラのアクションが実行される前に別のメソッドを実行できる。 before_action :hoge def index ... end def hoge ... endこのようなコードがあったとき、indexアクションが実行される前に先にhogeが実…
エラーの内容は以下のようなものだ /usr/local/bundle/gems/activesupport-5.2.6.2/lib/active_support/messages/metadata.rb:17:in `wrap': wrong number of arguments (given 2, expected 1) (ArgumentError) from /usr/local/bundle/gems/activesupport-5…