I have a url that uses https by default:
url = article_url(@article)
Instead of using https I would like the same url but using http
I have a url that uses https by default:
url = article_url(@article)
Instead of using https I would like the same url but using http
The correct answer I was searching for is: https://apidock.com/rails/ActionController/Base/url_for
url_for(controller: 'articles', action: 'show', id: @article.id, protocol: :http)