# Error: www deprecation notice

**URL:** <https://www.ruby-forum.com/t/error-www-deprecation-notice/186816>\
**Category:** Ruby\
**Created:** [April 12, 2010, 10:23pm UTC](https://www.ruby-forum.com/t/error-www-deprecation-notice/186816 "2010-04-12T22:23:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Y\_N](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/y/6f9a4e/32.png) [@Y\_N](https://www.ruby-forum.com/u/Y_N)\
**Post date:** [April 12, 2010, 10:23pm UTC](https://www.ruby-forum.com/t/error-www-deprecation-notice/186816/1 "2010-04-12T22:23:26Z")

</div>

Hi,

I get the following deprecation error saying that

!!! DEPRECATION NOTICE !!!  
The WWW constant is deprecated, please switch to the new top-level  
Mechanize  
constant. WWW will be removed in Mechanize version 2.0

You’ve referenced the WWW constant from ./xxxxx.rb:22:in `initialize’,  
please  
switch the “WWW” to “Mechanize”. Thanks!

Sincerely,

Pew Pew Pew

what does switch the “WWW” to “Mechanize” mean? The error is for this  
line  
@agent = WWW::Mechanize.new

---

<div class="post-metadata">

**Author:** ![Y\_N](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/y/6f9a4e/32.png) [@Y\_N](https://www.ruby-forum.com/u/Y_N)\
**Post date:** [April 12, 2010, 10:33pm UTC](https://www.ruby-forum.com/t/error-www-deprecation-notice/186816/2 "2010-04-12T22:33:59Z")

</div>

On Mon, Apr 12, 2010 at 3:21 PM, Y N [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> please  
> switch the “WWW” to “Mechanize”. Thanks!

Ryan covered this in a railscast. If memory serves, you simply stop  
typing the WWW part.

Respectfully,  
Andrew
