withe corresponding files the Javascript dosen't work properly.
Rails.application.routes.draw do
root 'static_pages#home'
get 'password_resets/new'
get 'password_resets/edit'
get 'sessions/new'
get 'users/new'
get '/help', to: 'static_pages#help'
get '/about', to: 'static_pages#about'
get '/contact', to: 'static_pages#contact'
get '/signup', to: 'users#new'
post '/signup', to: 'users#create'
get '/login', to: 'sessions#new'
post '/login', to: 'sessions#create'
delete '/logout', to: 'sessions#destroy'
get 'game/BlackJack'
get 'game/Poker'
get 'game/Yaghtzee'
get 'game/MasterMind'
get '/blackjack', to: 'game#BlackJack'
get '/poker', to: 'game#Poker'
get '/yaghtzee', to: 'game#Yaghtzee'
get '/mastermind', to: 'game#MasterMind'
resources :users
resources :game, only: [:BlackJack, :Poker, :Yaghtzee, :MasterMind]
resources :account_activations, only: [:edit]
resources :password_resets, only: [:new, :create, :edit, :update]
end
Rails.application.routes.draw do
root 'static_pages#home'
get 'game/BlackJack'
get 'game/Poker'
get 'game/Yaghtzee'
get 'game/MasterMind'
get '/blackjack', to: 'game#BlackJack'
get '/poker', to: 'game#Poker'
get '/yaghtzee', to: 'game#Yaghtzee'
get '/mastermind', to: 'game#MasterMind'
end