前提・実現したいこと
表題通りですが、deviseをインストールしアプリを作成したいました。
インストール後は問題なくroute通りの挙動だったのですが、間違ってファイルを消してしまったのか
わかりませんがdevise関係のページ(edit,sigu_up)に移動するとRouting Errorになります。
発生している問題・エラーメッセージ
http://localhost:3000/users/sign_up
該当のソースコード
routes.rb
Rails.application.routes.draw do devise_for :users, controllers: { registrations: 'registrations' } root 'toppages#index' get '/users/:id', to: 'users#show', as: 'user' get '/users/index', to: 'users#index', as: 'users' resources :posts, only: %i(index new create show destroy) do resources :videos, only: %i(create) resources :likes, only: %i(create destroy) resources :comments, only: %i(create destroy) end resources :users do member do get :following, :followers end end resources :relationships, only: %i(create destroy) end
ご教授頂ければ幸いです。
何卒よろしくお願いいたします。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。