I've registered my mime type and set up a custom parser:
Mime::Type.register "application/plist+xml", :plist
ActionController::Base.param_parsers[Mime::Type.lookup_by_extension
("plist")] = Proc.new { |data| Plist::parse_xml(data) }
Now how do I test this?
When I do this:
@request.env['RAW_POST_DATA'] = {:foo => bar}.to_plist
post :create, :format => 'plist'
My custom parser is not called.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---