Displaying 1 result from an estimated 1 matches for "scenescontroller".
2007 Feb 06
2
Login systems : stubbing accounts and AR association proxies
...mount of login and ''ownership'' logic.  For  
instance, we have a number of clients (companies), each of which has  
several accounts.  A client owns a number of different types of  
resources, and shouldn''t see any other clients'' resources, so, for  
example, our ScenesController contains a lot of references to   
''current_client.scenes'', rather than Scene.find(:all)
All of which works pretty well, but it can make testing very  
tedious.  I always need to set up a fake client, and a fake account,  
and log in with that account, and make sure that whateve...