Activity
I noticed that my Google Analytics Pageviews get counted twice on turbo navigations. This is because Google Analytics has something called "Enhanced measurement" which is on by default. With "enhanced measurement" the Goole analytics script triggers a page view each time the page loads or the browser history state is changed by the active site. Since turbo changes the browser history state, a pageview will be triggered automatically. So, you can either implement Google Analytics by calling a turbo event as Chris did above and disabling enhanced measurement, or you can just rely on enhanced measurement alone. Implementing both will count pageviews twice though. Just posting this in case someone has this problem in the future. It took me a long time before I could figure this out. Here are the google docs about Enhanced measurement: https://support.google.com/analytics/answer/9216061.
Posted in Setup MacOS 11 Big Sur Discussion
For anyone seeing this in the future. I had the same issue and got an error when trying to install rails because it was looking for ruby 2.6.3 which wasn't installed. Solved it my closing and reopening terminal. Might work if you run rbenv rehash
as well.
I saw Chris's episodes on autosaving draft records with draftsman, but the gem is a bit outdated now. It hasn't been updated in over 2 years and the highest supported version is rails 5.2. Has anyone implemented this feature in rails 6 specifically with ActionText? Looking for any recommendations or advice on how to implement this. Thanks in advance!