Installation:
1.) Install merb-words gem. sudo gem install merb-words
2.) Navigate to your merb application. cd ~/your_merb_app/
3.) Add to your dependencies file. vim config/dependencies.rb a
dependency 'merb-words'
esc : wq
4.) Add options to your init file in the before_app_loads callback. vim config/init.rb a
Merb::BootLoader.before_app_loads do Merb::Slices::config[:title] = 'Words' #Title of the index page and/or tab. end
esc : wq
5.) Add to your router file. vim config/router.rb a
slice(:merb_words)
esc : wq
6.) Start your merb application and browse. http://your_domain/words
Advanced:
List all available tasks:
rake -T slices:merb_words
Put your application-level overrides in:
host-app/slices/merb-words/
Templates are located in this order:
- host-app/slices/merb-words/app/views/*
- gems/merb-words/app/views/*
- host-app/app/views/*