Sign in through GitHub

RailsCasts Pro episodes are now free!

Learn more or hide this

ncherro's Profile

GitHub User: ncherro

Comments by ncherro


I renamed my :allow and :allow_params matchers to :permit and :permit_params to get past this error.

Here's my spec/support/matchers.rb file.

And my specs look like this (should permit(... instead of should allow(...)

it "allows anything" do
  should permit(:any, :thing)
  should permit_param(:any, :thing)