-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Despite this being a good move the implementation breaks because of the close ties to Rails' parameter names. We have to do a lot of juggling of params to make them flexible enough to accept either a name and href, a href and block, a name and Rails action/controller via options etc. Adding a named param `new_tab` results in the unenclosed options/extra_options hash being interpreted as a named param, meaning users of this library would need to go through their app and make changes like this: Before: = link_to("some page", "/some/path", class: "thing") After: = link_to("some page", "/some/path", { class: "thing" }) Otherwise, class is treated as a named arg rather than being the options hash.
- Loading branch information
1 parent
84937d4
commit 28eafec
Showing
3 changed files
with
8 additions
and
125 deletions.
There are no files selected for viewing
This file contains 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 characters
This file contains 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 characters
This file contains 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 characters