Home>
Currently, I have introduced Bootstrap to the original Rails app, but I am having trouble solving it because ActionController :: RoutingError: No route matches [GET] "/custom.css" occurs in Rspec.
There is no file called custom.css, and custom.scss is newly created when Bootstrap is installed.
Also, adding * = require custom.css to application.scss did not improve it.
Thanks for your cooperation.
Error message
Failure/Error: raise ActionController :: RoutingError, "No route matches [# {env ['REQUEST_METHOD']}] # {env ['PATH_INFO']. Inspect}"
ActionController :: RoutingError:
No route matches [GET] "/custom.css"
[Screenshot]: /Users/hogehoge/Portfolio/connect/tmp/screenshots/failures_r_spec_example_groups_static_pages_top_nested_ After deleting a post, a flash of successful deletion is displayed_9.png
# /Users/hogehoge/Portfolio/connect/vendor/bundle/ruby/2.6.0/gems/actionpack-6.0.3.4/lib/action_dispatch/middleware/debug_exceptions.rb:36:in `call'
# /Users/hogehoge/Portfolio/connect/vendor/bundle/ruby/2.6.0/gems/actionpack-6.0.3.4/lib/action_dispatch/middleware/show_exceptions.rb:33:in `call'
Showing full backtrace because every line was filtered out.
# See docs for RSpec :: Configuration # backtrace_exclusion_patterns and
# RSpec :: Configuration # backtrace_inclusion_patterns for more information.
# ------------------
# --- Caused by: ---
# Capybara :: CapybaraError:
# Your application server raised an error --It has been raised in your test code because Capybara.raise_server_errors == true
# ./spec/support/test_helper.rb:13:in `login_for_system'
application.scss
/ *
* require_tree.
* require_self
* = require animate.css
* = require icomoon.css
* = require bootstrap.css
* = require flexslider.css
* = require style.css
* = require magnific-popup.css
* /
@import "style.scss";
@import "bootstrap-sprockets";
@import "bootstrap.scss";
@import "custom.scss";
@import "icomoon/style";
-
Answer # 1
Related articles
- error when upgrading laravel 6x → 7x cannot be resolved
- javascript - env is not defined error cannot be resolved (about api key in environment variable)
- aspnet - the systeminvalidcastexception error cannot be resolved
- ruby - rails nomethoderror cannot be resolved
- javascript error "cannot set property'textcontent' of null" cannot be resolved
- ubuntu - ll command not found cannot be resolved
- cannot apply css to "devise" view with rails
- it is the same css but cannot be read on another page
- i cannot load css into html
- javasqlsqlsyntaxerrorexception cannot be resolved
- css - the size of h1 cannot be changed by media query
- lisp error cannot be resolved
- typescript - reat error cannot be resolved
- java - error code cannot be resolved
- there are times when copying is done with css and it cannot be solved
- python - error cannot be resolved: 'function' object is not subscriptable
- python - the error cannot be resolved 'float' object is not iterable
- html - cannot read css
- javascripterror cannot be resolved
Related questions
- css : Bootstrap doesn't change block color
- Css code shifted 1 nesting level to the right
- html : How to make a round logo block using bootstrap?
- css : Please tell me how to put the DR.POLNER logo at 990 px and less exactly in the center?
- html : How to remove white space on the right and left after installing bootstrap
- java : Setting image size on bootstrap card
- javascript : Landing page. It is necessary for the menu button to be activated depending on the selection that is open
- html : how to typeset an object that goes beyond the bootstrap grid
- html : how to make an element wider than the columns in bootstrap?
- html : How to position header elements horizontally
I deleted the
written in application.html.erb and it improved.