rails redirect_to with params
def some_action
# Some logic to determine the value of params[:some_param]
if some_condition
redirect_to action_path(params[:some_param])
else
redirect_to another_action_path
end
end
def some_action
# Some logic to determine the value of params[:some_param]
if some_condition
redirect_to action_path(params[:some_param])
else
redirect_to another_action_path
end
end