ALL
Resolve stylesheet_link_tag fails to work in Ruby on Rails
When developing Ruby On Rails application, developers sometimes will see an unexpected behavior where the application cannot be loaded due to "TypeError: Object doesn't support this property or method" when invoking stylesheet_link_tag. The symptom looks like And the Rails log will show something similar to belowThe error occurs because there is some problem finding the correct assets which are located in app/assets. To resolve the issue, you can following below steps.Add gem 'coffee-script-source', '1.8.0' into Gemfile and run bundle install thenRun bundle update coffee-script-sourceRest...
10,412 2 RUBY ON RAILS STYLESHEET_LINK_TAG JAVASCRIPT_INCLUDE_TAG TYPEERROR