### Expected behaviour Expected to return the permitted params. ```ruby params.require(:post).permit([:title, :body]) # Result: {"title" => "My title", "body" => "My description"} ``` ### Actual behaviour Instead of the expected behaviour i got an empty hash. ```ruby params.require(:post).permit([:title, :body]) # Result: {} ``` ### Workarround Adding `*` before array it works. ```ruby params.require(:post).permit(*[:title, :body]) # Result: {"title" => "My title", "body" => "My description"} ``` ### System configuration - **Rails version**: rails 3.2.22.5 - **Ruby version**: ruby 1.9.3p551 - **strong_parameters version**: strong_parameters 0.2.3
Expected behaviour
Expected to return the permitted params.
Actual behaviour
Instead of the expected behaviour i got an empty hash.
Workarround
Adding
*before array it works.System configuration