Ruby array to JSON and Rails JSON rendering

I have a Ruby array, how can i render this as a JSON view in Rails 3.0?

My Controller method is

def autocomplete
     @question = Question.all
end
5
задан Mithun Sreedharan 23 November 2010 в 06:05
поделиться