ruby on rails - Using bootstrap for administrative backend in RefineryCms -
i want use bootstrap edition pages.
i had installed gems using bootstrap , work pretty site pages.
gem 'refinerycms-bootstrap'
gem 'bootstrap-sass'
but when try of use bootstraps classes backend edit form... not included.
how can include bootstrap backend pages?
thanks
i did it.
open file
config/initializers/refinery/core.rb
uncomment lines
# register javascript backend
config.register_javascript "custom"
# register stylesheet backend (optional options)
config.register_stylesheet "custom", :media => 'screen'
then go path vendor/assets/stylesheets , created file custom.css.scss , path vendor/assets/javascripts created file custom.js
custom.css.scss
@import "bootstrap"; custom.js
//= require bootstrap then created file config/initializers/assets.rb content
rails.application.config.assets.precompile += %w( custom.css ) rails.application.config.assets.precompile += %w( custom.js ) restart rails server
now must fix visual issues.
Comments
Post a Comment