zpaulovics / datetimepicker-rails

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

Sprockets::FileNotFound - couldn't find file 'moment' with type 'application/javascript': #56

Closed kikocastro closed 9 years ago

kikocastro commented 9 years ago

Hey there,

just ran the installer, but i'm getting this error

Sprockets::FileNotFound - couldn't find file 'moment' with type 'application/javascript':

When I save moment.js to the folder it runs normally

robinbortlik commented 9 years ago

I think you forgot to add

gem 'momentjs-rails', '~> 2.9', :github => 'derekprior/momentjs-rails'

to your gemfile. You can read about it in Readme in section Dependency.

kikocastro commented 9 years ago

Oh, I think I missunderstood it. Perhaps " Includes the dependency reference in its Gemfile:" could be changed to " You must include the dependency reference in your Gemfile:"? Thanks for the reply! It's a very handy gem.

brntsllvn commented 9 years ago

Agree with @kikocastro on the gem's handiness, but I ran into the same error and second his request for a revision to the language preceding the dependency per his suggestion: "You must include the dependency reference in your Gemfile." Thanks again for everything.