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

Please improve documentation about matching tag based on slug when calling WithTag() #31

Open
zedee opened this issue Jun 21, 2019 · 1 comment

Comments

@zedee
Copy link

zedee commented Jun 21, 2019

Hi!

I've struggled a bit when I tried to find some articles I had tagged with multiple words. I've been figuring out for an hour an a half why if in database everything was set correctly, the related entities were empty. Finally I found that last parameter on scopeWithTag has a type parameter, where you can choose if you want the search based by slug or name. I was calling withTag using tag name but not slug, hence the empty results when I had a tag composed of multiple words (a phrase).

Could you please improve the documentation specifying tags can be matched by slug or name? It will save some time for other people.

@brunogaspar
Copy link
Member

Thanks for the feedback.

Will look into adding that information to the documentation :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants