In Ruby on Rails, why
= render :json => array_data
shows nothing (as seen in Firebug, the GET in the console), but
- response.content_type = "application/json" = render :text => array_data.to_json
shows the data array?
In Ruby on Rails, why
= render :json => array_data
shows nothing (as seen in Firebug, the GET in the console), but
- response.content_type = "application/json" = render :text => array_data.to_json
shows the data array?