Sir actually kaminari has default views which had first and last and we dont want that so generated views using rails g kaminari:views default -e haml command and it was not supported for bootstrap3 so edited that..