---
title: "ActionController::RoutingError (No route matches [GET] \"/javascripts/application"
author: "南京老油条"
date: "2013-12-26T11:09:23Z"
tags: []
categories: ["编程语言"]
slug: "actioncontroller-routingerror-no-route-matches-get-javascripts-application"
draft: false
lastmod: "2013-12-26T11:09:23Z"
id: 1995644
url: "https://oldfritter.iteye.com/blog/1995644"
---

ActionController::RoutingError (No route matches \[GET] "/javascripts/application.js")

的解决方法

```
RAILS_ENV=production bundle exec rake assets:precompile
```

 production.rb中添加

```
config.serve_static_assets = true
```