extern-c
(extern-c)
1
Are the following equivalent? if not, what’s the practical difference between them?
mail(to: '', from: '', subject: '') do |format|
format.text { render plain: 'text' }
format.html { render html: '<html></html>'.html_safe }
end
vs
mail(to: '', from: '', subject: '') do |format|
format.text { 'text' }
format.html { '<html></html>' }
end
It seems that, in this case, render would simply populate options[:body]
which is then added to the responses array @responses << options
.
This is the source code I read: