Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add link_to_if and link_to_unless #1024

Open
paulcsmith opened this issue Mar 5, 2020 · 1 comment
Open

Add link_to_if and link_to_unless #1024

paulcsmith opened this issue Mar 5, 2020 · 1 comment
Labels
feature request A new requested feature / option

Comments

@paulcsmith
Copy link
Member

paulcsmith commented Mar 5, 2020

They would work mostly like Rails except it would not have a block version as it is more confusing than helpful (IMO)

link_to_if user.admin?, "Admin", to: Admin::Users::Index
link_to_unless user.admin?, "Admin", to: Admin::Users::Index
@paulcsmith
Copy link
Member Author

Actually I don't think this quite does what I wanted and it seems it is very rarely used in the wild. I'll leave this open, but it is not a priority

@jwoertink jwoertink added the feature request A new requested feature / option label Mar 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request A new requested feature / option
Projects
None yet
Development

No branches or pull requests

2 participants