Commit c6834db2 by nnnghia98

change route

parent 8e58beee
class StaticPagesController < ApplicationController class StaticPagesController < ApplicationController
def home def index
end end
end end
Rails.application.routes.draw do Rails.application.routes.draw do
devise_for :users devise_for :users
# For details on the DSL available within this file, see https://guides.rubyonrails.org/routing.html # For details on the DSL available within this file, see https://guides.rubyonrails.org/routing.html
root "static_pages#home" root "static_pages#index"
get "static_pages/home" get "static_pages/index"
get "/favorite", to: "static_pages#favorite" get "/favorite", to: "static_pages#favorite"
get "/history",to: "static_pages#history" get "/history",to: "static_pages#history"
end end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment