Roy Pardee wrote: > you'll have a better time doing this entirely outside of rails.
Yeah I've definitely considered this... let's call this "Plan B". :) This is because I would love to have access to all the CRUD/easy persistence provided by ActiveRecord, while keeping open sockets. Anyway I'm running into a problem when I try to add class instance variables to a class that inherits from ActiveRecord. I've tried the method outlined here: http://74.125.93.132/search?q=cache:8FvmwfP_gDwJ:www.continuousthinking.com/2006/11/17/ruby-class-variable-or-class-instance-variables+ruby-class-variable-or-class-instance-variables&cd=5&hl=en&ct=clnk (linked through google's cache since the site is down). I got the following error: You have a nil object when you didn't expect it! The error occurred while evaluating nil.columns Same error when I tried to define the class instance vars using :class_inheritable_accessor. Perhaps it's unsupported to add class inheritable attributes to a descendent ActiveRecord class? I also have found very little talk of class_inheritable_accessor, so perhaps this is no longer maintained? I would really appreciate some pointers re:class instance variables in rails... Thanks, Steve -- Posted via http://www.ruby-forum.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 [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

