Robert Walker wrote in post #1058555:
> Here the local variable model_class is assigned the value returned by
> the instance method class. This would be the constant identifying the
> class name of the instance variable @product. "Product' would most
> likely be the name of the class returned and stored in model_class.

Sorry, I forgot to go back and fix one minor error in the above. The 
"class" method would return you the actual class object not the class 
name constant.

-- 
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.

Reply via email to