Changing view component directory? #1341
Unanswered
gjtorikian
asked this question in
Q&A
Replies: 1 comment 2 replies
-
Hi @gjtorikan! I like this as a suggestion. It's not currently possible to have the templates and corresponding Ruby classes in separate locations in ViewComponent, as far as I'm aware — the closest thing would be to set the Since components are the sum of their template, Ruby class, and associated assets, they're all colocated in |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This is a great project, thank you for open sourcing it.
I was wondering if it was possible to define the HTML for the component in the views folder, rather than app/views? I didn't see a way to configure this in the documentation. I like having all my "view stuff" in one place, and having it tucked alongside my Ruby code in app seems off to me.
Thanks for any help!
Beta Was this translation helpful? Give feedback.
All reactions