The old Rails SSL note in the Styled Bits archive

A 2007 Wayback capture preserves an earlier Styled Bits article about adding SSL to a Rails application. The copy introduces itself as a repost and says it was updated for Rails 1.2. That is the version context for both the code and the examples on the historical page. Read the dated archival copy.

The design question inside the old implementation

The example came from work around a payment flow on AreYouHiring.com. The author selected a controller action and wrote functional tests for it. The preserved text describes trying the action with a secure request and checking the behaviour of its insecure counterpart. The visible purpose was to enforce a requirement at a specific point and then prove that the action behaved as intended.

Use that question on a site you maintain today

List the first place a visitor starts the sensitive task, the address the browser reaches next and what should happen if someone requests the older entry address. In your test installation, follow one old bookmark and one current internal link. Check that both reach the intended encrypted page and that its form submits to the expected protected address. Record the final URL and result for each route. Follow your project’s current framework and hosting guidance for implementation. The old copy remains useful as evidence of an earlier design decision and the tests its author used to check it.

Return to the Styled Bits archive notes.