Hi All,
I have been trying to get my following code working for almost 4 days
and glad if you could help me.
Basically what I want to do is to use liquid ''include'' tag
I''m getting this error
Liquid error: No such template ''test''
my code is as follows
in my app/views/page/index.erb
<%
file_system = Liquid::LocalFileSystem.new("/page/")
full_file_path = file_system.full_path("test")
Liquid::Template.file_system Liquid::LocalFileSystem.new(full_file_path)
%>
<%@template = Liquid::Template.parse(@page) %>
<%= raw @template.render(@liquid_snippets) %>
So let me explain above code,
I have a liquid partial at /app/views/page/_test.liquid
@page contains the code from the database and it includes the following
tag
{% include ''test'' %}
@liquid_snippets is a hash map which has other liquid variables Ex :
''name'' => ''jhon''
I''m using rails 3.0.0
Liquid 2.2.2
and on ubuntu
What am I missing here, can any one help please, thanks in advance
cheers
sameera
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.