Displaying 1 result from an estimated 1 matches for "my_method_that_strips_the_outer_li".
2006 Feb 14
2
Inline list editing with RJS: best practices
...lt;li> elements as the
inner text is replaced, not the entire tag. Has anyone else encountered
this and come up with an elegant solution. I suppose I could strip the
outer <li> elements from the partial only in the RJS call like this:
page.replace_html "item_" + item.id.to_s,
my_method_that_strips_the_outer_li( render :partial => ''item'')
But I have a feeling that there is a much more elegant way to do this.
Ideas?
Thanks,
Zack