1) stringify_keys is a method that is called for a hash to convert its keys from characters to strings. It is added by Rails - this is not a standard Ruby method. Here it is in the docs .
{:a => 1, :b => 2}.stringify_keys
2) This means that your code skips "/users/sign_in" somewhere waiting for a hash. A closer look reveals that you are mixing and matching two link_to forms:
# specify link contents as an argument link_to "The text in the link", "/path/to/link", some: "options"
As you can see, you are trying to do both:
<%= link_to "Sign out", destroy_user_session_path, :method => 'delete' do %> <i class=" icon-user icon-black"></i> <% end %>
and Rails expects the second argument in the form of a block to be a hash of parameters, so it calls stringify_keys on it, which causes your error.
Modify these links to look like this:
<%= link_to destroy_user_session_path, :method => 'delete' do %> <i class=" icon-user icon-black"></i> Sign out <% end %>
source share