DIFF.BLOG
New
Following
Discover
Jobs
More
Suggest a blog
Upvotes plugin
Report bug
Contact
About
Sign up  
[Rails Tip] "String".constantize
0
·
Fred Wu
·
Feb. 26, 2010, 6:33 a.m.
Summary
So we want to dynamically instantiate an object (i.e. convert a string to a class constant). Instead of doing this: You can do this: See…...
Read full post on fredwu.me →
Submit
AUTHOR
RECENT POSTS FROM THE AUTHOR