Toggle task app with rails in dot installation

Asked 2 years ago, Updated 2 years ago, 76 views

NoMethodError in TasksController#create
undefined method `tasks' for nil:NilClass

I got this error.
I would appreciate it if someone could give me a hint.

Sorry for asking such an out-of-the-box question.

ruby-on-rails dotinstall

2022-09-30 14:52

1 Answers

The meaning of the error is
I tried to use the method called create for the variable TasksController, but the current value of the TasksController, nil:NilClass, does not have such a method.
That means.
TasksController generation has failed, so we need to go back to where we created it and find the cause.
There are many simple typographical errors in variable names.


2022-09-30 14:52

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.