Whenever I submit a form rails append a unknown fragment in params in the url. But what is the purpose of that fragment ? and how I can get rid of it? Please refer to following sample URL.
By token I am referring to "#.U3Mw4XKHbFY" in the following URL
Here is URL sample
www.domain.com/posts?utf8=%E2%9C%93&query=surf&area=All+Area#.U3Mw4XKHbFY
<%= form_tag posts_path, method: 'get', class: "search_keywords_form" do %>
<%= text_field_tag :query, nil, class: "search-field", placeholder: "Search Item for swap" %>
<%= hidden_field_tag 'area', "All Area" %>
<input type="submit" class="search-btn" value="" />
<div class="clearfix"></div>
<div class="push"></div>
<% end %>
Another strange thing is when I review the params, I don't get it there. But when page get reloaded That unknown attribute get appended.
params = { "utf8"=>"✓",
"query"=>"surf",
"area"=>"All Area",
"action"=>"index",
"controller"=>"posts"
}