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?
Keep up to date with Rails on Twitter and This Week in Rails
Policies: Conduct, License, Maintenance, Security, Trademarks