Before mounting Kebapress to your application, you will need:
- Ruby ~> 2.0
- Rails ~> 4.0
- Cybele ~> 1.0.0
Add the engine to your Gemfile:
gem 'kebapress'
Bundle install:
bundle install
Make the installation:
rails g kebapress:install
Run migrations:
rake db:migrate
Mount the engine under HQ namespace and add extra routes in config/routes.rb file:
namespace :hq do
mount Kebapress::Engine => '/mount_point' # Example: '/blog'
end
get '/blog/:id', to: 'kebapress/posts#show', as: 'pages'
get '/blog', to: 'kebapress/posts#index'
Add blog icon-link to Cybele Rails application's app/views/layouts/hq/partials/_dock.haml file. For an example, checkout example.haml file.
NOTE: If Javascript files don't seem to be loading, please add this line to your host application's layouts/hq/partials/_footer.haml (This is a temporary situation)
= yield :foot
If you discover any bugs or want to drop a line, feel free to create an issue on Github
http://github.com/lab2023/kebapress/issues
Once you've made your great commits:
- Fork it
- Create a topic branch -
git checkout -b my_branch
- Push to your branch -
git push origin my_branch
- Create a Pull Request from your branch
- That's it!
- Kebapress is maintained and funded by lab2023 - information technologies
- Thank you to all the contributors!
- The names and logos for lab2023 are trademarks of lab2023, inc.
Copyright 2014 lab2023 – information technologies