Я пытаюсь выполнить две вспомогательные функции в представлении вызова второго с возвращением первого.Я знаю, что следующие функции правильно возвращают нужный хэш:
%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.
Как мне вызвать метод с входным параметром в качестве возврата другого метода из представления?