I want to move to the registration screen, but I get an error and cannot display it at all: sob: As a result of falling into a situation and struggling for hours, it was resolved, so I will leave it as a memorandum.
I get the following error: zap:
Rails.application.routes.draw do devise_for :users root "groups#index" resources :users, only: [:edit, :update] resources :groups, only: [:index, :new, :create, :edit, :update] do resources :tasks, only: [:index, :new, :create, :edit, :update, :destroy] end end
def new @task = Task.new end
#abridgement .new_display = form_for @task do |f| #abridgement
Not strange: disappointed_relieved: What are you saying: persevere: There is no data because it is a new action. I was in agony alone. .. ..
The cause is [the path automatically generated by form_for is ** plural only **]! !! It was also mentioned in the error text!
undefind method 'tasks_path' for ~
What do I say when I read that passage? ?? There is no such pass: triumph: I thought: sweat:
I changed the view as below!
#abridgement .new_display = form_for @task, url: group_tasks_path do |f| #abridgement
I hope it will be a stepping stone for those who are worried about something similar: relaxed: