polymer-elements-rails icon indicating copy to clipboard operation
polymer-elements-rails copied to clipboard

Unable to get it to work, README doesn't help

Open owahab opened this issue 9 years ago • 3 comments

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 avatar Sep 30 '15 10:09 owahab

@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 avatar Oct 03 '15 23:10 alexvbush

@alexvbush understood. The thing is, it still won't work.

owahab avatar Oct 06 '15 19:10 owahab

The tutorial is missing:

Add to your app/views/layouts/application.html.erb:

<%= html_import_tag "application", "data-turbolinks-track" => true %>

ghost avatar Nov 23 '15 09:11 ghost