I replace an outer html as following :
page.insert_html(:after, ''hidden_values'', "<INPUT
TYPE=HIDDEN
id=''new_title'' NAME=''new_title''
VALUE=''#{params[:new_title]}'' />")
but if params[:new_title] string has a single quote like "can''t
get
all the string"
the html is shorten..
what''s the trick to escape the returned string ?
tfyl
kad
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---