我下面這個tutorialRails的引導不加載
但登錄的引導和註冊頁面沒有加載。只有我收到上封頭。我不明白這是爲什麼....我也跟着教程正常。就是有自舉
[application.html.erb]
一些問題[pages_Controller]
class PagesController < ApplicationController
before_action :require_login, only: [:new]
def index
end
def new
end
end
[寶石文件]
gem 'rails', '4.2.5'
# Use sqlite3 as the database for Active Record
gem 'pg'
gem 'bootstrap-sass','~> 3.3.5'
gem 'clearance', '~> 1.11'
# Use SCSS for stylesheets
gem 'sass-rails', '~> 5.0'
[application.scss]
@import 'bootstrap-sprockets';
@import 'bootstrap';
.navbar-nav > li > span {
padding-bottom: 15px;
padding-top: 15px;
color: #9d9d9d;
line-height: 20px;
display: block;
}
#footer {
margin-top: 50px;
}
.other-links {
margin-top: 10px;
}
[application.js中]
// This is a manifest file that'll be compiled into application.js, which will include all the files
// listed below.
//
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
// or any plugin's vendor/assets/javascripts directory can be referenced here using a relative path.
//
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
// compiled file.
//
// Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details
// about supported directives.
//
//= require jquery
//= require jquery_ujs
//= require turbolinks
//= require_tree .
你在哪裏加載引導CS/etc?你沒有包含你的應用程序CSS或JS文件。 –
你寫「登錄和註冊頁面不加載」是什麼意思? –
引導登錄和註冊不加載 –