Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
how to render a haml subtemplate
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  5 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Doug  
View profile  
 More options Jun 23, 1:50 am
From: Doug <dgoldi...@gmail.com>
Date: Mon, 22 Jun 2009 22:50:28 -0700 (PDT)
Local: Tues, Jun 23 2009 1:50 am
Subject: how to render a haml subtemplate
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,


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Bradley Grzesiak  
View profile  
 More options Jun 23, 8:24 am
From: Bradley Grzesiak <listro...@gmail.com>
Date: Tue, 23 Jun 2009 07:24:30 -0500
Local: Tues, Jun 23 2009 8:24 am
Subject: Re: [haml] how to render a haml subtemplate
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:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Doug  
View profile  
 More options Jun 23, 3:57 pm
From: Doug <dgoldi...@gmail.com>
Date: Tue, 23 Jun 2009 12:57:19 -0700 (PDT)
Local: Tues, Jun 23 2009 3:57 pm
Subject: Re: how to render a haml subtemplate
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:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Doug  
View profile  
 More options Jun 23, 4:18 pm
From: Doug <dgoldi...@gmail.com>
Date: Tue, 23 Jun 2009 13:18:51 -0700 (PDT)
Local: Tues, Jun 23 2009 4:18 pm
Subject: Re: how to render a haml subtemplate
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:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Nathan Weizenbaum  
View profile  
 More options Jun 23, 11:50 pm
From: Nathan Weizenbaum <nex...@gmail.com>
Date: Tue, 23 Jun 2009 20:50:25 -0700
Local: Tues, Jun 23 2009 11:50 pm
Subject: Re: [haml] Re: how to render a haml subtemplate

Haml doesn't handle finding templates - that's all left up to Rails. I think
this is likely a Rails issue.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

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