andrewtennison / onside-frontend

client facing webapp
http://www.onside.me
1 stars 0 forks source link

allow user to generate channel from null search #24

Closed andrewtennison closed 12 years ago

andrewtennison commented 12 years ago

If a user search returns articles but no channels prompt the user to create a channel

andrewtennison commented 12 years ago

we can add validation at a later date but

andrewtennison commented 12 years ago

most of the client side logic is in place. The issue I am having is on posting to api.onside.me/channel it is returning a generic error so cant debug. Thought this was due to my original hash, but used the following hash (full object) but this still returned an error.

        var hash2 = {
            "name":"athletics",
            "keywords":"athletics",
            "search_term":"athletics",
            "description":"athletics",
            "sport":"athletics",
            "type":"organisation",
            "hash":"","image":"","level":"","branding":"","geolat":"","geolng":"","status":"active"
        };