search for: postcode_controller

Displaying 1 result from an estimated 1 matches for "postcode_controller".

2006 May 22
0
General path question
...ry. I called it postcode_anywhere_service.rb. My first question is: should it be a singleton (will that be scalable do you beleive?) I know this is somewhat a general question and would be happy to hear some advices. So I have this web_Service class defined in my model directory. In my controller (postcode_controller), I want to initialize postcode_anywhere_service.rb only once (per user? I am not sure which is best - should I initialize it once for all users or once per usere. Each user will have a couple of request...). I put it in the initialize definition of the postcode_controller. I beleive it should not...