Reputation: 4700
i built a small rails application and pushed it to heroku. everything seem to be working fine. except the styling i gave to views through the sepcific file css generated for each controller. in: app/assests/stylesheets for example:
main.css.scss
which has this code in it:
.login_form {max-width:455px;}
is not loading in view in my
main_controller
only application.css is loading what do i need to configure?
thanks
Upvotes: 0
Views: 87
Reputation: 10089
It may be that you need to precompile your assets.
bundle exec rake assets:precompile:all RAILS_GROUPS=assets
Read up on the Rails Guides Asset Pipeline.
That would explain why it worked in development, but the production environment is set to expect to use precompiled assets.
Upvotes: 2