Save 36% for Black Friday! Learn more



120 Experience
1 Lesson Completed
0 Questions Solved


Posted in Tailwind - own components - yes or no?

Bruno, have you had a chance to look at ViewComponent? Might be useful to pair with tailwind classes (and possibly extract @apply utilities) if you don’t want to start using Vue/React/etc.

I think I have this working properly, but I have had a few random errors occasionally. I think what fixed it is setting the domain to the proper value. Otherwise, each subdomain has its own cooke.

Rails.application.config.session_store :cookie_store, key: "app-name_session", domain: “.thedomain.tld", expire_after: 1.week
logo Created with Sketch.

Screencast tutorials to help you learn Ruby on Rails, Javascript, Hotwire, Turbo, Stimulus.js, PostgreSQL, MySQL, Ubuntu, and more. Icons by Icons8

© 2022 GoRails, LLC. All rights reserved.