问题 I'm trying to use Mechanize to login and crawl a site. For some reason, I can't seem to get the login function to work. Any ideas? This is my code: require 'nokogiri' require 'open-uri' require 'mechanize' a = Mechanize.new a.get('https://jackthreads.com/') form = a.page.form_with(:class => 'jt-form') form.field_with(:name => "email").value = "email" form.field_with(:name => "password21").value = "password" page = a.submit(form, form.buttons.first) 回答1: The action on the form is set to " # ",