I don't know if it could be cause by block loosing context problem. There is a ticket for this: http://merb.lighthouseapp.com/projects/7433/tickets/814-block-helpers-lose-context-aka-method_missing-problem
Anyone know? On Feb 19, 1:54 pm, Philippe Rathe <[email protected]> wrote: > The problem is that I use an helper to nest my layouts. > I wonder if there is anyway it can keep the scope. > > def inside_layout(layout, &block) > content = render(capture(&block), :layout => layout) > concat(content, block.binding) > end > > On Feb 19, 12:15 pm, Philippe Rathe <[email protected]> wrote: > > > Wherever I make use of require_js in my views, my js files are not > > included in the head. > > I use include_required_js in my layout, I have no error in my log, > > merb keep silent. > > > IN MY LAYOUT > > ------------------------ > > <%= js_include_tag 'jquery', > > :bundle => :application %> > > > <%= include_required_js %> > > > IN MY VIEWS > > --------------------- > > <% require_js :reports %> > > > I'm using merb merb 1.0.8.1. > > Anybody have success with it? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "merb" 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/merb?hl=en -~----------~----~----~----~------~----~------~--~---
