Closed ninajlu closed 11 years ago
i have the same issue, i did not put @import 'bootstrap' since i already have an entry @import "twitter/bootstrap/bootstrap";
hi guys, if you have @import "twitter/bootstrap/bootstrap";
then it's ok to skip @import "bootstrap";
in order to import the css file into less you can try:
@import 'bootstrap-datetimepicker.css';
unfortunately it still gives error: 'bootstrap-datetimepicker.less' wasn't found.
(in /Users/akaghzi/Project/myh/app/assets/stylesheets/bootstrap_and_overrides.css.less)
This is because of http://stackoverflow.com/questions/11196915/import-css-file-into-less-file. Fix it by simply including the CSS in your Rails application.css manifest file by adding:
*= require bootstrap-datetimepicker
BTW.. would be good to add this to the README so also less users can use https://github.com/lubieniebieski/bootstrap-datetimepicker-rails.
added, thanks @joost!
I used the twitter-bootstrap-rails gem and don't have a bootstrap_and_override.scss but a bootstrap_and_overrides.css.less file. When I tried to put @import 'bootstrap'; @import 'bootstrap-datetimepicker'; into that file, it resulted in an error that said bootstrap.less wasn't found and bootstrap-datetimepicker.less wasn't found. How do I fix this issue?