Created
September 7, 2015 08:42
-
-
Save gamov/4e3368c17d5164dec3ce to your computer and use it in GitHub Desktop.
Revisions
-
gamov created this gist
Sep 7, 2015 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,5 @@ # Problem: block_given always retruns true, either I call the partial with or without a block... - if block_given? #hidden_deletion_element= yield - else = link_to(deletion_path, method: :delete, confirm: 'Are you sure?', id: :hidden_deletion_element) { "Delete Me"}