I'm building a Rails app and I'm using Devise for authentication. When the user is logged in I need to make an AJAX call to Rails and get data that belongs to the current user as JSON. Also I don't want unauthenticated users and other logged-in users to access the current user's resources.I'm building a Rails app and I'm using Devise f