Hi,
I’m trying to render a collection of objects, and use an inline spacer
template to separate them:
render :partial => “tag”, :collection => @tags, :spacer_template =>
{ :inline => " " }
(I just want to seperate them with a space for now.)
But I get the following error:
No rhtml, rxml, rjs or delegate template found for post/_inline
If I try this:
render :partial => “tag”, :collection => @tags, :spacer_template =>
{ :inline => “<%= ’ ’ -%>” }
I get the following error:
compile error
script/…/config/…/app/views/post/about.rhtml:48: parse error,
unexpected $undefined., expecting ‘}’
render :partial => “tag”, :collection => @tags, :spacer_template =>
{ :inline => “<%= ’ ’ ).to_s); _erbout.concat “” }\n”
^
script/…/config/…/app/views/post/about.rhtml:60: parse error,
unexpected $, expecting ‘)’
I’m baffled. What am I doing wrong?
Thanks,
Brad
Bradley M.