merb 1.0 + HAML throw_content trouble

1 view
Skip to first unread message

Angel

unread,
Nov 12, 2008, 3:18:12 PM11/12/08
to merb
having trouble with merb + haml + throw_content + catch_content. Don't
really see what is wrong with this setup:

http://pastie.org/313267

Help?
-angel

Benjamin Yu

unread,
Nov 12, 2008, 3:37:32 PM11/12/08
to me...@googlegroups.com
Disclaimer, I haven't actually run your code... But, off the top of my
head, your catch and throw names are different:

catch_content(:for_js)
throw_content :js do

I believe that they need to be the same.

--
Homepage: http://benjaminyu.org/

Angel

unread,
Nov 12, 2008, 3:56:36 PM11/12/08
to merb
FUCK ME! Well someone make a note to update that section of the
PeepCode PDF

-angel

On Nov 12, 3:37 pm, "Benjamin Yu" <benjamin...@gmail.com> wrote:
> Disclaimer, I haven't actually run your code... But, off the top of my
> head, your catch and throw names are different:
>
> catch_content(:for_js)
> throw_content :js do
>
> I believe that they need to be the same.
>

Carl Lerche

unread,
Nov 12, 2008, 3:59:35 PM11/12/08
to merb
http://merb.lighthouseapp.com/projects/7433/tickets/814-block-helpers-lose-context-aka-method_missing-problem

It's still an open ticket with parts. Parts has been somewhat
neglected (and not included in merb-stack actually). Parts will need a
pretty significant refactor to get it working well.

-carl
Reply all
Reply to author
Forward
0 new messages