Sign in through GitHub

RailsCasts Pro episodes are now free!

Learn more or hide this

Raj Kumar Goyal's Profile

GitHub User: rajkrgoyal

Site: http://rajkrgoyal.com

Comments by Raj Kumar Goyal

Avatar

I need help.

ruby
@web_agent = Mechanize.new
page = @web_agent.get 'https://www.google.com/alerts'
form = page.form_with :name => 'f1'

form.q = "search keyword"

I am getting nil form value. I am getting error: undefined method `q=' for nil:NilClass

Thanks in advance!