I have two controllers
When i submitted a form then a new record was created in ‘api/risk_profiles’ controller and the action name ‘create’.
Now, i want to redirect to ‘admin/risk_profiles’ show action. Because i have upload some API process is there. currently i have used the below codes but it not performed
@risk_profile = RiskProfile.new(risk_profile_params)
**redirect_to api_risk_profiles_url(:id => @risk_profile) **
Rails console result
19:49:48 rails.1 | Redirected to http://localhost:5000/api/risk_profiles?id=304046b8-fd04-4310-b475-636ac60d111a