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

    # File lib/generators/templates/resource_controller.rb, line 39
      def update(id, <%= singular_model %>)
        @<%= singular_model %> = <%= model_class_name %>.get(id)
        raise NotFound unless @<%= singular_model %>
        if @<%= singular_model %>.update(<%= singular_model %>)
           redirect resource(@<%= singular_model %>)
        else
          display @<%= singular_model %>, :edit
        end