# Rails - liquid question pls help

**URL:** <https://www.ruby-forum.com/t/rails-liquid-question-pls-help/179909>\
**Category:** Rails\
**Created:** [December 7, 2009, 10:31pm UTC](https://www.ruby-forum.com/t/rails-liquid-question-pls-help/179909 "2009-12-07T22:31:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sameera](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/b487fb/32.png) [@sameera](https://www.ruby-forum.com/u/sameera)\
**Post date:** [December 7, 2009, 10:31pm UTC](https://www.ruby-forum.com/t/rails-liquid-question-pls-help/179909/1 "2009-12-07T22:31:50Z")

</div>

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%\>

@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

cheers,  
Sameera
