zpaulovics / datetimepicker-rails

A date and time picker for Twitter Bootstrap in Rails using Simple Form
MIT License
174 stars 80 forks source link

Install script not copying js files from submodule #65

Open andrewcsmith opened 9 years ago

andrewcsmith commented 9 years ago

The install script is not installing bootstrap-datetimepicker.js. My guess is that this is because it just globs the js folder, and since there's nothing there it fails silently. I manually cloned the repo and copied over the js file and everything works fine now.

# Gemfile
...
gem 'datetimepicker-rails', github: 'zpaulovics/datetimepicker-rails', branch: 'master', submodules: true
gem 'momentjs-rails', '~> 2.9', github: 'derekprior/momentjs-rails'
...

# Shell
$ bundle exec rails generate datetimepicker_rails:install Font-Awesome
        gsub  app/inputs/datetime_picker_input.rb
        gsub  app/inputs/date_picker_input.rb
        gsub  app/inputs/time_picker_input.rb
icon_family: Font-Awesome
      vendor  assets/javascripts/pickers.js
   identical  vendor/assets/stylesheets/bootstrap-datetimepicker.min.css
   identical  vendor/assets/stylesheets/bootstrap-datetimepicker.css