From: "Marcel Molina Jr." Date: 2005-09-05T02:19:53+09:00 Subject: Re: params v.s. @params in rails? On Mon, Sep 05, 2005 at 01:26:44AM +0900, David Heinemeier Hansson wrote: > > The recommendation for using the params method, instead of accessing > > the @params instance variable directly, is that it?s more uniform to > > use the accessor method, since you can also do that from the view. > > Direct access to these instance variables is deprecated. The same goes > for cookies, session, request, response, and the other accessors. Use > the accessor instead of going directly, so it's request.get? instead > of @request.get?. Another reason is that the accessor method conceals the actual implementation of params from the client which allows for a more flexible and cleaner design. marcel -- Marcel Molina Jr.