摘要:
mac默认安装postgresql, 如何让postgresql可以远程访问 mac默认的postgresql目录的存放路径是/usr/local/var/postgres/ 在该目录下,修改两个文件,一个是postgresql.conf, 一个是pg_hba.conf,最后是重启 修改postre 阅读全文
摘要:
在PostgreSQL9.6.5 安装 Postgis2.4.2 出现错误 The data directory was initialized by PostgreSQL version 9.6, which is not compatible with this version 10.0. po 阅读全文
摘要:
ActiveAdmin::DatabaseHitDuringLoad: Your file, app/models/receptionist.rb (line 3), caused a database error while Active Admin was loading. This is mo 阅读全文
摘要:
报错 psql: FATAL: database "XXXX" does not exist Some OSX packages don't create a postgres superuser database account. The superuser is named differentl 阅读全文
摘要:
ubuntu 15.04 安装Balsamiq Mockups 3 先ubuntu 15.04 64 bit 安装adobe air 第一步: 下载Adobe AIR[http://airdownload.adobe.com/air/lin/download/2.6/AdobeAIRInstalle 阅读全文
摘要:
Rasils View中如何写public中图片的路径: 假设 public下,有目录images,images目录下有123.png图片 1、相对路径, Rails views获取public/images/123.png图片 2、绝对路径, Rails views获取public/images/ 阅读全文
摘要:
rails c 如何查看rails c的历史命令? rails c无法直接通过命令查找history,通过它的日志文件 或者 阅读全文
摘要:
bug: undefined local variable or method `per' for []:ActiveRecord::Relation 查看 gemfile 发现下面两行代码 gem "exception_logger", :github = "ryancheung/exceptio 阅读全文
摘要:
instance_eval class_eval 的区别 instance_eval 1、 p self 可以看出通过instance_eval访问到该类实例方法 2、block是一个闭包,既能访问name,又能访问@name,这种方式叫上下文探针,即深入到对象中的代码片段,对其进行操作 3、由于i 阅读全文
摘要:
rails环境下 ruby环境下class_eval的区别 先入为主,先看两段代码 1、写一段纯ruby脚本pure_ruby.rb: 2、在rails环境下,比如/lib/rails_ruby.rake 很显然,从 Size.new.little 的结果可以看出, include Big 后,传到 阅读全文