Bradley Mazurek
2006-Oct-09 11:59 UTC
Error with inline spacer templates when rendering collections...
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 Mazurek --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---