Forum: Ruby on Rails replace_html with action template

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
dimi3 (Guest)
on 2009-02-22 21:28
(Received via mailing list)
Hello All,

I am trying to replace_html with an action template, not a partial.
Currently I don't know how do it, I've renamed all my action to have _
in their names and I don't like this approach.

I've tried render :update do |page|; page.replace_html
'content', :action => 'edit'; end and it won't work.

Felix (Guest)
on 2009-02-23 10:31
(Received via mailing list)
Didn't test if it works, but did you try

render :template => "your_template" ?
This topic is locked and can not be replied to.