I just opened Erubis by replacing the default renderer for Ruby on Rails. However, from what I can say, having read about it, he excels in all directions.
It is much faster. He has many more options.
This can prevent cross-site scripting without using h.
Does it have any flaws compared to the standard erb renderer? Why is this standard rendering not packaged with Rails?
Also, the docs for Erubis say to install it by simply installing gem, and then add the following to environment.rb:
require 'erubis/helpers/rails_helper'
Reading documents, FastEruby seems to be just faster than Eruby. Why will it not be used by default and will not be used by everyone?
I am very interested in using engine erubis :: EscapedEruby, which automatically calls h to remove html across fields from the database. Are there any errors that I should know about, or does this pretty much solve all the scripts on different sites?
ruby-on-rails xss erubis
William jones
source share