search for: current_person

Displaying 2 results from an estimated 2 matches for "current_person".

2007 Oct 25
1
Mocking/Stubbing help with subdomain as account key
My app uses account_location to set up subdomains as account keys. In my controllers, all my model operations are scoped through the @current_person object. The question is: How do I test this with RSpec''s mocking and stubbing? Basically, I need to test that @current_person.things is getting the find message and returning @thing. I''ve tried stubbing and mocking @current_person.things a number of different ways with no...
2011 Aug 03
1
Dynamic Inline CSS
...t; isn''t an option since it doesn''t support inset shadows (or at least not in Chrome). So instead I''m using a <div> with some inline css to set the image. Here''s kinda what I want but of course it wont work. <div id="avatar" style="<%= current_person.avatar %>"></div> Can anyone point me in the right direction for doing this? -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0...