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

If i have any other files or information you need, please let us know.

  • Answer # 1

    There are no params! You said that.

Related articles