Wednesday, January 19, 2011

[Rails] Re: Re: Dynamic class creation at runtime

Frederick Cheung wrote in post #975964:
> It is, but you're using it back to front: klass.const_set sets a
> constant on klass, whereas you want to set a top level constant ie
> Object.const_set

You are my personal hero, today. Thank you so much for helping out on
this thread. It works.

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

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate