From: Brian Candler Date: 2010-09-07T00:46:21+09:00 Subject: Re: Read cookie On Tue, Sep 07, 2010 at 12:14:35AM +0900, Pål Bergström wrote: > If you understand what I'm trying to do, do you think the use of > Mechanize is a good or bad idea? Is it better to use the instance > variable to send the variable from controller to the model? Mechanize is a HTTP *client* - a programmable web browser if you like. Rails is a HTTP *server*. You wouldn't use Mechanize in a Rails app, unless your Rails app was in turn connecting to a different web server and pulling information from that. If you connected to your own web server using Mechanize, the web server would see it as a new client, distinct from all your other clients, and probably generate a new cookie for it.