Displaying 1 result from an estimated 1 matches for "front_sid".
Did you mean:
front_id
2006 Mar 15
4
RJS template eating encoding
...ese characters in.
The problem is that when I switched this over to an RJS template it
started eating the encoding. I now get garbage characters where before
I got the correct ones.
The code for the RHTML:
<%= update_element_function(
"front", :content => simple_format( h(@card.front_side))) %>
<%= update_element_function(
"back", :content => simple_format( h(@card.back_side))) %>
and for RJS:
page.replace_html ''front'', simple_format( h( @card.front_side ) )
page.replace_html ''back'', simple_format( h( @card.back_side ) )...