RailsCasts Pro episodes are now free!

Learn more or hide this

ncherro's Profile

GitHub User: ncherro

Comments by ncherro

Avatar

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(...)

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