Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Your missing route looks like some auto-generated assets path with nil input. Are you sure your assets are correctly specified in your css/sass or wherever this route comes from? </p> <p>I have been struggling with a similiar issue where an asset path induced a routing error</p> <pre><code> 1) user signup: [ JS ] : creates User on successful signup Failure/Error: Unable to find matching line from backtrace ActionController::RoutingError: No route matches [GET] "/assets/images/leftArrow.png" </code></pre> <p>followed by a stack trace virtually identical to yours. In my case it turned out the asset was in fact missing (which went unnoticed in my development.log and in my test environment until recently I recklessly 'bundle updated' an project after several idle months)</p> <p>Along the way I learned a lot about Capybara's app_host and asset handling, assets precompiling in different environments, Application.configure.assets.[debug|digest|...] and alike, which probably is where you should be searching in the first place. Or in the sprockets/sass-rails url helper ... after all your missing route still looks like some auto-generated assets path with empty input)</p> <p>If the above doesn't help a workaround might be adding the following line in environments/test.rb:</p> <pre><code>config.action_dispatch.show_exceptions = true </code></pre> <p>While not addressing the problem directly, it successfully suppressed it in my case. </p> <p>Another kind of workaround could be in spec_helper.rb:</p> <pre><code> ActionController::Base.asset_host = "http://myapp.dev" </code></pre> <p>where myapp.dev is a running instance of myApp in development mode, which delivers the assets or at least does not hit your test routing for the assets, but probably one should do this only in complete desparation. It's inspired by the strategy to avoid asset compiling as explained in <a href="http://johnbintz.github.com/blog/2012/01/07/cucumber-capybara-asset-pipeline-debug-mode/">http://johnbintz.github.com/blog/2012/01/07/cucumber-capybara-asset-pipeline-debug-mode/</a></p> <p>Also potentially helpful: <a href="http://guides.rubyonrails.org/asset_pipeline.html">http://guides.rubyonrails.org/asset_pipeline.html</a> <a href="http://rubydoc.info/github/jnicklas/capybara/master/Capybara#configure-class_method">http://rubydoc.info/github/jnicklas/capybara/master/Capybara#configure-class_method</a></p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload