なるようになるブログ

読書感想文かrailsについてかrubyについてか

rails commit log流し読み(2022/01/09)

2022/01/09分のコミットです。

CHANGELOGへの追加はありませんでした。


fix ApplicationController path on Action View guides

rails guideのAction View Overviewの修正です。

古いcontroller名(app/controllers/application.rb)を使用している箇所が残っていたのを修正しています


Remove assert_not_called Object#=~ here for Ruby 3.2 compat

activerecord/test/cases/relation/mutation_test.rbの修正です。

Object#=~が呼ばれない事をチェックしているassertionを削除しています。Ruby 3.2でObject#=~が削除されており、assertionがあるとRuby 3.2でエラーになってしまう為。


Documentation Working with Javascript Fix remote: true (#44123)

rails guideのWorking with JavaScript in Railsの修正です。

Ajax requestについて説明している箇所のexampleコードで、formの送信がAjaxにならないコードになっていたのを修正しています。


Fix example related to comparison in Active Record Validations guide

rails guideのActive Record Validationsの修正です。

comparison validationのexampleコードが、start_dateend_date大きい事、というvalidationをしていたのを、逆に修正しています。