On Sep 21, 2011, at 10:07 AM, Matt Jones wrote:
On Sep 21, 9:52 am, elliottg <x...@simplecircle.net> wrote:
Thanks for the feedback. Both Carts are definitely the same Class (no
modules are at play). Everything works perfectly in the console. It
blows up when the app runs as Dev.

After I reboot the local server the first time the request is passed I
do NOT have the mismatch error. All subsequent calls blow up however.

Hard to tell without seeing code, but it sounds distinctly like you've
got the classic "putting ActiveRecord objects into the session"
problem. In development mode, this breaks in exactly this sort of
bizarre way because the classes are reloaded between requests.

--Matt Jones

...Or just reloaded classes in development. You can verify if this is, in fact, the problem by changing the:
        config.cache_classes = false
to
        config.cache_classes = true
and possibly
config.action_controller.perform_caching = true # usually false in development

-Rob

Rob Biedenharn          
r...@agileconsultingllc.com     http://AgileConsultingLLC.com/
r...@gaslightsoftware.com               http://GaslightSoftware.com/

--
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@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to