User Dropdowm


Add this into application.html.erb:-

posted by Manish Singh
04 Oct 2019, Friday

<li class="nav-item dropdown">
                <a class="nav-link dropdown-toggle" href="" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
                  <span class="fas fa-user"> <%= current_user.name %></span>
                </a>
               <div class="dropdown-menu" aria-labelledby="navbarDropdown">
                  <a class="dropdown-item" href="/users">Profile</a>
                  <a class="dropdown-item" href="/settings">Setting</a>
                  <a class="dropdown-item" href="/payments">Payments</a>
                  <a class="dropdown-item" href="/transactions">Transaction History</a>
                  <a class="dropdown-item" href="/devices">Devices</a>
                  <a class="dropdown-item" href="/users/sign/out">Exit</a>


                                             Result Will be like this

Comments

Popular posts from this blog

Check Your ageInDays by Javascript