railsでwill_paginateをwill_paginate-bootstrapでデザインしようと思っているのですが反映されず下のように表示されます。
原因がわかる方がいればどうすれば良いのか教えてください。
Gemfile
1gem 'bootstrap-sass' 2gem 'will_paginate', '3.1.7' 3gem 'will_paginate-bootstrap'
Gemfile.lock↓
Gemfile.lock
1bootstrap-sass (3.4.1) 2 autoprefixer-rails (>= 5.2.1) 3 sassc (>= 2.0.0) 4 5will_paginate (3.1.7) 6will_paginate-bootstrap (1.0.2) 7 will_paginate (>= 3.0.3)
posts_controller.rb↓
posts_controller.rb
1def index 2 @posts = Post.order(created_at: :desc).paginate(page: params[:page], per_page: 8) 3 end
index.html.erb↓
index.html.erb
1<%= will_paginate @posts, :renderer => BootstrapPagination::Rails %>
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。