Skip to content

Instantly share code, notes, and snippets.

@jukbot
Forked from phamonyut/application.html.slim
Created October 18, 2015 09:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jukbot/37d02f8f5fb488a46500 to your computer and use it in GitHub Desktop.
Save jukbot/37d02f8f5fb488a46500 to your computer and use it in GitHub Desktop.
doctype html
html
head
title
| Shopper2
= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true
= javascript_include_tag 'application', 'data-turbolinks-track' => true
= csrf_meta_tags
body
header.navbar.navbar-default
.container
.navbar-header
= link_to 'Shopper', root_path, class: 'navbar-brand'
.collapse.navbar-collapse
ul.nav.navbar-nav.navbar-right
li.dropdown
- if user_signed_in?
a.dropdown-toggle href="#" data-toggle='dropdown'
span.glyphicon.glyphicon-user>
span.caret<
ul.dropdown-menu
li
= link_to 'ออกจากระบบ', destroy_user_session_path, method: :delete
.container
.row
.col-sm-12
= yield
@jukbot
Copy link
Author

jukbot commented Oct 18, 2015

แปะไว้ที่ product_controller.rb

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment