One way to redirect_to with parameters in rails

There seem to be various cool ways https://blog.kozakana.net/2015/10/redirect_to-with-parameter/

However, this time in my situation (because there was only one parameter)

redirect_url = ENV["HOST"] + "/hoge?h=" +hash value
redirect_to redirect_url

It was enough to generate it as a string. For your reference, if you are worried about something similar.

Recommended Posts

One way to redirect_to with parameters in rails
[How to insert a video in haml with Rails]
How to query Array in jsonb with Rails + postgres
Japaneseize using i18n with Rails
Pass parameters to Rails link_to
[Rails5] japanMap link How to write parameters in js.erb file
Things to keep in mind when using Sidekiq with Rails
[Rails] Easy way to check columns
[Rails] Add strong parameters to devise
How to introduce jQuery in Rails 6
Connect to Rails server with iPhone
How to get along with Rails
Introducing React to Rails with react-rails
How to install Swiper in Rails
[Rails] A simple way to implement a self-introduction function in your profile
How to get boolean value with jQuery in rails simple form
How to rename a model with foreign key constraints in Rails
[Rails] What to do if you can't get parameters with form_with
# 16 policy setting to build bulletin board API with authentication authorization in Rails 6
# 8 seed implementation to build bulletin board API with authentication authorization in Rails 6
How to change app name in rails
How to use custom helpers in rails
[Rails] How to log in with a name by adding a devise name column
[Rails] How to use rails console with docker
How to insert a video in Rails
Deploy to heroku with Docker (Rails 6, MySQL)
How to implement more than one top page in Rails breadcrumb trail
How to use MySQL in Rails tutorial
I wanted to implement a slide show in a fashionable way with slick.
Steps to set a favicon in Rails
[Rails] How to get the user information currently logged in with devise
[rails] How to configure routing in resources
[Ruby on Rails] How to use redirect_to
How to implement ranking functionality in Rails
Introduced # 9 serializer to build bulletin board API with authentication authorization in Rails 6
How to display the text entered in text_area in Rails with line breaks
How to use credentials.yml.enc introduced in Rails 5.2
[Rails] How to apply the CSS used in the main app with Administrate
How to bind request parameters in list format with bean property in Spring
How to build Rails 6 environment with Docker
# 6 show, create implementation to build bulletin board API with authentication authorization in Rails 6
Introduced # 10 devise_token_auth to build a bulletin board API with authentication authorization in Rails 6
[Rails] How to register multiple records in the intermediate table with many-to-many association
For my son who started studying Java with "Introduction to Java" in one hand
Introducing # 15 pundit to build a bulletin board API with authentication authorization in Rails 6
Script to make yaml from CSV to put initial data in Rails with Fixtures
How to store data simultaneously in a model associated with a nested form (Rails 6.0.0)
[Rails] How to operate the helper method used in the main application with Administrate
# 7 update, destroy implementation to build bulletin board API with authentication authorization in Rails 6
Convert to a tag to URL string in Rails
Downgrade an existing app created with rails 5.2.4 to 5.1.6
How to get along with Rails
[Rails] Various ways to write in seed files
[Rails] rails new to create a database with PostgreSQL
How to save to multiple tables with one input
I tried to organize the session in Rails
[Rails] How to use select boxes in Ransack
Tests with @Parameters in Spring 4.3 should have no parameters
How to translate Rails into Japanese in general
How to prevent direct URL typing in Rails
How to separate .scss by controller in Rails