From: Phlip Date: 2009-04-30T23:00:10+09:00 Subject: Re: Merb Mike Mickey wrote: >> Now, can you pass what you need into the class in lib? > > actually i need a lot of information from the request object What is the class doing? I can think of things like correlating the user_agent with the IP and the login history, to detect excessive login attempts... > I thought a model could not access the request ? For the same reason a lib item can't see the request. Just pass the request into your top method. > not unit tests for it (for the moment) Write the tests first! Don't write them "last" - you will have no incentive to get back to it.