That,
And the extra newline was causing the error.
Just for future reference = case should not have a blank line before
it

On Jun 3, 5:14 pm, Chris Eppstein <[email protected]> wrote:
> try:
>
> - case @controller.controller_name
>
> instead of =.
>
>
>
> On Thu, Jun 3, 2010 at 4:18 AM, rubytastic <[email protected]> wrote:
> > Below application.html.haml gives me
> > From the Haml reference my code should appear to be correct except
> > there was no else statement example in the haml reference
> > so not shure about that part.
>
> > I really dont see it anyone knows how to fix this?
>
> > application.html.haml:35: syntax error, unexpected kENSURE, expecting
> > $end
>
> > = render :partial => 'shared/layout_head'
> > = render :partial => 'shared/layout_header'
> > = render :partial => 'shared/nav/nav_content'
>
> > #container_content
> >  #content
> >    = render :partial => "shared/messages"
> >    = @content_for_layout
>
> >    = case @controller.controller_name
> >      - when "base"
> >        = render :partial => "shared/sidebar/sidebar_frontpage"
> >      - when "forums"
> >        = render :partial => "shared/sidebar/sidebar_forums"
> >      - when "events"
> >        = render :partial => "shared/sidebar/sidebar_events"
> >      - when "pages"
> >        = render :partial => "shared/sidebar/sidebar_pages"
> >      - when "users"
> >        = render :partial => "shared/sidebar/sidebar_users"
> >      - when "photos"
> >        = render :partial => "shared/sidebar/sidebar_photos"
> >      - when "videos"
> >        = render :partial => "shared/sidebar/sidebar_videos"
> >      - when "posts"
> >        = render :partial => "shared/sidebar/sidebar_article"
> >      - else
> >        = render :partial => "shared/sidebar/sidebar_pages"
>
> >  #sidebar
> >    = yield :sidebar
>
> > = render :partial => 'shared/layout_footer'
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Haml" group.
> > To post to this group, send email to [email protected].
> > To unsubscribe from this group, send email to
> > [email protected] <haml%[email protected]>.
> > For more options, visit this group at
> >http://groups.google.com/group/haml?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Haml" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to [email protected].
For more options, visit this group at http://groups.google.com/group/haml?hl=en.

Reply via email to