Haml doesn't handle finding templates - that's all left up to Rails. I think this is likely a Rails issue.
On Tue, Jun 23, 2009 at 1:18 PM, Doug <[email protected]> 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 <[email protected]> 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 <[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 -~----------~----~----~----~------~----~------~--~---
