I can't reproduce this. What are the exact pages that you're using (or,
preferably, the smallest pages you can find that still have this error)?
What output are you expecting, and what are you getting instead?
- Nathan
[EMAIL PROTECTED] wrote:
> Hello All,
> I just started using HAML (and I'm loving it already!), but I ran into
> a strange problem.
>
> >From my top .rthml page, I do the following:
>
> <%= render :partial => 'trip_name', :locals => {:trip => @trip } %>
>
> Inside the _trip_name.haml partial, I use the trip in every possible
> way.
> However, later in the top .rthml page, @trip is used again, but Rail
> apparently @trip has been replaced by a String?!
>
> When I rename the local variable in the haml partial to 'tri' instead
> of 'trip' and call it like this:
> <%= render :partial => 'trip_name', :locals => {:tri => @trip } %>
>
> The page works just fine.
>
> I looks like that haml partial has somehow trampled on the @trip.
> This happens even if the .haml partial is entirely empty. An
> equivalent partial in .rhtml that does exactly the same thing works
> fine, so this definitely seems haml specific.
>
> I'm using 1.5.2.
>
> Thanks,
> Tom
>
>
> >
>
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---