Skip to content

Fix old-style hash in application.html.erb#8

Open
southwolf wants to merge 1 commit intomackenziechild:masterfrom
southwolf:patch-1
Open

Fix old-style hash in application.html.erb#8
southwolf wants to merge 1 commit intomackenziechild:masterfrom
southwolf:patch-1

Conversation

@southwolf
Copy link

:method => delete is Ruby 1.8 style hash and not recommended today, the new style is like method: delete

`:method => delete` is Ruby 1.8 style hash and not recommended today, the new style is lik `method: delete`
@barbarafux
Copy link

I believe you missed a colon and it should be actually like this:
<%= link_to 'Sign out', destroy_user_session_path, method: :delete %>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants