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 |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Just wondering about this library’s raison d’etre? What did you find lacking in view_component gem so you decided to create phlex?
All reactions