Installation:

1.) Install merb-search gem. sudo gem install merb-search

2.) Navigate to your merb application. cd ~/your_merb_app/

3.) Add to your dependencies file. vim config/dependencies.rb a

dependency ‘merb-search’

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

boss.appid = 'Bossdemo'

end

esc : wq

5.) Add to your router file. vim config/router.rb a

slice(:merb_search)

esc : wq

6.) Start your merb application and search. your_domain/search


Advanced:

# List all available tasks: rake -T slices:merb_photos

# Put your application-level overrides in: host-app/slices/merb-search/

# Templates are located in this order:

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

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

  3. host-app/app/views/*