Thursday, April 26, 2012

[Rails] Re: Rails 3.1 - Scaffolding Files

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