これらは私のアプリケーションで有効なパスです
foo-sample.com/communities/564?search=testingfoo-sample.com/users/484#sectionfoo-sample.com/codes/249
そして彼らはこれらのルーティングによって導かれる可能性があります
show_community_path(@community)show_user_path(@user, :anchor => "section")show_code_path(@code)
current_user(id is 14) がログインしているとき、強制的にこれらにリダイレクトさせたい
foo-sample.com/communities/564?search=testing&que=14foo-sample.com/users/484?user=14#sectionfoo-sample.com/codes/249?user=14
それを可能にする最も賢い方法は何ですか?ビューでは、ログイン時にルーティング パス コードを大文字と小文字を分けて記述する必要がありますか?