removed the CSRF check as the PUT APIs were failing. TODO : analyse security risks
after adding sunspot search, an exceptions was being thrown : method maximum not defined for for #<Sunspot::Search::PaginatedCollection:. Fix for that