Rails blog API for angular challenge