Not sure why that wouldn't work as is. But, you can get much the same results by having your yield section be a parameter and then just override it in the page call.
On Feb 27, 1:38 am, meceo <[email protected]> wrote: > Hi > I was wondering how to use content_for method to pass block with js to > layout, but I can't. > All I got is "no block given" error > > my code is: > (in layouts.dryml) > > <%= yield :js %> > > (in view, exp: edit.dryml) > > <% content_for :js do %> > <%= javascript_include_tag :defaults %> > <% end %> > > when I try to do it without dryml (erb) then it works > > Is there any chance to get it works for dryml? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Hobo Users" 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/hobousers?hl=en -~----------~----~----~----~------~----~------~--~---
