Videos
Factsheet
I believe the problem lies in the fact that u use:
/css/bootstrap.min.css
The first / indicates the root folder of your current drive, which I believe does not contain the css directory.
More particularly:
/ means the root of the current drive;
./ means the current directory;
../ means the parent of the current directory.
You should link to the correct path (absolute or relatively) of your css file. It would be a lot more probable that you need to use ../css/bootstrap.min.css or css/bootstrap.min.css, depending on your directory structure.
You can use Twitter Bootstrap with the Asset-Pipeline. The steps are...
- Create the directory grails-app/assets/bootstrap
- Copy the Twitter Bootstrap css, fonts, and js directories into the directory created in step 1. You should have a path like this, for example: grails-app/assets/bootstrap/css/bootstrap.min.css
Create the file grails-app/assets/bootstrap/bootstrap.css with the contents:
+/*
+*= require css/bootstrap.min
+*= require css/bootstrap-theme.min
+*/
Create the file app/grails-app/assets/bootstrap/bootstrap.js with the contents:
+//= require js/bootstrap.min
Add the follwing to app/grails-app/assets/javascripts/application.js
//= require bootstrap
Add the following to app/grails-app/assets/stylesheets/application.css
*= require bootstrap
- Make sure your GSP or the layout it uses pulls in the assets using the asset:stylesheet and asset:javascript tags. (This step may already done):