Ruby on Rails Sunday, February 2, 2020

I put a search form in my layout where the search field is named "terms" but then I get an unpermitted parameters for 'term' Do I need to declare term as an attr_accessor and use the :user in strong params in my world controller because I'm searching the User model

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/8704a48b-9177-4a24-9b3b-c0073fa22168%40googlegroups.com.

No comments:

Post a Comment