On Tue, Jun 23, 2009 at 1:18 PM, Doug <dgoldi
...@gmail.com> wrote:
> I see there is also a render_with_haml method
> this produces the same results as above.
> If used with :template, no error, but no content.
> Otherwise error looking for "_" prefix.
> hmmmmm....
> On Jun 23, 12:57 pm, Doug <dgoldi...@gmail.com> wrote:
> > right....I mean't to do this...
> > render :template => "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 am, Bradley Grzesiak <listro...@gmail.com> wrote:
> > > Because it is a subtemplate - or partial - you need a leading
> > > 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"
> > > > = render "user_session/new.html"
> > > > = 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,