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
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.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.