We are creating an app with CRUD function as an exercise using rails.
As a simple explanation, the CRUD function is implemented without using scaffold.
Therefore, the following errors are displayed and clogged.
I would be pleased if you could find someone who knows.
In addition, we will add if there is insufficient information.
Applicable source code
NameError: undefined local variable or method `params' for UsersController: Class
# frozen_string_literal: true class UsersController
Supplemental information (FW/tool version etc.)
# frozen_string_literal: true class ListsController
ruby -v 2.6.4
rails -v 5.2.3
Answer # 1
It must be written in the method, not directly under the class.
- ruby on rails - i get an error in a program that changes over time
- ruby on rails - i get an error without being created
- ruby on rails - syntax error cannot be resolved
- ruby on rails - i want to download a file with rails, s3 and carrierwave, but i get an error
- ruby on rails uninitialized constant error
- ruby on rails 6 - i want to solve the error that occurred while implementing the product listing function
- ruby - an error occurs when building a rails 6 environment with docker
- ruby on rails - when i run rails, i get an error related to webpacker
- error in building environment of ruby on rails
- ruby on rails 6 - [error] uninitialized constant user (call'userconnection' to establish a connection) :: image
- ruby on rails - error when implementing rails6 follow function
- ruby on rails - rails routing error
- ruby on rails - rspec validation error
- ruby on rails 6 - when i press new user registration, i get an error of no route matches [get] "/ users"
- solution for ruby on rails routes error
- ruby on rails - rails error (logged out users see links that are no longer valid)
- ruby on rails 6 - about rails error "wrong number of arguments (given 1, expected 0)"
- ruby on rails - nomethoderror in itemscontroller # new error
- ruby on rails 5 - i want to get an error message when i enter the user id in full-width in url
- ruby on rails - pg :: datatypemismatch error when doing heroku run rails db: migrate
- html - i want to allow users to use points
- ruby - i can't get the value from the array i earned with news-api
- ruby - items duplicated by cocoon are caught in forbid_login_user and are not saved
- ruby - about implementation of tag function in rails
- ruby - i want to display only the image of the logged-in user when executing the search function
- ruby - [rails] i can't install the add favorite button
- how to unlock excel with password with ruby
- ruby - i want to display an error message when posting/editing fails by validation check
- ruby - [rails] when rails s is executed, an error "cannot load database configuration" appears and it is forcibly term
- ruby - about the error when there is no id of the association destination