Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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`.