Closed brianto closed 11 years ago
http://pathfindersoftware.com/2008/07/drying-up-rails-controllers-polymorphic-and-super-controllers/
Something like params[:teachable_type].capitalize.constantize
params[:teachable_type].capitalize.constantize
http://pathfindersoftware.com/2008/07/drying-up-rails-controllers-polymorphic-and-super-controllers/
Something like
params[:teachable_type].capitalize.constantize