Update examples

This commit is contained in:
Maiky
2023-04-13 17:29:14 +02:00
parent 820db43945
commit 64cf3adfd4
2 changed files with 2 additions and 0 deletions

View File

@@ -9,6 +9,7 @@ class BadERBController < ActionController::Base
<h2>Hello %s </h2></body></html>
" % name
template = ERB.new(html_text).result(binding)
render inline: html_text
end
end

View File

@@ -9,6 +9,7 @@ class GoodController < ActionController::Base
<h2>Hello <%= name %> </h2></body></html>
"
template = ERB.new(html_text).result(binding)
render inline: html_text
end
end