The web controller is available as @web_controller so you can do
@web_controller.throw_content :inline_js, and even wrap it up as a method:
def throw_content(*args, &blk)
  @web_controller.throw_content(*args, &blk)
end

-- Yehuda

On Thu, Sep 18, 2008 at 1:16 PM, zaed <[EMAIL PROTECTED]> wrote:

>
> Hello all,
>
> I've placed the include_required_js way at the end of my
> applications.html file. Right below it I put catch_content :inline_js
> to ensure that all inline js I put on a page is put after all the js
> files have been loaded. I then wrap all my inline js with
> throw_content :inline_js do....
>
> It works fine in all pages, except for parts which don't quite throw
> the content far enough :)
>
> Could someone please explain why that happens (I'd love to understand
> how parts work) and how to fix it, if possible, or a viable work
> around?
>
> Thanks!
> >
>


-- 
Yehuda Katz
Developer | Engine Yard
(ph) 718.877.1325

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to