My Rails application is connected to the same MS SQL database in production and development.
In development (on my Mac) I am able to render the /clients/active.json view (via rabl).
However in production (behind Passenger/Apache) I receive this error:
Started GET "/clients/active.json"
Processing by ClientsController#active as JSON
Rendered clients/active.json.rabl (204.6ms)
Completed 500 Internal Server Error in 206.3ms
ActionView::Template::Error (source sequence is illegal/malformed utf-8):
1: collection @clients
2: extends 'clients/index'
app/views/clients/active.json.rabl:1:in `_app_views_clients_active_json_rabl__626601527_78036080'
The database is read only and out of my control. Is there a way to render the JSON in production like it works on my development machine?
Edit
I switched to Nginx and still encounter the same error.