method

permitted_params

permitted_params()
private

No documentation available.

# File railties/lib/rails/generators/rails/scaffold_controller/scaffold_controller_generator.rb, line 43
        def permitted_params
          attachments, others = attributes_names.partition { |name| attachments?(name) }
          params = others.map { |name| ":#{name}" }
          params += attachments.map { |name| "#{name}: []" }
          params.join(", ")
        end