lib/ramaze/helper/auth.rb in ramaze-0.3.5 vs lib/ramaze/helper/auth.rb in ramaze-0.3.9

- old
+ new

@@ -6,13 +6,14 @@ module Ramaze # A simple way to do authentication. Please have a look at the docs for the # check_auth method for detailed information - module AuthHelper + module Helper::Auth + Helper::LOOKUP << self - # add AspectHelper and StackHelper on inclusion of AuthHelper + # add Helper::Aspect and Helper::Stack on inclusion of Helper::Auth def self.included(klass) klass.send(:helper, :aspect, :stack) end @@ -35,10 +36,10 @@ open_element = "<#{AUTH_ELEMENT}>" close_element = "</#{AUTH_ELEMENT}>" end %{ #{open_element} - <form method="POST" action="#{Rs(:login)}>" + <form method="POST" action="#{Rs(:login)}"> <ul style="list-style:none;"> <li>Username: <input type="text" name="username" /></li> <li>Password: <input type="password" name="password" /></li> <li><input type="submit" /></li> </ul>