我在我的 rubymine 控制台上完成了 rails c。
我想在 Rails 控制台中执行一个函数。
功能是
funtion_one(Api_payload , some_integer_Value)
API_payload 是:-
{
"data" : [
{
"from" : "today",
"to" : "next_day"
}
],
"some_ids" : [
9808
]
}
所以基本上我如何在rails控制台中编写它..?
pry(main)> function_one({ "date_ranges" : [ { "from" : "today", "to" : "next_day" } ], "some_ids" : [ 9808 ] } , 25)
写完上面的命令后,出现错误,即SyntaxError: unexpected tIDENTIFIER, Expecting end-of-input