DEV Community

arbarrington
arbarrington

Posted on

Representational State Transfer (REST)

Architectural style created by Roy Fielding

Image description

Image description

You can disable the wrap parameters feature in an individual controller:

class BirdsController < ApplicationController
  wrap_parameters format: []
end
Enter fullscreen mode Exit fullscreen mode

You can also disable it for all controllers if you like, by going into the config/initializers/wrap_parameters.rb file and updating it like so:


ActiveSupport.on_load(:action_controller) do
  wrap_parameters format: []
end
Enter fullscreen mode Exit fullscreen mode

Top comments (0)