Ruby on Rails Friday, October 28, 2016

Yes, Rod, thank you for the idea. I knew that, it would work. I don't want to mess the View stuff with the the Model ones. The input will be done by admins only (back office), so this kind of GUI will have no danger and will make it possibe for them to encode formulas and a final user will see the desired result as needed.

Regards

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, :id



I 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/38211e72-23b2-482b-b223-337d4282bf53%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment