Ruby on rails 为什么引导(3)在RoR中显示不正确?
我正在尝试使用更新登录页面的外观。我正在使用anjlab的引导3 我正在运行Rails 4.0,并尝试复制发现的示例: 但当我复制html时,我的应用程序中会出现以下内容: 我不确定我做错了什么,或者我没有正确配置某些东西。有人能帮助我让我的登录页面看起来像bootstrap网站上的示例吗 标记:Ruby on rails 为什么引导(3)在RoR中显示不正确?,ruby-on-rails,twitter-bootstrap,ruby-on-rails-4,twitter-bootstrap-3,Ruby On Rails,Twitter Bootstrap,Ruby On Rails 4,Twitter Bootstrap 3,我正在尝试使用更新登录页面的外观。我正在使用anjlab的引导3 我正在运行Rails 4.0,并尝试复制发现的示例: 但当我复制html时,我的应用程序中会出现以下内容: 我不确定我做错了什么,或者我没有正确配置某些东西。有人能帮助我让我的登录页面看起来像bootstrap网站上的示例吗 标记: <!DOCTYPE html> <html> <head> <title>Manager</title> <link da
<!DOCTYPE html>
<html>
<head>
<title>Manager</title>
<link data-turbolinks-track="true" href="/assets/application.css?body=1" media="all" rel="stylesheet" />
<link data-turbolinks-track="true" href="/assets/custom.css?body=1" media="all" rel="stylesheet" />
<link data-turbolinks-track="true" href="/assets/home.css?body=1" media="all" rel="stylesheet" />
<link data-turbolinks-track="true" href="/assets/volunteers.css?body=1" media="all" rel="stylesheet" />
<script data-turbolinks-track="true" src="/assets/jquery.js?body=1"></script>
<script data-turbolinks-track="true" src="/assets/jquery_ujs.js?body=1"></script>
<script data-turbolinks-track="true" src="/assets/turbolinks.js?body=1"></script>
<script data-turbolinks-track="true" src="/assets/home.js?body=1"></script>
<script data-turbolinks-track="true" src="/assets/volunteers.js?body=1"></script>
<script data-turbolinks-track="true" src="/assets/application.js?body=1"></script>
<meta content="authenticity_token" name="csrf-param" />
<meta content="0N/QEWp3XUuCrFUPqKQ4VDyy6ALfum9TwFoZDg8f2r0=" name="csrf-token" />
</head>
<body>
<div class="container">
<form class="form-signin">
<h2 class="form-signin-heading">Please sign in</h2>
<input type="text" class="form-control" placeholder="Email address" autofocus="">
<input type="password" class="form-control" placeholder="Password">
<label class="checkbox">
<input type="checkbox" value="remember-me"> Remember me
</label>
<button class="btn btn-lg btn-primary btn-block" type="submit">Sign in</button>
</form>
</div>
</body>
</html>
这是我的application.css.scss文件:
/*
* This is a manifest file that'll be compiled into application.css, which will include all the files
* listed below.
*
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
* or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path.
*
* You're free to add application-wide styles to this file and they'll appear at the top of the
* compiled file, but it's generally better to create a new file per style scope.
*
*= require_self
*= require_tree .
*/
@import "twitter/bootstrap";
和我的custom.css.scss文件:
/*
* This is a manifest file that'll be compiled into application.css, which will include all the files
* listed below.
*
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
* or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path.
*
* You're free to add application-wide styles to this file and they'll appear at the top of the
* compiled file, but it's generally better to create a new file per style scope.
*
*= require_self
*= require_tree .
*/
@import "twitter/bootstrap";
你忘了另一种风格:
你能发布标记/css吗?否则很难诊断这个问题。开枪。。我知道我忘了什么!行。