destroy (lib/generators/templates/resource_controller/app/controllers/%file_name%.rb)

    # File lib/generators/templates/resource_controller/app/controllers/%file_name%.rb, line 54
      def destroy
        @<%= singular_model %> = <%= model_class_name %>.find_by_id(params[:id])
        raise NotFound unless @<%= singular_model %>
        if @<%= singular_model %>.destroy
          redirect url(:<%= (modules.collect{|m| m.downcase} << plural_model).join("_") %>)
        else
          raise BadRequest
        end
      end