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 <[email protected]> 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 <[email protected]> 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,
>
>
--~--~---------~--~----~------------~-------~--~----~
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