lubieniebieski / bootstrap-datetimepicker-rails

bootstrap-datetimepicker's JavaScripts & stylesheets for Rails 3.1+ asset pipeline
MIT License
65 stars 35 forks source link

bootstrap.less wasn't found #10

Closed ninajlu closed 11 years ago

ninajlu commented 11 years ago

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?

akaghzi commented 11 years ago

i have the same issue, i did not put @import 'bootstrap' since i already have an entry @import "twitter/bootstrap/bootstrap";

lubieniebieski commented 11 years ago

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';
akaghzi commented 11 years ago

unfortunately it still gives error: 'bootstrap-datetimepicker.less' wasn't found.

(in /Users/akaghzi/Project/myh/app/assets/stylesheets/bootstrap_and_overrides.css.less)

joost commented 11 years ago

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
joost commented 11 years ago

BTW.. would be good to add this to the README so also less users can use https://github.com/lubieniebieski/bootstrap-datetimepicker-rails.

lubieniebieski commented 11 years ago

added, thanks @joost!