Displaying 1 result from an estimated 1 matches for "mpac".
Did you mean:
mac
2013 Feb 01
0
Add a customer renderer but I get missing template
Hi,
I''m trying to include the support of Msgpack<https://github.com/msgpack/msgpack-ruby> in
Rails 3.2 but when I try to return a mpac response, I get an error
concerning a missing template.
My renderer:
Mime::Type.register ''application/x-mpac'', :mpac
ActionController::Renderers.add :mpac do |mpac, options|
self.content_type ||= Mime::MPAC
self.response_body = mpac.respond_to?(:to_msgpack) ? mpac.to_msgpa...