This is a feature we'd have to add via a public API, but not a particularly
difficult one to add; we'll discuss it and see what makes sense.
-- Yehuda

On Mon, Oct 6, 2008 at 10:36 PM, Hubert Łępicki <[EMAIL PROTECTED]>wrote:

> Hi,
>
> yes, it is different controller - which is a bit of problem, as it
> needs to have request, params generated for it etc.
>
> I found out so far that I could use partials for initial rendering of
> all components of my page, and then use "proxy" controllers that would
> forward requests to parts. But it's another level of complexity which
> I am not sure I want to deal with.
>
> Any ideas, please?
>
> H.
>
> W dniu 7 października 2008 02:00 użytkownik Yehuda Katz
> <[EMAIL PROTECTED]> napisał:
> > Is there a reason you couldn't simply call the method in question? Or is
> it
> > in a different controller?
> > -- Yehuda
> >
> > On Mon, Oct 6, 2008 at 11:52 AM, Hubert Łępicki <
> [EMAIL PROTECTED]>
> > wrote:
> >>
> >> Hi all,
> >>
> >> I am missing one method that is available for Rails and I cannot find
> >> in Merb - "render_component".
> >>
> >> I am not using components in Rails, but I like to use it to render
> >> multiple controllers on one page, that get then updated separately via
> >> Ajax calls.
> >>
> >> However, I can't find easy way to do so in Merb. Parts are not enough
> >> for me - as I need to fall back to standard "full-page" actions when
> >> users don't have javascript etc.
> >>
> >> I found out that it's quite easy to write "render_component"-like
> >> function using code from merb-core gem, file: merb-core-0.9.7/lib/merb-
> >> core/test/helpers/request_helper.rb, especially helpful is
> >> "dispatch_to" method and some subroutines it's using.
> >>
> >> But I wonder if there is off-the-shelf feature I can use instead?
> >>
> >> Another great feature would be to just use:
> >>
> >> PostsController.new(self).show(45)
> >>
> >> in combination with merb-action-args, but it looks like I still need
> >> to set up "fake" environment for controller to access stuff like
> >> params hash, request etc.
> >>
> >> Any ideas welcome.
> >>
> >> Best,
> >> H.
> >>
> >
> >
> >
> > --
> > Yehuda Katz
> > Developer | Engine Yard
> > (ph) 718.877.1325
> >
> > >
> >
>
>
>
> --
> Pozdrawiam,
> Hubert Łępicki
>  -----------------------------------------------
> [ http://hubertlepicki.com ]
>
> >
>


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