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[:merb_words][: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. 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:

  1. host-app/slices/merb-words/app/views/*

  2. gems/merb-words/app/views/*

  3. host-app/app/views/*