Skip to content
This repository has been archived by the owner on Jan 26, 2019. It is now read-only.

Polymer/Paper path parsing issue. #28

Closed
ncooper123 opened this issue Sep 22, 2014 · 4 comments
Closed

Polymer/Paper path parsing issue. #28

ncooper123 opened this issue Sep 22, 2014 · 4 comments
Labels

Comments

@ncooper123
Copy link

I am using emcee 1.0.7 with polymer 0.4.1 and paper and I'm running into the following error with Rails 4.1.1.:

ActionController::RoutingError (No route matches [GET] "/assets/paper-button/%7B%7BiconSrc%7D%7D"):
  actionpack (4.1.1) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
  actionpack (4.1.1) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
  railties (4.1.1) lib/rails/rack/logger.rb:38:in `call_app'
  railties (4.1.1) lib/rails/rack/logger.rb:20:in `block in call'
  activesupport (4.1.1) lib/active_support/tagged_logging.rb:68:in `block in tagged'
  activesupport (4.1.1) lib/active_support/tagged_logging.rb:26:in `tagged'
  activesupport (4.1.1) lib/active_support/tagged_logging.rb:68:in `tagged'
  railties (4.1.1) lib/rails/rack/logger.rb:20:in `call'
  actionpack (4.1.1) lib/action_dispatch/middleware/request_id.rb:21:in `call'
  rack (1.5.2) lib/rack/methodoverride.rb:21:in `call'
  rack (1.5.2) lib/rack/runtime.rb:17:in `call'
  activesupport (4.1.1) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call'
  rack (1.5.2) lib/rack/lock.rb:17:in `call'
  actionpack (4.1.1) lib/action_dispatch/middleware/static.rb:64:in `call'
  rack (1.5.2) lib/rack/sendfile.rb:112:in `call'
  railties (4.1.1) lib/rails/engine.rb:514:in `call'
  railties (4.1.1) lib/rails/application.rb:144:in `call'
  rack (1.5.2) lib/rack/content_length.rb:14:in `call'
  thin (1.6.2) lib/thin/connection.rb:86:in `block in pre_process'
  thin (1.6.2) lib/thin/connection.rb:84:in `catch'
  thin (1.6.2) lib/thin/connection.rb:84:in `pre_process'
  thin (1.6.2) lib/thin/connection.rb:53:in `process'
  thin (1.6.2) lib/thin/connection.rb:39:in `receive_data'
  eventmachine (1.0.3) lib/eventmachine.rb:187:in `run_machine'
  eventmachine (1.0.3) lib/eventmachine.rb:187:in `run'
  thin (1.6.2) lib/thin/backends/base.rb:73:in `start'
  thin (1.6.2) lib/thin/server.rb:162:in `start'
  rack (1.5.2) lib/rack/handler/thin.rb:16:in `run'
  rack (1.5.2) lib/rack/server.rb:264:in `start'
  railties (4.1.1) lib/rails/commands/server.rb:69:in `start'
  railties (4.1.1) lib/rails/commands/commands_tasks.rb:81:in `block in server'
  railties (4.1.1) lib/rails/commands/commands_tasks.rb:76:in `tap'
  railties (4.1.1) lib/rails/commands/commands_tasks.rb:76:in `server'
  railties (4.1.1) lib/rails/commands/commands_tasks.rb:40:in `run_command!'
  railties (4.1.1) lib/rails/commands.rb:17:in `<top (required)>'
  bin/rails:8:in `require'
  bin/rails:8:in `<top (required)>'
  spring (1.1.3) lib/spring/client/rails.rb:27:in `load'
  spring (1.1.3) lib/spring/client/rails.rb:27:in `call'
  spring (1.1.3) lib/spring/client/command.rb:7:in `call'
  spring (1.1.3) lib/spring/client.rb:26:in `run'
  spring (1.1.3) bin/spring:48:in `<top (required)>'
  spring (1.1.3) lib/spring/binstub.rb:11:in `load'
  spring (1.1.3) lib/spring/binstub.rb:11:in `<top (required)>'
  bin/spring:16:in `require'
  bin/spring:16:in `<top (required)>'
  bin/rails:3:in `load'
  bin/rails:3:in `<main>'

It appears emcee may be mis-parsing the {{..}} within the paper-shadow/paper-button source. Any suggestions?

@ahuth ahuth added the bug label Sep 22, 2014
@ahuth
Copy link
Owner

ahuth commented Sep 22, 2014

This definitely looks like a bug in Emcee, and you're definitely right about the {{ ... }}. Do you have an example repo I can use to look into this?

@ncooper123
Copy link
Author

Here's a quick rails app I rigged up:

https://github.com/ncooper123/emcee-example

The problem seems to lie with the <paper-icon-button icon="menu"></paper-icon-button> tag

Cheers.

@ahuth
Copy link
Owner

ahuth commented Oct 1, 2014

This should be fixed in release 1.0.8. After updating to the new version, you may have to clean out the old assets in any Rails projects that use this. You can do that with rake assets:clean && rake tmp:clear from the project root.

Here's a screenshot of your test app working:
screen shot 2014-09-30 at 10 28 18 pm

@ahuth ahuth closed this as completed Oct 1, 2014
@ncooper123
Copy link
Author

Works like a charm now. Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants