我有一个Ruby数组,如何在Rails 3.0中将其渲染为JSON视图?
我的控制器方法是
def autocomplete @question = Question.all end
ruby json ruby-on-rails
json ×1
ruby ×1
ruby-on-rails ×1