Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add notes about precompiling assets

  • Loading branch information...
commit 4e191ad3aed45e8866c48aea634cd009b70ccae9 1 parent 223ead4
Szymon Przybył authored
Showing with 7 additions and 1 deletion.
  1. +7 −1 README.rdoc
View
8 README.rdoc
@@ -36,13 +36,19 @@ on Rails 3 application. To install, simply add the following to your Gemfile:
# Gemfile in Rails < 3.1
gem 'activeadmin'
-If you are using Rails >= 3.1, you must also have sass-rails and meta_search in your Gemfile:
+If you are using Rails >= 3.1, you must also have sass-rails and meta_search in your Gemfile (if sass-rails is already present in assets group, move it out):
# Gemfile in Rails >= 3.1
gem 'activeadmin'
gem 'sass-rails'
gem 'meta_search', '>= 1.1.0.pre'
+and add activeadmin assets into precompiling by adding the following line into your config/environments/production.rb:
+
+ config.assets.precompile += %w[active_admin.css active_admin.js]
+
+There is also some issue with precompiling activeadmin images in Rails 3.1.0, it is fixed in Rails 3.1.1.
+
After updating your bundle, run the installer
$> rails generate active_admin:install
Please sign in to comment.
Something went wrong with that request. Please try again.