回答編集履歴

1

修正

2018/10/13 14:14

投稿

asm
asm

スコア15147

test CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  <% default_img = "default.png" %>
6
6
 
7
- <% on_error = %('this.error=null;this.src="#{default_img}"')
7
+ <% on_error = %('this.onerror=null;this.src="#{default_img}"')
8
8
 
9
9
  <%= img_tag "http://example.com/img.jpg", onerror: on_error %>
10
10