Yay! I will be doing an e-commerce project soon, and I love hearing
other people doing so, too – the more the merrier (and the more people
to share ideas with).
In production, I’d like the URLs that go through the check-out process to
change - they need to be https intead of http.
The catch is that in development, I’d rather not have to setup SSL to be
able to flow through the app.
Honestly, I’d probably set my development server to use SSL so I can see
any weird SSL related issues while developing.
However, an easy way I can think of to do what you’re asking would be to
put in a replacement for url_for in your application_helper.rb. This
would be the same as the current one, except that it would check to see
if RAILS_ENV == “development”. If so, and if :protocol => “https://”,
then you’d change it to “http://”.
Jen
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.