I setup Rails Admin for a Rails appp that I created. When I first visit the /admin page, the HTML is rendered but it appears as though the CSS isn't being fully loaded. Example: However, if I click the refresh button, the CSS is reloaded and the dashboard looks fine. I've looked in the server logs and there aren't any errors pertaining to the CSS or JS not not loading. Has anyone experienced this issue before?
It appears this may have been an issue related to Turbolinks. I added data-method: "get" to the link in the bootstrap navbar and it appears to have resolved my issue.
%nav.navbar.navbar-default.navbar-fixed-top{role: 'navigation'}
.navbar-header
= link_to 'Building Permits Reporting', root_path, class: 'navbar-brand'
%ul.nav.navbar-nav.navbar-right
- if user_signed_in?
- if current_user.role == 'Administrator'
%li= link_to 'Administration', rails_admin.dashboard_path, class: 'navbar-link', method: :get
%li= logon_menu