Ruby on Rails
Thursday, October 27, 2016
I meant how to change or customise a radio button label text so that to be able to display Math and chemistry formulas using
and
tags.
On Wednesday, 26 October 2016 12:45:48 UTC+2, Serguei Cambour wrote:
-- <sub>
and
<sup>
tags.
On Wednesday, 26 October 2016 12:45:48 UTC+2, Serguei Cambour wrote:
How is it possible to call sanitize on the below collection_radio_buttons method:
= f.collection_radio_buttons :answer_ids, @question.answers, :idI tried as follows and it failed:
= f.collection_radio_buttons :answer_ids, @question.answers, :id, sanitize(:text, tags: %w(sub sup))
Any idea? Thank you.
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/399b66ee-6282-4816-af13-8a188ebd733d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment