Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/boardfish/view_component-tag-bug
Replicates a bug experienced with the `tag` helper in ViewComponent
https://github.com/boardfish/view_component-tag-bug
Last synced: about 1 month ago
JSON representation
Replicates a bug experienced with the `tag` helper in ViewComponent
- Host: GitHub
- URL: https://github.com/boardfish/view_component-tag-bug
- Owner: boardfish
- Created: 2021-10-05T09:33:45.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2021-10-05T09:36:55.000Z (about 3 years ago)
- Last Synced: 2024-10-22T08:29:01.898Z (2 months ago)
- Language: Ruby
- Size: 23.4 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
This app replicates a bug I experienced in ViewComponent.
In `app/components/field_component.rb`, using the `tag` helper does not
return a closed tag. However, using the `content_tag` helper does. The
former is generally recommended over the latter by RuboCop.### Running
This is a minimal Rails app, so make sure you have a recent (2.7+) Ruby
installed with `bundler`. Use `bundle install` to install the
dependencies, then run `rails s` to bring the app live on
`localhost:3000`.