My app works fine when run in development environment. In production (rails server -e production
), the browser can\'t access the css and js files and on the con
The following command works for me locally.
rails server -e production
I got the same error "ActionController::RoutingError (No route matches [GET] "/assets/application.css"" while running "rails s". Even after I precompiled the source, change config precompile true. It still could not load properly.
The option "-e production" made those RoutingError disappear.