diff --git a/README.md b/README.md index fbeca52..c21a3df 100644 --- a/README.md +++ b/README.md @@ -319,7 +319,7 @@ form elements to get the values: brand_id = params[:brand_id] country = params[:country] products = Product.where('brand = ? AND country = ? AND name LIKE ?', brand_id, country, "%#{term}%").order(:name).all - render :json => products.map { |product| {:id => product.id, :label => product.name, :value => product.name} } + render :json => products.map { |product| {:id => product.id, :label => product.name, :value => product.name} }, :root => false end end