Add tutorial link to home screen
This commit is contained in:
parent
2a501b3eec
commit
b0ed575892
@ -45,6 +45,11 @@ class TablesController < ApplicationController
|
|||||||
redirect_to @table
|
redirect_to @table
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def tutorial
|
||||||
|
flash[:notice] = "Tutorial coming soon!"
|
||||||
|
redirect_to root_path
|
||||||
|
end
|
||||||
|
|
||||||
# GET /tables/new
|
# GET /tables/new
|
||||||
def new
|
def new
|
||||||
@table = Table.new
|
@table = Table.new
|
||||||
|
|||||||
@ -4,4 +4,4 @@
|
|||||||
#main-menu
|
#main-menu
|
||||||
= link_to 'Play Now', play_now_path
|
= link_to 'Play Now', play_now_path
|
||||||
= link_to 'Browse Tables', tables_path
|
= link_to 'Browse Tables', tables_path
|
||||||
-# = link_to 'Tutorial', '#'
|
= link_to 'Tutorial', tutorial_path
|
||||||
|
|||||||
@ -41,6 +41,7 @@ Rails.application.routes.draw do
|
|||||||
|
|
||||||
root to: 'visitors#index'
|
root to: 'visitors#index'
|
||||||
get '/play-now', to: 'tables#play_now', as: 'play_now'
|
get '/play-now', to: 'tables#play_now', as: 'play_now'
|
||||||
|
get '/tutorial', to: 'tables#tutorial', as: 'tutorial'
|
||||||
devise_for :users, controllers: { registrations: "users/registrations" }
|
devise_for :users, controllers: { registrations: "users/registrations" }
|
||||||
resources :users
|
resources :users
|
||||||
get '/loaderio-456644f4db1fcd1e8578be882d2fc476.txt', to: redirect('/assets/loaderio-456644f4db1fcd1e8578be882d2fc476.txt')
|
get '/loaderio-456644f4db1fcd1e8578be882d2fc476.txt', to: redirect('/assets/loaderio-456644f4db1fcd1e8578be882d2fc476.txt')
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user