Commit 8e58beee by nnnghia98

update

parent cf1069c9
//= require jquery //= require jquery
//= require bootstrap //= require bootstrap.min
//= require rails-ujs //= require rails-ujs
//= require turbolinks //= require turbolinks
//= require_tree . //= require_tree .
...@@ -12,5 +12,5 @@ ...@@ -12,5 +12,5 @@
* *
*= require_tree . *= require_tree .
*= require_self *= require_self
*= require bootstrap *= require bootstrap.min
*/ */
@import "bootstrap"; @import "bootstrap.min";
/* mixin, variables, etc. */ /* mixin, variables, etc. */
......
class StaticPagesController < ApplicationController class StaticPagesController < ApplicationController
def top_page def home
end
def favorite
end
def history
end end
end end
...@@ -13,10 +13,6 @@ ...@@ -13,10 +13,6 @@
<li class="list-inline-item"><%= link_to "History", history_path %></li> <li class="list-inline-item"><%= link_to "History", history_path %></li>
</li> </li>
</ul> </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> </ul>
</nav> </nav>
</div> </div>
......
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#top_page" root "static_pages#home"
get "static_pages/top_page" get "static_pages/home"
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