diff --git a/app/components/ninetails/section.rb b/app/components/ninetails/section.rb
index <HASH>..<HASH> 100644
--- a/app/components/ninetails/section.rb
+++ b/app/components/ninetails/section.rb
@@ -5,7 +5,10 @@ module Ninetails
     attr_accessor :elements_instances
 
     def self.new_from_filename(filename)
-      name = File.basename(filename, ".rb")
+      new_from_name File.basename(filename, ".rb")
+    end
+
+    def self.new_from_name(name)
       "Section::#{name.camelize}".safe_constantize.new
     end
 
diff --git a/app/controllers/ninetails/sections_controller.rb b/app/controllers/ninetails/sections_controller.rb
index <HASH>..<HASH> 100644
--- a/app/controllers/ninetails/sections_controller.rb
+++ b/app/controllers/ninetails/sections_controller.rb
@@ -10,7 +10,7 @@ module Ninetails
     end
 
     def show
-      render json: empty_section_from_name(params[:id])
+      render json: Section.new_from_name(params[:id]).serialize
     end
 
     def validate
Split new_from_filename into two methods

One that handles converting a lowercase name to an instance of the
class. Another that converts a full filename and then uses the
formentioned method.