Почему при подключение gem kaminari-sinatra на странице пропадает разметка ?
app.rbrequire 'bundler/setup'
Bundler.require
Mongoid.load!(File.expand_path('../mongodb.yml', __FILE__), :development)
configure do
set :public_folder, 'public'
register Kaminari::Helpers::SinatraHelpers
end
class Post
include Mongoid::Document
field :title, type: String
field :description, type: String
end
get '/' do
@posts = Post.page(params[:page]).per(5)
erb :'posts/index'
end
Gemfilegem 'sinatra'
gem 'puma'
gem 'mongoid'
gem 'kaminari-sinatra'
gem 'kaminari-mongoid'
index.erb<h1>All posts</h1>
<% @posts.each do |post| %>
Title: <%= post.title %><br>
Description: <%= post.description %><br>
<% end %>
<%= paginate @posts %>
layout.erb
<html>
<head>
<title>Home page</title>
<link rel="stylesheet" href="/stylesheets/foundation.min.css">
</head>
<body>
<div class="grid-container">
<div class="grid-x">
<div class="cell">
<div class="top-bar">
<div class="top-bar-left">
<ul class="dropdown menu" data-dropdown-menu>
<li><a href="/">Home</a></li>
</ul>
</div>
</div>
</div>
</div>
<div class="grid-x">
<div class="cell"><%= yield %></div>
</div>
</div>
</body>
</html>