you can make the index method to respond to both html and json. No need of extra function just add the index.json.rabl view and it will work.