<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>lib/url_rewriter.rb</filename>
    </added>
    <added>
      <filename>test/url_rewriter_test.rb</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -51,11 +51,28 @@ end
 You are able to turn disable ssl redirects by adding the following environment configuration file:
   SslRequirement.disable_ssl_check = true
   
-This plugin also adds a helper called secure_for_tag. The syntax is exactly the same as form_tag except
-it will post to the https version of the url if SslRequirement.disable_ssl_check? returns false. Here is
-an example:
+P.S.: Beware when you include the SslRequirement module. At the time of
+inclusion, it'll add the before_filter that validates the declarations. Some
+times you'll want to run other before_filters before that. They should then be
+declared ahead of including this module.
+  
+SSL URL Helper
+==============
+This plugin also adds a helper a :secure option to url_for and named_routes. This property
+allows you to set a url as secure or not secure. It uses the disable_ssl_check to determine
+if the option should be ignored or not so you can develop as normal.
+
+Here is an example of creating a secure url:
+
+&lt;%= url_for(:controller =&gt; &quot;c&quot;, :action =&gt; &quot;a&quot;, :secure =&gt; true) %&gt;
+
+If disable_ssl_check returns false url_for will return the following:
 
-&lt;% secure_form_tag session_path, :class =&gt; 'home_login' do -%&gt;
+https://yoursite.com/c/a
+
+Furthermore, you can use the secure option in a named route to create a secure form as follows:
+
+&lt;% form_tag session_path(:secure =&gt; true), :class =&gt; 'home_login' do -%&gt;
   &lt;p&gt;
     &lt;label for=&quot;name&quot;&gt;Email&lt;/label&gt;
     &lt;%= text_field_tag 'email', '', :class =&gt; 'text', :tabindex =&gt; 1 %&gt;
@@ -69,9 +86,4 @@ an example:
   &lt;/p&gt;
 &lt;% end -%&gt;
 
-P.S.: Beware when you include the SslRequirement module. At the time of
-inclusion, it'll add the before_filter that validates the declarations. Some
-times you'll want to run other before_filters before that. They should then be
-declared ahead of including this module.
-
 Copyright (c) 2005 David Heinemeier Hansson, released under the MIT license</diff>
      <filename>README</filename>
    </modified>
    <modified>
      <diff>@@ -1,4 +1,4 @@
-require 'form_tag_helper'
+require &quot;#{File.dirname(__FILE__)}/url_rewriter&quot;
 
 # Copyright (c) 2005 David Heinemeier Hansson
 #</diff>
      <filename>lib/ssl_requirement.rb</filename>
    </modified>
  </modified>
  <removed type="array">
    <removed>
      <filename>lib/form_tag_helper.rb</filename>
    </removed>
  </removed>
  <parents type="array">
    <parent>
      <id>508a22cc59ce50ae3d87ff0d13987b6339122143</id>
    </parent>
  </parents>
  <author>
    <name>Ben Curren</name>
    <email>ben@esomnie.com</email>
  </author>
  <url>http://github.com/technicalpickles/ssl_requirement/commit/bba90179b7ca78cd7178c1ba4d6193cd114a160b</url>
  <id>bba90179b7ca78cd7178c1ba4d6193cd114a160b</id>
  <committed-date>2008-11-03T21:22:11-08:00</committed-date>
  <authored-date>2008-11-03T21:22:11-08:00</authored-date>
  <message>Removed secure_form_tag and added secure as an option to url_for and named_routes. This options will take into account whether or not ssl is disable in the current environment. See the README for more info and examples.</message>
  <tree>1a8b0f703b2fb24622a8e5e0edaae28f83d86be0</tree>
  <committer>
    <name>Ben Curren</name>
    <email>ben@esomnie.com</email>
  </committer>
</commit>
