[Rails] [Markaby] yield instead of @content_for_layout?

Joe Ruby joeat303 at yahoo.com
Tue Aug 8 23:02:48 GMT 2006


We're supposed to use yield instead of @content_for_layout, but I can't 
get yield to work in a Markaby template:

yield

text yield

Either one of these lines results in a 'no block given' error (but 'text 
@content_for_layout' works). Anybody know how to use yield instead?

Thanks,
Joe

-- 
Posted via http://www.ruby-forum.com/.


More information about the Rails mailing list