Using strong_params beyond mass assignments
If you’ve been using Ruby on Rails for some time, you may instantly identify the issue with the following code snippet:
class AnyController < ApplicationController
def create
AnyModel.create!(params)
end
end
Yes, you’ve got it - it’s missing...
sinaptia.hashnode.dev2 min read