Displaying 3 results from an estimated 3 matches for "templatecontrol".
2006 Mar 08
0
render_to_string() in a controller that isn''t default route?
...onnect '''', :controller
=> "content". The content controller is calling a template controller,
and I would like to be able to call render_to_string() within the
template controller, however I receive the error:
undefined method `render_to_string'' for TemplateController:Class
I''ve tried directly require()''ing the ActionController Base class file
which defines the render_to_string function (not a solution I would want
to use - that was more out of curiousity), and that didn''t work.
Thanks in advance.
--
Posted via http://www.ruby...
2010 Feb 11
1
[PATCH] Provides a reference implementation management server.
...General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+
+"""Fallback controller."""
+
+from ovirtserver.lib.base import BaseController
+
+__all__ = ['TemplateController']
+
+
+class TemplateController(BaseController):
+ """
+ The fallback controller for server.
+
+ By default, the final controller tried to fulfill the request
+ when no other routes match. It may be used to display a template
+ when all else fails, e.g.::
+
+...
2010 Feb 17
0
[PATCH] Provides the new node lifecycle events.
...General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-
-"""Fallback controller."""
-
-from ovirtserver.lib.base import BaseController
-
-__all__ = ['TemplateController']
-
-
-class TemplateController(BaseController):
- """
- The fallback controller for server.
-
- By default, the final controller tried to fulfill the request
- when no other routes match. It may be used to display a template
- when all else fails, e.g.::
-
-...