Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Message from discussion how to render a haml subtemplate

View parsed - Show only message text

MIME-Version: 1.0
Received: by 10.100.42.4 with SMTP id p4mr116582anp.2.1245787039326; Tue, 23 
	Jun 2009 12:57:19 -0700 (PDT)
Date: Tue, 23 Jun 2009 12:57:19 -0700 (PDT)
In-Reply-To: <7B6BFF0E-6AC4-4EBF-8D70-715AB4857B25@gmail.com>
X-IP: 76.220.205.243
References: <5dbbd997-dd6a-4d3f-9a94-f0836340edee@d38g2000prn.googlegroups.com> 
	<7B6BFF0E-6AC4-4EBF-8D70-715AB4857B25@gmail.com>
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.11) 
	Gecko/2009060215 Firefox/3.0.11,gzip(gfe),gzip(gfe)
Message-ID: <80819194-e9da-4df1-ab01-0cbad74550c7@z20g2000prh.googlegroups.com>
Subject: Re: how to render a haml subtemplate
From: Doug <dgoldi...@gmail.com>
To: Haml <haml@googlegroups.com>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

right....I mean't to do this...

render :template =3D> "user_session/new"

but this doesn't work: the page renders but there is no content from
the subtemplate.

and, there's no errors.????

thanks.




On Jun 23, 5:24=A0am, Bradley Grzesiak <listro...@gmail.com> wrote:
> Because it is a subtemplate - or partial - you need a leading =A0
> underscore on its filename.
>
> :brad
>
> On Jun 23, 2009, at 0:50, Doug <dgoldi...@gmail.com> wrote:
>
>
>
> > I just tried to use a subtemplate to render the login view my main
> > page.
> > ...both the subtemplate and the current template are haml.
>
> > render "user_session/new"
> > =3D render "user_session/new.html"
> > =3D render "user_session/new.html.haml"
>
> > I tried all three; it couldn't find any of them.
> > ex:
> > Missing template user_session/_new.html.haml in view path app/views
>
> > What am I doing wrong?
> > ...I'm sure it's silly.
>
> > thanks,
>

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google