README.md in pageflow-before-after-0.3.0 vs README.md in pageflow-before-after-0.4.0
- old
+ new
@@ -13,11 +13,11 @@
Register the page type:
# config/initializers/pageflow.rb
Pageflow.configure do |config|
- config.register_page_type(Pageflow::BeforeAfter::PageType.new)
+ config.page_types.register(Pageflow::BeforeAfter.page_type)
end
Include javascripts and stylesheets:
# app/assets/javascripts/pageflow/application.js
@@ -26,9 +26,12 @@
# app/assets/javascripts/pageflow/editor.js
//= require pageflow/before_after/editor
# app/assets/stylesheets/pageflow/application.css.scss
@import "pageflow/before_after";
+
+ # app/assets/stylesheets/pageflow/themes/default.css.scss
+ @import "pageflow/before_after/themes/default";
Execute `bundle install`
Restart the application server.
## Troubleshooting