alchaplinsky / polymer-rails

Polymer and web components for Ruby on Rails
MIT License
286 stars 80 forks source link

undefined method `html_import_tag' for #<#<Class:0x007fec8c928e68>:0x007fec8dd09220> #63

Closed alexvbush closed 8 years ago

alexvbush commented 8 years ago

I'm getting this error in a brand new Rails 4.2.4 app.

  1. add gem 'polymer-elements-rails' to your Gemfile
  2. run bundle exec rails g polymer:install
  3. insert <%= html_import_tag 'application'%> in application.html.erb layout.
  4. get the error above.

I have no extra gem/setup/whatever.

alexvbush commented 8 years ago

Here's the gem versions in my Gemfile.lock:

polymer-elements-rails (1.0.1)
      polymer-rails (~> 1.0, >= 1.0.3)
    polymer-rails (1.1.0)
alexvbush commented 8 years ago

ha! silly me - I forgot to include gem 'polymer-rails in Gemfile

it's all good, nwm :)