show (lib/generators/templates/resource_controller.rb)

    # File lib/generators/templates/resource_controller.rb, line 10
      def show(id)
        @<%= singular_model %> = <%= model_class_name %>.get(id)
        raise NotFound unless @<%= singular_model %>
        display @<%= singular_model %>
      end

      def new
        only_provides :html
        @<%= singular_model %> = <%= model_class_name %>.new
        display @<%= singular_model %>
      end