How do I render just a string / call an engine manually?

3 views
Skip to first unread message

Ben

unread,
Nov 13, 2009, 8:40:48 PM11/13/09
to Ramaze
I'm trying to feed a regular string through an engine, independent of
the action, etc. I looked at the render helper, and tried to figure
out how it all fits together.

I've only produced the hackish (and slightly broken for my purposes)
code:

View::Etanni.call(action, string).first

What's a clean/standard way of rendering a string without having a
template or an action associated with it?

Thanks :)

Ben

Nick Robinson-Wall

unread,
Nov 14, 2009, 4:21:43 PM11/14/09
to ram...@googlegroups.com
Hi Ben,

You should just be able to
respond yourstring
(or)
respond(yourstring, 200)

--Nick

Reply all
Reply to author
Forward
0 new messages