Skip to content

NameError: undefined local variable or method 'permitted_params' #2

Description

@oolongtea

Hello,

Let me know if opening an issue is an okay method for asking for help, or redirect me to the right place.

I tried to implement your permitted_params gem according to your blog post into my Rails app.

This screenshot (it's a Dropbox link) shows the error on the top, curl request on the bottom left, and config/initializers/permitted_params.rb on the bottom right.

Am I supposed to have some sort of include within my controller(s) to be able to use permitted_params?

Thanks in advance for any help.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions