I'm using Rails 5 (not API) and Devise for authentication.
I have a custom action that needs to be triggered by ajax. For unauthenticated requests it works, but this particular request needs to be authenticated.
How do I do it?
I'm using Rails 5 (not API) and Devise for authentication.
I have a custom action that needs to be triggered by ajax. For unauthenticated requests it works, but this particular request needs to be authenticated.
How do I do it?