Skip to content

Commit 49ff1e4

Browse files
committed
Merge pull request activeadmin#750 from apocalyptiq/master
Add notes on precompiling assets
2 parents 223ead4 + 4e191ad commit 49ff1e4

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

README.rdoc

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,19 @@ on Rails 3 application. To install, simply add the following to your Gemfile:
3636
# Gemfile in Rails < 3.1
3737
gem 'activeadmin'
3838

39-
If you are using Rails >= 3.1, you must also have sass-rails and meta_search in your Gemfile:
39+
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):
4040

4141
# Gemfile in Rails >= 3.1
4242
gem 'activeadmin'
4343
gem 'sass-rails'
4444
gem 'meta_search', '>= 1.1.0.pre'
4545

46+
and add activeadmin assets into precompiling by adding the following line into your config/environments/production.rb:
47+
48+
config.assets.precompile += %w[active_admin.css active_admin.js]
49+
50+
There is also some issue with precompiling activeadmin images in Rails 3.1.0, it is fixed in Rails 3.1.1.
51+
4652
After updating your bundle, run the installer
4753

4854
$> rails generate active_admin:install

0 commit comments

Comments
 (0)