Ruby LDAP interface

Latest version of rails/ruby and using Ruby-Net-Ldap

I am a little confused on implementing a LDAP authentication mechanism
with rails. I have successfully made a ruby script which will
authenticate with my ldap server but I can’t seem to get it to work
within rails.

Does the authentication definitions aka. ldap.con { :host => xyz,
:method => simple} go into by method or controller?

I can create a view and define my login/password textfield and then
submit those values to a function, but I am not getting any response.

I apologize for the newbish terminology but I am not a season ruby
developer and am still learning? Any hints for pointing my in the right
direction?