Replies: 1 comment
-
Thanks for the question. We should definitely cover this in the docs. Phlex has a few big advantages over ViewComponent:
component Table, @articles, layout: :column do |t|
t.data("Title") { a _1.title, href: article_path(_1) }
t.data("Author", &:author)
t.data("Published", &:published_at)
end |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Just wondering about this library’s raison d’etre? What did you find lacking in view_component gem so you decided to create phlex?
Beta Was this translation helpful? Give feedback.
All reactions