I tried to use bootstrap-sass v.3.1.1.1 for my rails 4 app and its just not working as its supposed to and I cant find the solution! Maybe you can help me.
My files are looking like this:
/assets/stylesheets/application.css
/*
* 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 bootstrap
*= require_tree .
*/
/assets/javascripts/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 vendor/assets/javascripts of plugins, if any, 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/sstephenson/sprockets#sprockets-directives) for details
// about supported directives.
//
//= require jquery
//= require jquery_ujs
//= require turbolinks
//= require bootstrap
//= require_tree .
After those changes in both files I recognized a change in my views (font e.g.) and I can use the bootstrap buttons.
But when I try to use the grid structure or javascripts nothing is happening! For grid I use this code in one of my views:
<div class="row">
<div class="col-lg-10">
<table>
<tr><td><%= f.input :pre, as: :text, label:'Pre-Description' %></td></tr>
<tr><td><%= f.input :post, as: :text, label:'Post-Description' %></td></tr>
<tr><td><%= f.input :comment, as: :text %></td></tr>
</table>
</div>
<div class="col-lg-2">
<table>
<tr><td><%= f.input :save_h, as: :float, label:'h/AC' %></td></tr>
<tr><td><%= f.input :save_c, as: :float, label:'concessions/AC' %></td></tr>
<tr><td><%= f.input :save_other, label:'others' %></td></tr>
<tr><td><%= f.input :affect_design, label:'Design' %></td></tr>
<tr><td><%= f.input :affect_stress, label:'Stress' %></td></tr>
<tr><td><%= f.input :affect_me, label:'Manufacturing' %></td></tr>
<tr><td><%= f.input :affect_other, label:'Others' %></td></tr>
<tr><td><%= f.input :affect_dno, label:'Drawing number/ HTZ' %></td></tr>
<tr><td><%= f.input :affect_mid, label:'Material ID' %></td></tr>
<tr><td><%= f.input :affect_otherdoc, label:'Others' %></td></tr>
<tr><td><%= f.input :owner, label:'Idea owner' %></td></tr>
<tr><td><%= f.input :pps, label:'PPS available' %></td></tr>
<tr><td><%= f.input :reference, label:'Reference (VV/ ZTV)' %></td></tr>
</table>
</div>
</div>
Even though there was a change in position of the form fields its not really using the right grid.
Any thoughts?
Best regards!
Edit: html code of my view
One Pager
<link data-turbolinks-track="true" href="/assets/theming.css?body=1" media="all" rel="stylesheet" />
<link data-turbolinks-track="true" href="/assets/application.css?body=1" media="all" rel="stylesheet" />
<link data-turbolinks-track="true" href="/assets/mepagers.css?body=1" media="all" rel="stylesheet" />
<link data-turbolinks-track="true" href="/assets/pimps.css?body=1" media="all" rel="stylesheet" />
<link data-turbolinks-track="true" href="/assets/scaffolds.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/bootstrap/affix.js?body=1"></script>
<script data-turbolinks-track="true" src="/assets/bootstrap/alert.js?body=1"></script>
<script data-turbolinks-track="true" src="/assets/bootstrap/button.js?body=1"></script>
<script data-turbolinks-track="true" src="/assets/bootstrap/carousel.js?body=1"></script>
<script data-turbolinks-track="true" src="/assets/bootstrap/collapse.js?body=1"></script>
<script data-turbolinks-track="true" src="/assets/bootstrap/dropdown.js?body=1"></script>
<script data-turbolinks-track="true" src="/assets/bootstrap/tab.js?body=1"></script>
<script data-turbolinks-track="true" src="/assets/bootstrap/transition.js?body=1"></script>
<script data-turbolinks-track="true" src="/assets/bootstrap/scrollspy.js?body=1"></script>
<script data-turbolinks-track="true" src="/assets/bootstrap/modal.js?body=1"></script>
<script data-turbolinks-track="true" src="/assets/bootstrap/tooltip.js?body=1"></script>
<script data-turbolinks-track="true" src="/assets/bootstrap/popover.js?body=1"></script>
<script data-turbolinks-track="true" src="/assets/bootstrap.js?body=1"></script>
<script data-turbolinks-track="true" src="/assets/mepagers.js?body=1"></script>
<script data-turbolinks-track="true" src="/assets/pimps.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="e+3Scs+/HbQtb6q7pHrJ0Ewxheqctfeou35iJT/6lqw=" name="csrf-token" />
</head>
Okay, as you can see the view loads all those javascripts but not the stylesheets. Is that normal or is something missing? I would really appreciate any kind of help here!