lib/adauth/helpers.rb in adauth-1.0.0 vs lib/adauth/helpers.rb in adauth-1.0.1

- old
+ new

@@ -1,12 +1,19 @@ module Adauth + + # Helper methods for rails module Helpers + + # Creates a form_tag for the adauth form + # + # Sets the html id to "adauth_login" and the form destination to "/adauth" def adauth_form form_tag '/adauth', :id => "adauth_login" do yield.html_safe end end + # Create the default form by calling `adauth_form` and passing a username and password input def default_adauth_form adauth_form do "<p>#{label_tag :username}: #{text_field_tag :username}</p> <p>#{label_tag :password}: \ No newline at end of file