ActionController::RoutingError (No route matches [GET] /):
You need to setup a root route in routes.rb
file.
root :to => 'index#index'
Where the first index is the controller name (IndexController) and the second index is the action name in the IndexController.
ActionController::RoutingError: No route matches [GET] /
add this the routes.rb file under the api scope:
get '/', to: proc { [200, {}, ['']] }
ActionController::RoutingError (No route matches [GET] /serviceworker.js):
Going into Chrome's Dev Tools > Application > Clear Storage fixed my issue.
ActionController::RoutingError (No route matches [GET] /assets/javascripts
You need to include these files in application.js manully or just write //= require_tree .
to load all js
Similarly, you have to work for css. Add *= require_tree .
in application.css
.
Related Topics
Argumenterror (Wrong Number of Arguments (Given 2, Expected 1)) After Updating to Ruby 3.0
Changing Http Status Message Using Sinatra
Rake Aborted! Undefined Method 'Migration_Error=' for Activerecord::Base:Class
Tinytds Error: Adaptive Server Connection Timed Out
Exclude Draft Articles from Solr Index with Sunspot
Using Ruby, What Is the Most Efficient Way to Get the Content Type of a Given Url
How to Run Perl and Ruby Scripts as Tasks in Ant
Creating a Gmail Draft with Recipients Through Gmail API
Installing MySQL-2.9.0 Gem on Windows Fails Due to Lack of Libmysql
Word Document.Saveas Ignores Encoding, When Calling Through Ole, from Ruby or Vbs
Rails 4 - Pundit - Scoped Policy for Index
Rugged Gem Installation Issue Possibly with Libgit2 on Windows
How to Make a Ruby Gem Package Copy Files to Arbitrary Locations
Setting a Global Within a Proc