rails / coffee-rails

CoffeeScript adapter for the Rails asset pipeline. Also adds support for .coffee views.
MIT License
230 stars 64 forks source link

windows rails 5.0.1 require coffee/rails/js_hook #86

Closed ma95221 closed 7 years ago

ma95221 commented 7 years ago

E:\railsworks\workspace\hello_app>rails s C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/coffee-rails-4.2.0/lib/coff ee/rails/engine.rb:3:in require': cannot load such file -- coffee/rails/js_hook (LoadError) from C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/coffee-rails-4 .2.0/lib/coffee/rails/engine.rb:3:in<top (required)>' from C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/coffee-rails-4 .2.0/lib/coffee-rails.rb:2:in require' from C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/coffee-rails-4 .2.0/lib/coffee-rails.rb:2:in<top (required)>' from C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/bundler-1.11.2 /lib/bundler/runtime.rb:77:in require' from C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/bundler-1.11.2 /lib/bundler/runtime.rb:77:inblock (2 levels) in require' from C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/bundler-1.11.2 /lib/bundler/runtime.rb:72:in each' from C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/bundler-1.11.2 /lib/bundler/runtime.rb:72:inblock in require' from C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/bundler-1.11.2 /lib/bundler/runtime.rb:61:in each' from C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/bundler-1.11.2 /lib/bundler/runtime.rb:61:inrequire' from C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/bundler-1.11.2 /lib/bundler.rb:99:in require' from E:/railsworks/workspace/hello_app/config/application.rb:7:in<top (required)>' from C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/railties-5.0.1 /lib/rails/commands/commands_tasks.rb:88:in require' from C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/railties-5.0.1 /lib/rails/commands/commands_tasks.rb:88:inblock in server' from C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/railties-5.0.1 /lib/rails/commands/commands_tasks.rb:85:in tap' from C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/railties-5.0.1 /lib/rails/commands/commands_tasks.rb:85:inserver' from C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/railties-5.0.1 /lib/rails/commands/commands_tasks.rb:49:in run_command!' from C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/railties-5.0.1 /lib/rails/commands.rb:18:in<top (required)>' from bin/rails:4:in require' from bin/rails:4:in

'

ma95221 commented 7 years ago

I downloaded coffee/rails/js_hook.rb file and copy this file to coffee/rails/ folder.It's ok.