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:
parent
d5025f15d8
commit
1376f4cab1
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue