Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7794777
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T22:52:27+00:00 2026-06-01T22:52:27+00:00

I have found several websites pointing to using the following code to add support

  • 0

I have found several websites pointing to using the following code to add support for custom parameter formats:

ActionController::Base.param_parsers[Mime::PLIST] = lambda do |body|
  str = StringIO.new(body)
  plist = CFPropertyList::List.new({:data => str.string})
  CFPropertyList.native_types(plist.value)
end

This one here is for the Apple plist format, which is what I am looking to do. However, using Rails 3.2.1, The dev server won’t start, saying that param_parsers is undefined. I cannot seam to find any documentation for it being deprecated or any alternative to use, just that it is indeed included in the 2.x documentation and not the 3.x documentation.

Is there any other way in Rails 3 to support custom parameter formats in POST and PUT requests?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T22:52:28+00:00Added an answer on June 1, 2026 at 10:52 pm

    The params parsing moved to a Rack middleware. It is now part of ActionDispatch.

    To register new parsers, you can either redeclare the use of the middleware like so:

    MyRailsApp::Application.config.middleware.delete "ActionDispatch::ParamsParser"
    MyRailsApp::Application.config.middleware.use(ActionDispatch::ParamsParser, {
      Mime::PLIST => lambda do |body|
        str = StringIO.new(body)
        plist = CFPropertyList::List.new({:data => str.string})
        CFPropertyList.native_types(plist.value)
      end
    })
    

    or you can change the constant containing the default parsers like so

    ActionDispatch::ParamsParser::DEFAULT_PARSERS[Mime::PLIST] = lambda do |body|
      str = StringIO.new(body)
      plist = CFPropertyList::List.new({:data => str.string})
      CFPropertyList.native_types(plist.value)
    end
    

    The first variant is probably the cleanest. But you need to be aware that the last one to replace the middleware declaration wins there.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have found several examples using datamapper and was able to get them to
I have been reading through several websites and even used NVIDA's code as a
I have found location on google map and get custom iframe code with marked
I'm developing a dynamic website using jQuery and I have found several jQuery plugins
I have found several other questions here on S.O. (and the web in general)
I have found several guides on how to get a 3D animation to flip
I have found several questions asking about template typedefs in C++0x, which are resolved
I've investigated several C# DLL's and have not found any that work especially well.
I have found the following command in AWK useful in Vim :'<,'>!awk '{ print
I have custom coded several enterprise applications for mid to large organizations to use

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.