watermarkchurch / wcc-contentful

An alternative to Contentful's contentful.rb ruby client, contentful_model, and contentful_rails gems all in one.
MIT License
2 stars 1 forks source link

86 section partial #102

Closed gburgett closed 6 years ago

gburgett commented 6 years ago
mount WCC::Contentful::App::Engine, at: '/'  # replaces get '/*slug', to: 'pages#show'
<% @page.sections&.each_with_index do |section, index|
  next if section.nil?
  %>
  <%= render("components/section",
    section_prefixes: "sections-v2",  # where to look in the app's view directory before falling back to the gem
    section: section,
    index: index) %>
<% end %>

fixes #86

coveralls commented 6 years ago

Pull Request Test Coverage Report for Build 467


Totals Coverage Status
Change from base Build 464: 0.2%
Covered Lines: 3320
Relevant Lines: 3478

💛 - Coveralls