1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

no need to pass an empty block to button_to helper

This commit is contained in:
Sergey Nartimov 2012-05-30 23:02:26 +03:00
parent d5025f15d8
commit 1376f4cab1

View file

@ -9,7 +9,7 @@ module RequestForgeryProtectionActions
end end
def show_button def show_button
render :inline => "<%= button_to('New', '/') {} %>" render :inline => "<%= button_to('New', '/') %>"
end end
def external_form def external_form
@ -79,7 +79,7 @@ class FreeCookieController < RequestForgeryProtectionController
end end
def show_button def show_button
render :inline => "<%= button_to('New', '/') {} %>" render :inline => "<%= button_to('New', '/') %>"
end end
end end