los url helpers necesitan hashes o params
y params.to_h devuelve un hashwithindifferentaccess, lo que rompia las urls con locale
This commit is contained in:
parent
08e0a0ca9d
commit
6349fd7b40
1 changed files with 1 additions and 1 deletions
|
@ -154,7 +154,7 @@ class PostsController < ApplicationController
|
|||
#
|
||||
# @return [Hash]
|
||||
def filter_params
|
||||
@filter_params ||= params.permit(:q, :category, :layout, :page).to_h.select { |_, v| v.present? }
|
||||
@filter_params ||= params.permit(:q, :category, :layout, :page).to_hash.select { |_, v| v.present? }
|
||||
end
|
||||
|
||||
def site
|
||||
|
|
Loading…
Reference in a new issue