Developing a Rails API that retrieves JSON