public Method

Form.add_field!(field_name, value = nil)

Add a field with field_name and value

Source Code

# File mechanize/form.rb, line 248
def add_field!(field_name, value = nil)
  fields << WWW::Mechanize::Field.new(field_name, value)
end
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.