Having some issues with implementing the bootstrap dropdown functionality in my Ruby on Rails application's navigation bar.
I have made sure to include all necessary JavaScript files.
Below is the code snippet:
<div class="dropdown-toggle" data-toggle=>"dropdown"><%= link_to current_user.first_name, profileshow_path(current_user)%></div>
<ul class="dropdown-menu">
<li><%= link_to "Account Settings", edit_user_registration_path%></li>
<li><%= link_to "Your Profile", profileshow_path(current_user) %></li>
<li class='last'><%= link_to "Logout", destroy_user_session_path, :method => :delete %></li>
</ul>
<script>
$('.dropdown-toggle').dropdown()
</script>