Я пытаюсь выполнить две вспомогательные функции в окне вызова, второе с возвратом первого. Я знаю, что следующие функции должным образом возвращает нужный хеш:Несколько объектов JSON в потоке
%p = helper_method0 params[:some_string] #does a request on a third party site which responds with json data wich is then parsed by yajl and the hash is returned to view
Однако, когда я звоню следующее:
- hash = helper_method0 params[:some_string] #does a request on a third party site which responds with json data wich is then parsed by yajl and the hash is returned to view
%p= helper_method1 hash #Literally is just returning the input parameter
Я получаю следующее сообщение об ошибке
Found multiple JSON objects in the stream but no block or the on_parse_complete callback was assigned to handle them.
Как я называю метод с входным параметром в качестве возврата другого метода из представления?