Skip to content

Guard against unpermitted params in Rails #2

@bootcoder

Description

@bootcoder

ep params renders the following on unpermitted params.

⬇ ⬇ ⬇ ⬇ ⬇  CLASS: ActionController::Parameters CALLER: controllers/gifts_controller.rb:27 ⬇ ⬇ ⬇ ⬇ ⬇
Completed 401 Unauthorized in 258ms (ActiveRecord: 3.0ms)



ActionController::UnfilteredParameters - unable to convert unpermitted parameters to hash:
  app/controllers/gifts_controller.rb:27:in `redeem'
  lib/cloud_flare_middleware.rb:20:in `call'

Started POST "/__better_errors/5907fc6f4c2b03db/variables" for 127.0.0.1 at 2019-06-05 15:23:49 -0700

Acceptance Criteria:

  • Update gem
  • Insert ep params into a Rails controller flow
  • Pass non permitted params
  • Observe valid extra print output of params
  • Observe Red line informing params are unpermitted

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions