My code now looks like this, yet still the same error. If I try taking
out the "< ApplicationController" i get an even scarier error
(undefined method `controller_path' for EnginesController:Class) so I
just left it in.

Any ideas?



require 'net/http'
require 'mechanize'

class EnginesController < ApplicationController

  def yahoo

  agent = WWW::Mechanize.new
agent.user_agent_alias = 'Windows IE 6'
page =
agent.get('https://login.yahoo.com/config/login?login=xxxxx&passwd=xxxxx&tries=1&.src=srch&.lg=us&partner=&submit=Sign+In&.done=http://submit.search.yahoo.com/free/request')
page =
agent.get('http://submit.search.yahoo.com/free/request?class=Submit&pass=1&url=http%3A//www.lysurge.net')
  @data=page
  end
end