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