1

My Active Admin Layout Not Comes in Production Environment.

I added in Gemfile

gem 'activeadmin', github: 'gregbell/active_admin'

See My Active Admin Page enter image description here

Help me Please.

Thanks In Advance

Dipak Panchal
  • 5,996
  • 4
  • 32
  • 68

1 Answers1

0

Im using Rails 4 and after running the server in RAILS_ENV=production i would get the same layout as you did, although it works in the development environment. after searching in the web for different answers that one that work for me was the next. Heroku does NOT compile files under assets pipelines in Rails 4 i find the answer here.

add rails_12factor to your gemfile

gem 'rails_12factor', group: :production

then

bundle install

and then restart your server

i did some modifications to config/application.rb file but it never worked for me (somthing to do with precompile assets) therefor i dont think it's necessary.

hope it helps

Community
  • 1
  • 1