view_components icon indicating copy to clipboard operation
view_components copied to clipboard

Document the need to `include Primer::ViewHelper` in order to use the helpers

Open kjg opened this issue 3 years ago • 1 comments

The Octicon docs mention possible use of the primer_octicon helper and the PrimerOcticon cop corrects all usage of the octicon helper to be primer_octicon instead, but the docs don't make it clear how to get the primer_octicon helper to work.

It appears that one must either have include Primer::ViewHelper in their ApplicationHelper or helper Primer::ViewHelper in their ApplicationController (or any other more specific controller). I'd suggest the Getting Started page is updated to include this info as part of the Installation

kjg avatar Aug 16 '22 13:08 kjg

👋🏻 Hi @kjg, thanks for reporting this! We would welcome a PR to the docs; I believe this is the file to edit. Let us know if we can help!

lesliecdubs avatar Aug 23 '22 00:08 lesliecdubs

Hi! This issue has been marked as stale because it has been open with no activity for 180 days. You can comment on the issue or remove the stale label to keep it open. If you do nothing, this issue will be closed in 7 days.

github-actions[bot] avatar Feb 19 '23 01:02 github-actions[bot]