Currently, we are creating a simple scraping application using "selenium".
By entering a keyword in the form set up on the "index" page and clicking the button, the number of article characters of the top site displayed in the search results through Google is displayed on the "show" page.
However, when I enter a keyword and click the button, "Name Error in AffiliatesController # show" is displayed as the title suggests, and I haven't made any progress in the last few days.
By the way, the method of writing in the controller works, but even if I know that it is desirable to write the processing code in the model and rewrite it, it does not work ...
I will attach the error image and the code of the corresponding file below, so could you please teach me the solution ...
We apologize for the inconvenience, and thanks for your cooperation.
Corresponding source code↓ controller
class AffiliatesController
↓ model
class Affiliate
Other
If i have any other files or information you need, please let us know.
-
Answer # 1
Related articles
- ruby on rails - i want to resolve rails name error
- ruby on rails 6 - [error] nomethoderror in followscontroller # destroy undefined method `destroy'for nil: nilclass
- ruby on rails - [rails] i want to know how to resolve activerecord :: recordnotfound errors
- ruby - i get an error with the rails new command
- ruby on rails 6 - [error] uninitialized constant user (call'userconnection' to establish a connection) :: image
- ruby on rails - i want to download a file with rails, s3 and carrierwave, but i get an error
- ruby - unable to access server with rails s
- ruby - when i try to update rails, i get a routing error
- ruby on rails - test code causes error when product information input is successful
- ruby - migrations are pending in rails s to resolve this issue, run: rails db: migrate rails_env = development
- ruby on rails - i want to put what i posted on the show page, but it's a blank page it's not an error
- ruby on rails 6 - [error] nomethoderror in communitiescontroller # create undefined method `published?'for # <community: 0x0
- ruby - the error in rails g migration cannot be resolved
- ruby - an error occurs when building a rails 6 environment with docker
- ruby on rails 6 - i want to solve the error that occurred while implementing the product listing function
- ruby - i want to resolve a routing error in the create action
- unable to resolve the error regarding the file path when reading the uploaded text file
- ruby on rails - i get an error with rails db: create
- ruby on rails - rails routing error
- ruby on rails - unable to install direnv
- ruby - passing variables using render partial
- ruby - [rails] about nameerror
- ruby - rspec the expected model is not created
- ruby - nameerror uninitialized constant drinkscontroller :: drinktag
- ruby - mysql2 :: error: field'tag_name' doesn't have a default value
- ruby - i can't get a payjp token on aws
- html - i want it to be rendered if the search word is incorrect
- ruby - about viewport introduction
- ruby - [rails] about the error that occurs when deleting likes (routing error)
- ruby - the information entered in the form is not an error but cannot be saved
There are no params! You said that.