I would say no, if you controller is getting called directly by a request, then it isn't a part, it's a controller. Are you saying you have controllers that get used as a part and as a controller?
Then if A is your controller and B is part controller, you can call it
from A's action,
make it render something and return result back to A, then use it in
your "A view"
the way you want it.
So #3 from your original messages makes sense unless you have really many
actions in controller that proxies to parts.
--
MK
So #3 from your original messages makes sense unless you have really many
actions in controller that proxies to parts.
Julian.
Cheers-
-Ezra
- Ezra Zygmuntowicz
-- Founder & Software Architect
-- ez...@engineyard.com
-- EngineYard.com
So you have to make a tradeoff, is what you
want an embeddable Part? Or do you want a slice that can be routed to?
Merb controllers just return strings, so therefore their results
(rendered views) can be embedded just fine... no?
Julian.
You've described slices, as far as I can see.
Merb controllers just return strings, so therefore their results
(rendered views) can be embedded just fine... no?
For some reason I thought you could have a part simply be the result
of a called controller's action... The way I originally thought Rails
worked hehe.
Maybe I'm deluded.
Would that be a workable solution?
- Matt