Activity
It's still a work in progress, but let me upload it and share it for you. I know several other people have asked and I just never really felt it was ready enough to share, but then anyone can help fix bugs. :)
Posted in Condition if devise action view
<% if devise_controller? %>
Are you restarting nginx with `nginx restart` or `nginx reload`?
I've never dealt with near that many SSL certs so that's certainly a new problem to me. I did find this blog which talks about handling 1022 sites and SSL certs with server configs: https://jeremyfelt.com/2016/01/16/managing-ssl-certificates-and-https-configuration-at-scale/ Seems like it has a couple tips that might help.
Those files are from the new bootsnap gem. They're caching your application's require paths and things in a binary format so your app boots WAY faster. You don't need them stored in your git repo.
You can think of that approach as similar to binding your events in jQuery. I worked on a nice little wrapper for that which I need to release. And once I get a chance to check out this other approach, I'll let you know. Might be a better way to structure things.
You can do multiple components on a page by creating multiple Vue apps. You'd basically just mount your different Vue apps to the appropriate tag, if you find them on the page. You won't necessarily have them on every page, so you'll need to conditionally check to set them up.
This is what I do with the Vue-Turbolinks integration. You can see an example here that checks each turbolinks pageview for the components and then sets up the vue app. https://github.com/excid3/vue-turbolinks#running-vue-only-on-specific-pages
You'd just do the same thing basically.
I also noticed that Laravel seems to have an interesting way of doing things that is using the whole server sided rendered HTML as the main component. It seems like it might be a really useful way of doing an even nicer middle ground.
Thanks for sharing Neil!
Hahaha I noticed that too while editing. Forgot I was recording without power. :P
Posted in Hatch login Error
No problem! I just disabled it temporarily for you. You should be able to login without it. Let me know if that works!
You can also use .none? to check the opposite as well. 👍
Yes, you can definitely do that. Maybe I'd do that for different things like "admin" area components and so on.
Basically just one controller per feature. You should never do page specific JS or CSS because that means you can't move your features to different pages on your site later on which inevitably always happens.
Posted in Setup MacOS 10.13 High Sierra Discussion
You should never use sudo to install gems. If you get permission denied, you didn't get Ruby installed correctly and should go through those steps again.