If you ever need to login to trac using Ruby, and don’t know how to input your username and password, it’s simple: use the basic_auth method like :
mech.basic_auth(user,password)
mech.get(link_to_trac)
Advertisements
If you ever need to login to trac using Ruby, and don’t know how to input your username and password, it’s simple: use the basic_auth method like :
mech.basic_auth(user,password)
mech.get(link_to_trac)
0 Responses to “trac login with mechanize”