Commit 8e58beee by nnnghia98

update

parent cf1069c9
//= require jquery
//= require bootstrap
//= require bootstrap.min
//= require rails-ujs
//= require turbolinks
//= require_tree .
......@@ -12,5 +12,5 @@
*
*= require_tree .
*= require_self
*= require bootstrap
*= require bootstrap.min
*/
@import "bootstrap";
@import "bootstrap.min";
/* mixin, variables, etc. */
......
class StaticPagesController < ApplicationController
def top_page
end
def favorite
end
def history
def home
end
end
......@@ -13,10 +13,6 @@
<li class="list-inline-item"><%= link_to "History", history_path %></li>
</li>
</ul>
<!-- <li><%= link_to "Login", "#" %></li>
<li><%= link_to "Register", "#" %></li>
<li><%= link_to "Favorite", favorite_path %></li>
<li><%= link_to "History", history_path %></li> -->
</ul>
</nav>
</div>
......
Rails.application.routes.draw do
devise_for :users
# For details on the DSL available within this file, see https://guides.rubyonrails.org/routing.html
root "static_pages#top_page"
get "static_pages/top_page"
root "static_pages#home"
get "static_pages/home"
get "/favorite", to: "static_pages#favorite"
get "/history",to: "static_pages#history"
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