Rails - liquid question pls help

Hi All

I’m having problems with my liquid template to getting work

here is my code

in my view

main.erb I have the liquid content

<%= Liquid::Template.parse(@html_content).render ‘navigation_links’ =>

@navigation_links -> is a hash of all the navigation links, I’m getting
it as

@navigation_links = NavigationLink.all

In my liquid template, I have something like this,

    {% for navigation_link in navigation_links %}
  • {{navigation_link.display_name}}
  • {% endfor %}

BUT when I run the code (it goes 3 times and all 3 times it given the
following error)

Liquid error: undefined method `to_liquid’ for #

Am I doing something wrong or missing something, any help would be
greatly appreciated

thanks in advance