def authenticateAdmin
    authenticate_or_request_with_http_basic do |name, password|
      ["admin", "slt"].include?(name) and ["admin", 
"slt"].include?(password)
    end
  end

Or the other way to interpret what you just said. Makes more sense :P
-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to