Activity
I built a lovely Navbar in Tailwind CSS in my rails app following a tutorial by Adam Wathan which uses Vue.js for the javascript behavior on dropdowns.
I added Vue.js the way Chris suggests here, by mounting it in a div with data-behavior which wraps the entire app: https://gorails.com/episodes/vuejs-components-in-rails-views?autoplay=1
I also added the Turbolinks Adapter for the setup as he recommends.
It's all working as expected but the problem with loading everything after turbolinks:load is that the navbar pops off the page when you navigate to another page. How can I solve this? I tried initialising the Vue component after different events but everything just leads to all my vue components breaking and disappearing off the page.
Posted in Action mailer rails 6
I'm having the same problem in Rails 6.0.2. After generating a mailer UserMailer, running it in console results the following:
irb(main):001:0> UserMailer
Traceback (most recent call last):
1: from (irb):1
NameError (uninitialized constant UserMailer)
I've checked the file names and everything is named correction (user_mailer.rb and the class is UserMailer).
Oddly enough, running ApplicationMailer in the console is recognised.
irb(main):003:0> ApplicationMailer
=> ApplicationMailer
Has something changed since rails 5 where you can't run mailer actions from the console?