1. 修改: /app/controllers/application_controller.rb文件为如下样子: class ApplicationController < ActionController::Base # Prevent CSRF attacks by raising an exception. # For APIs, you may want to use :null_session instead. protect_from_forgery with: :excep…
修改更新源: sudo vim /etc/apt/sources.list 删除里面所有内容 方法1: 按ggdG 方法2: :%d 替换源 搜狐源: deb http://mirrors.sohu.com/ubuntu/ vivid main restricted universe multiverse deb http://mirrors.sohu.com/ubuntu/ vivid-security main restricted universe multiverse deb http:…