0

ユーザーが接続されているかどうか、およびヘルパーアプリケーションで2つのメソッドを作成したカレンダー/インデックスにあるかどうかを確認しようとしました

application_helper

def check_user_signed
  !user_signed_in?
end

def check_path_calendar
     current_page?(:controller => 'calendars', :action => 'index')
end

私のルートファイル

  devise_for :users, path_names: {sign_in: 'login', sign_out: 'logout', sign_up: 'signup'}

resources :calendars
match 'calendars' => 'calendars#index', :as => 'calendars', :via => :get

#inforamtions 
match "information" => 'home#information', :as =>'information', :via => :get

ユーザーと接続しようとすると、エラーが発生します

No route matches {:controller=>"devise/calendars"}
4

1 に答える 1