REST API backend for wikiflow in rails