Displaying 1 result from an estimated 1 matches for "written_communication".
2006 May 11
0
creating variables on the fly with a loop
...39;'m trying to clean up some of my sloppy code, and one of the things I''m
working on is trying to make this huge group of variables a bit more
elegant.
My variables look like this:
@business_core_courses =
Category.find_by_title(''business_core_courses'').courses
@written_communication =
Category.find_by_title(''written_communication'').courses
Etc...
It seems like there is a lot of repition going on, and that this could
be cleaned up somehow.
the "business_core_courses" and "written_communication" are both just
values in a field name '...