私は以下のjsonオブジェクトの配列を持っています。jsonオブジェクトのフィルタ配列
[{"template":{"title":"title 1"}},{"template":{"title":"title 1"}},{"template":{"title":"title1111"}},{"template":{"title":""}},{"template":{"title":""}},{"template":{"title":"this is the title"}},{"template":{"title":"title232"}},{"template":{"title":"title with msg"}},{"template":{"title":"title with msg"}},{"template":{"title":"title with msg"}},{"template":{"title":"title with msg"}},{"template":{"title":"title with msg"}},{"template":{"title":"title with msg"}},{"template":{"title":"title with msg"}},{"template":{"title":"title with msg"}},{"template":{"title":"title with msg"}},{"template":{"title":"title with msg"}},{"template":{"title":"title with msg"}},{"template":{"title":"this is a title"}},{"template":{"title":"this is a title"}},{"template":{"title":"this is a title"}},{"template":{"title":"some title"}},{"template":{"title":"some title"}},{"template":{"title":"some title"}},{"template":{"title":"some title"}}]
私は、この配列は非常に基本的に私はjsの応答内のテンプレートのプロパティをしたくない
[{'title': 'some title'}, {'title': 'some other title'}, ...]
のようになりたいです。 私は
@templates = Template.find_all_by_user_id(current_user.id, :select=>'title', :conditions=>"title is not null")
@templates.to_json
が私にJSONのこの配列
任意の提案オブジェクトを与えるものである以下のレールコードからこれを取得していますか?