I have followed the instructions from the book
http://web2py.com/book/default/chapter/09
But it is not working for me, please point out my errors!

#controller
@service.json
def search():
    query = db.search.title.contains(request.args(0), all=True)
    return db(query).select()

def call():
    return service()

#browser calls
.../app/controller/search/title = Works
.../app/controller/call/json/search/title = empty JSON array

I also tried changing json to xml, but it returns empty

Reply via email to