Forum: Ruby on Rails replace_html with action template

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
D7f6938c0c70f7ec7d8c5aa74cef0456?d=identicon&s=25 dimi3 (Guest)
on 2009-02-22 20: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.

Regards,
dimi3
Ea52242ae25d195415cd9ef31db72aeb?d=identicon&s=25 Felix (Guest)
on 2009-02-23 09: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.