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
1 changed files with 2 additions and 2 deletions

View File

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