Justin Mullis

Joined

130 Experience
1 Lesson Completed
0 Questions Solved

Activity

Posted in Auto-detect User Time Zones in Rails Discussion

Great video Chris, time zones can be extremely frustating to work with. I would caution against setting time zone in a before action across all controllers. I did something similar and ended up in a default scope sort of situation where it was helpful but then I had to selectively turn that off for a lot of requests.

Posted in Rails & Vue.js Trello Clone - Part 1 Discussion

Thank you Chris, I'll go with that approach.  It felt a little strange to have a dozen different components loading in that way but it definitely works!

Also, feel stupid but I can't figure out how to reply to your comment :)

Posted in Rails & Vue.js Trello Clone - Part 1 Discussion

Chris, loved this series as well as the other on getting started with VueJS, Rails, and Webpacker.  How would you go about setting up an app with more than one Vue component?  I'm looking to sort of merge a Rails API only application with its seperate VueJS frontend.  However the application is somewhat complicated and has a lot of VueJS components.  It seems strange to create a new Vue instance for each of them, linked to a particularly ided element on the DOM.  It seems like a single Vue component, with multiple children, would make more sense but then I don't know how to set that up and still allow Rails to handle the majority of view rendering.