polymer-elements-rails
polymer-elements-rails copied to clipboard
Unable to get it to work, README doesn't help
Thank you for the great gem. It's a bummer I am unable to get it to work so far for a vanilla Rails 4.2.4.
The README suggests in the Usage section: Add this to your Gemfile:
gem 'polymer-rails'
gem 'polymer-paper-rails'
After running bundle install require needed paper elements into your application.html manifest file.
//= require polymer/polymer
//= require paper-button/paper-button
When I added polymer-paper-rails
a dependency conflict occurred:
Bundler could not find compatible versions for gem "polymer-rails": In Gemfile: polymer-paper-rails (>= 0) ruby depends on polymer-rails (~> 0.1.9) ruby
polymer-elements-rails (>= 0) ruby depends on
polymer-rails (>= 1.0.3, ~> 1.0) ruby
polymer-rails (>= 0) ruby
After removing polymer-paper-rails
, I get unstyled elements. Something is missing.
Please help.
@owahab as far as I understand now we should use gem 'polymer-elements-rails'
instead of gem 'polymer-paper-rails'
but I'm experiencing the same issue - paper and other elements are not working and not styled....
@alchapone would be great if you could give us a hand.
@alexvbush understood. The thing is, it still won't work.
The tutorial is missing:
Add to your app/views/layouts/application.html.erb
:
<%= html_import_tag "application", "data-turbolinks-track" => true %>