Replies: 1 comment
-
I proposed a similar way of doing this at #1293 that requires you to write less code: https://gist.github.com/bradgessler/cd91d5f2e333b99eed2fc0c3f76d827b Currently it doesn't support namespaces, but if you had a class named If you add namespace support share the gist back here. As an aside, I'm tempted to write a gem that more aggressively integrates with Rails. |
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
-
Hi
I'm considering introducing the following "pattern?" to my project where I use Rails view helpers as shorthand methods for common component uses.
Here is my helper:
And then use it like this:
= link_to a_glyph_back(:dashboard), root_path
Thanks in advance 👍
Beta Was this translation helpful? Give feedback.
All reactions