spree/spree — Issue #754: admin/address_states.js isn't precompiled
Author: luigi-sk
Created: 2011-11-12 12:50:51+00:00
State: open

This error return when I go to order -> customer details

```
Started GET "/admin/orders/R056178288/user" for 89.173.150.167 at 2011-11-12 13:42:41 +0100
Processing by Admin::OrdersController#user as HTML
Parameters: {"id"=>"R056178288"}
Rendered /usr/home/spisakriding/app/shared/bundle/ruby/1.9.1/bundler/gems/spree-54ac9f4bf563/core/app/views/admin/shared/_order_tabs.html.erb (6.7ms)
Rendered /usr/home/spisakriding/app/shared/bundle/ruby/1.9.1/bundler/gems/spree-54ac9f4bf563/core/app/views/shared/_error_messages.html.erb (0.1ms)
Rendered /usr/home/spisakriding/app/shared/bundle/ruby/1.9.1/bundler/gems/spree-54ac9f4bf563/core/app/views/admin/shared/_address_form.html.erb (33.0ms)
Rendered /usr/home/spisakriding/app/shared/bundle/ruby/1.9.1/bundler/gems/spree-54ac9f4bf563/core/app/views/admin/shared/_address_form.html.erb (20.4ms)
Rendered /usr/home/spisakriding/app/shared/bundle/ruby/1.9.1/bundler/gems/spree-54ac9f4bf563/core/app/views/admin/orders/_user_form.html.erb (68.4ms)
Rendered /usr/home/spisakriding/app/shared/bundle/ruby/1.9.1/bundler/gems/spree-54ac9f4bf563/core/app/views/admin/orders/user.html.erb within layouts/admin (82.6ms)
Completed 500 Internal Server Error in 223ms

ActionView::Template::Error (admin/address_states.js isn't precompiled):
43:

44:
45: <% content_for :head do %>
46: <%= javascript_include_tag '/states.js', 'admin/address_states.js' %>
47: <% end %>

```

I fix it with adding assets.precompile in config/application.rb.

config.assets.precompile += ['admin/address_states.js']