Hi Guys,
I’m more a PHP Developer but inherited a small middleman project. Everything works pretty well and I’ve managed to add a few changes to the templates without too much fuss.
However one thing keeps popping up. I have a pretty straightforward second level navigation that just lists the siblings of the current page with links:
`
- <%= link_to resource.data.title, resource %> <% end %>
<% current_page.siblings.each do |resource| %>
`
- <%= link_to resource.data.title, resource %> <% end %>
<% current_page.siblings.order_by(:weight).each do |resource| %>
However this errors out and I’m kinda stuck here. Most solutions I found online seem overly complicated to me. Is there some simple way of solving this issue?