Invoking "render" from inside a Comatose Drop

1 view
Skip to first unread message

Ryan Daigle

unread,
Aug 19, 2009, 1:39:40 PM8/19/09
to Comatose Plugin
I'm trying to create a Comatose Drop which will return the result of
rendering a partial. It looks something like this:

<pre><code>
Comatose.define_drop 'contact' do
def form
render :partial => 'emails/new', :locals => { :email =>
Email.new }
end
end
</code></pre>

However, "render" is not available from within a drop. Is there a
known approach for this type of need, or have I approached the problem
incorrectly?

-Ryan
Reply all
Reply to author
Forward
0 new messages