method

permitted_params

Importance_0
v6.0.0 - Show latest stable - 0 notes - Class: Rails::Generators::ScaffoldControllerGenerator
permitted_params() private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File railties/lib/rails/generators/rails/scaffold_controller/scaffold_controller_generator.rb, line 38
        def permitted_params
          attachments, others = attributes_names.partition { |name| attachments?(name) }
          params = others.map { |name| ":#{name}" }
          params += attachments.map { |name| "#{name}: []" }
          params.join(", ")
        end
Register or log in to add new notes.