Ich beginne gerade Bootstrap (ich arbeite meist Back-End) und ich bin ein bisschen verwirrt. Ich habe es richtig konfiguriert (folgte jedem Schritt ihrer guide für das Bootstrap-Gem Setup), aber wenn ich den Code für eine Navbar, from the examples at their site, kopieren, wird es überhaupt nicht gestylt (anders als Positionierung).Rails 5: Bootstrap nicht richtig gestylt
Bitte sagen Sie mir, welchen Code ich geben soll, weil ich hier wirklich nicht in der Liga bin.
Danke
Mein application.js
//= require jquery3
//= require rails-ujs
//= require turbolinks
//= require popper
//= require bootstrap
//= require_tree .
Dies wird hinzugefügt, um meine Gemfile
gem 'bootstrap', git: 'https://github.com/twbs/bootstrap-rubygem'
gem 'jquery-rails'
gem 'sprockets-rails'
in meinem application.html.erb
<nav class="navbar navbar-default navbar-fixed-top">
<div class="container">
<%= link_to 'Home', movies_path %>
<% if user_signed_in? %>
Logged in as <strong><%= current_user.email %></strong>.
<%= link_to 'Edit profile', edit_user_registration_path, :class => 'navbar-link' %> |
<%= link_to "Logout", destroy_user_session_path, method: :delete, :class => 'navbar-link' %>
<% else %>
<%= link_to "Sign up", new_user_registration_path, :class => 'navbar-link' %> |
<%= link_to "Login", new_user_session_path, :class => 'navbar-link' %>
<% end %>
</div>
</nav>
und es ist head
<%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %>
<%= javascript_include_tag 'application', 'data-turbolinks-track': 'reload' %>
ist schließlich in meiner application.scss
@import "bootstrap";
ok können Sie Ihren Code hochladen, damit wir überprüfen können, welche, die nicht richtig gestylt – widjajayd
Welchen Code möchten Sie sehen? Ich habe in meiner Frage gesagt, ich weiß nicht, welchen Code ich dafür bereitstellen soll. –
Haben Sie Fehler in Ihrer Browserkonsole? – Gerry