multiple renders

18 views
Skip to first unread message

John Lane

unread,
Dec 13, 2013, 11:35:27 AM12/13/13
to cells-an...@googlegroups.com
I have an event that needs to perform two DOM updates. I have two renders:

replace :state => :display
render :view => 'close_modal'

however only one is effective.

I can get it to work by doing this:

render text: replace(:state => :display) + render(:view => 'close_modal')

Is this correct, or is there a better way?

Nick Sutterer

unread,
Dec 14, 2013, 8:33:34 PM12/14/13
to cells-an...@googlegroups.com
That's exactly how it is designed: the explicit render that actually returns the content is a fundamental concept in Cells and Apotomo.


--
Sie erhalten diese Nachricht, weil Sie Mitglied der Google Groups-Gruppe "Cells and Apotomo" sind.
Um Ihr Abonnement für diese Gruppe zu beenden und keine E-Mails mehr von dieser Gruppe zu erhalten, senden Sie eine E-Mail an cells-and-apot...@googlegroups.com.
Weitere Optionen: https://groups.google.com/groups/opt_out

Reply all
Reply to author
Forward
0 new messages