0
我正在使用Rails 4,ruby 2和jbuilder gem来响应json。如何在同一页面上使用jbuilder创建部分和变量gem
我index.json.jbuilder
在下面的代码写入
json.partial! "apis/contents", comments: @comments
json.name @name
返回以下错误文件: -
no implicit conversion of String into Integer
我想要应用程序结束'json.name @ name'到部分的响应中。我怎么做 ? – 2014-12-19 12:48:37
这似乎没有解决问题。还有其他建议吗? – 2015-01-03 06:30:34